-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.lua
380 lines (306 loc) · 11.5 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
local dur = tick()
local prefix = "."
local commands, aliases = { }, { }
local ver = "1.1 Stable"
local replicatedStorage = game:GetService("ReplicatedStorage")
local textChat = game:GetService("TextChatService")
local players = game:GetService("Players")
local teleport = game:GetService("TeleportService")
local pathfinding = game:GetService("PathfindingService")
local tween = game:GetService("TweenService")
local chatType = textChat.ChatVersion
local accounts = {5766494813, 5766493543, 5766504015, 5766494759, 5763037307}
local disallowed = false
local host = 5765935638
local model = players:GetPlayerByUserId(host)
local localPlayer = players.LocalPlayer
local states = {
["track"] = false,
-- ["spam"] = false,
-- ["velocity"] = 0
}
local function find(string)
if (string) == "me" or not (string) or (string) == nil then
return model
else
if not (string) then
return
end
local saved = {}
for _,v in ipairs(players:GetPlayers()) do
if (string.lower(v.Name):match(string.lower(string))) or (string.lower(v.DisplayName):match(string.lower(string))) then
table.insert(saved, v)
end
end
if (#saved) > (0) then
print(type(saved[1]))
return saved[1]
elseif (#saved) < (1) then
return nil
end
end
end
local function index()
local found, indexes = { }, 1
for i,uID in ipairs(accounts) do
if players:GetPlayerByUserId(uID) then
found[indexes] = i
indexes = indexes + 1
end
end
return found
end
local add = function(aliases, functions)
for _,name in ipairs(aliases) do
if (type(name)) == "string" then
if not (commands[name]) and not (aliases[name]) then
commands[name] = {
functions = functions,
aliases = aliases
}
else
aliases[name] = {
functions = functions,
aliases = aliases
}
end
else
print("Improper alias type: " .. type(name))
end
end
end
local version = function()
if (chatType) == Enum.ChatVersion.TextChatService then
return "New"
else
return "Legacy"
end
end
local message = function(res)
if (version()) == "New" then
local textChannels = textChat.TextChannels
local RBX = textChannels.RBXGeneral
if (RBX) then
RBX:SendAsync(tostring(res))
end
else
local defaultChatSystemChatEvents = replicatedStorage:FindFirstChild("DefaultChatSystemChatEvents")
local messageRequest = defaultChatSystemChatEvents:FindFirstChild("SayMessageRequest")
messageRequest:FireServer(tostring(res), "All")
end
end
if (model) then
add({ "ex", "example", "debug" }, function()
message("Identified in " .. string.format("%.2f", tick() - dur) .. " seconds.")
end)
add({ "rejoin", "rj", "rej", "reconnect", "r" }, function()
local gameId = game.PlaceId
local jobId = game.JobId
teleport:TeleportToPlaceInstance(gameId, jobId, localPlayer)
end)
add({ "bring" }, function()
local found = index()
for i, index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) then
tween:Create(bot.Character.HumanoidRootPart, TweenInfo.new(0.25, Enum.EasingStyle.Sine), {CFrame = model.Character.HumanoidRootPart.CFrame * CFrame.new((i - (#found / 2) - 0.5) * 4, 0, 3)}):Play()
end
end
end)
add({ "line" }, function(...)
local args = {...}
table.remove(args, 1)
local pos = table.concat(args, " ")
local found = index()
for i, index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) then
if (pos) == "left" or (pos) == "l" then
tween:Create(bot.Character.HumanoidRootPart, TweenInfo.new(0.25, Enum.EasingStyle.Sine), {CFrame = model.Character.HumanoidRootPart.CFrame * CFrame.new(-index * 4, 0, 0)}):Play()
elseif (pos) == "right" or (pos) == "r" then
tween:Create(bot.Character.HumanoidRootPart, TweenInfo.new(0.25, Enum.EasingStyle.Sine), {CFrame = model.Character.HumanoidRootPart.CFrame * CFrame.new(index * 4, 0, 0)}):Play()
elseif (pos) == "back" or (pos) == "b" then
tween:Create(bot.Character.HumanoidRootPart, TweenInfo.new(0.25, Enum.EasingStyle.Sine), {CFrame = model.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, index * 4)}):Play()
elseif (pos) == "front" or (pos) == "f" then
tween:Create(bot.Character.HumanoidRootPart, TweenInfo.new(0.25, Enum.EasingStyle.Sine), {CFrame = model.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -index * 4)}):Play()
end
end
end
end)
-- add({ "spam", "chatspam" }, function(...)
-- states.spam = true
-- local args = {...}
-- table.remove(args, 1)
-- local found = index()
-- for i, index in ipairs(found) do
-- local bot = players:GetPlayerByUserId(accounts[index])
-- if (bot) then
-- coroutine.wrap(function()
-- while (states.spam) do
-- local curr = tick()
-- local last = last[bot.UserId] or 0
-- if (curr - last) >= 3.5 then
-- message(table.concat(args, " "))
-- last[bot.UserId] = curr
-- end
-- task.wait(0.1)
-- end
-- end)()
-- end
-- end
-- end)
add({ "promo", "promote", "share", "brag", "advertise", "ad" }, function(...)
local args = {...}
table.remove(args, 1)
local found = index()
for i, index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) then
message("Account Manager " .. ver .. " by Mr. Suno.")
break
end
end
end)
-- add({ "unspam", "stopspam", "nochatspam" }, function()
-- states.spam = false
-- end)
add({ "index", "ingame", "online" }, function()
local count = 0
for _,uID in ipairs(accounts) do
if players:GetPlayerByUserId(uID) then
count = count + 1
end
end
message("Managing " .. count .. " accounts.")
end)
add({ "meatballify", "meatball", "gwibard" }, function()
loadstring(game:HttpGetAsync("https://new-cloudbin.koyeb.app/raw/eTNvTLkf.txt", true))()
end)
add({ "end", "stop", "quit", "exit", "close" }, function()
disallowed = true
message("Account Manager successfully closed.")
end)
add({ "dance", "groove" }, function(...)
local args = {...}
table.remove(args, 1)
local dance = table.concat(args, " ")
if (dance) == "1" then
players:Chat("/e dance")
else
players:Chat("/e dance" .. dance)
end
end)
add({ "wave", "hello" }, function()
players:Chat("/e wave")
end)
add({ "cheer", "hooray" }, function()
players:Chat("/e cheer")
end)
add({ "applaud", "clap" }, function()
players:Chat("/e applaud")
end)
add({ "shrug", "idk", "confused" }, function()
players:Chat("/e shrug")
end)
add({ "point", "pointout", "punch" }, function()
players:Chat("/e point")
end)
add({ "laugh", "excite", "lol" }, function()
players:Chat("/e laugh")
end)
add({ "emote", "e" }, function(...)
local args = {...}
table.remove(args, 1)
local emote = table.concat(args, " ")
players:Chat("/e " .. emote)
end)
add({ "reset", "kill", "oof", "die" }, function()
local found = index()
for _,index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) then
bot.Character.Humanoid.Health = 0
end
end
end)
add({ "say", "chat", "message", "msg", "announce" }, function(...)
local args = {...}
table.remove(args, 1)
local found = index()
for _,index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) then
message(table.concat(args, " "))
break
end
end
end)
-- add({ "spin", "rotate", "velocity", "vel" }, function(...)
-- local args = {...}
-- table.remove(args, 1)
-- local velocity = tonumber(table.concat(args, " "))
-- end)
add({ "follow", "track", "watch" }, function(...)
states.track = true
local args = {...}
table.remove(args, 1)
local target = find(tostring(table.concat(args, " ")))
local found = index()
for _index in ipairs(found) do
local bot = players:GetPlayerByUserId(accounts[index])
if (bot) and (bot.Character) and (bot.Character.HumanoidRootPart) then
coroutine.wrap(function()
while (states.track) do
local path = pathfinding:CreatePath()
path:ComputeAsync(bot.Character.HumanoidRootPart.Position, workspace[target.Name]:FindFirstChild("HumanoidRootPart").Position)
local waypoints = path:GetWaypoints()
for _, waypoint in ipairs(waypoints) do
bot.Character.Humanoid:MoveTo(waypoint.Position)
bot.Character.Humanoid.MoveToFinished:Wait()
end
task.wait()
end
end)()
end
end
end)
add({ "undance", "nodance", "nd", "stopdance" }, function()
localPlayer.Character.Humanoid.Jump = true
end)
add({ "unfollow", "untrack", "unwatch" }, function()
states.track = false
end)
local response = function(input: string)
if not (disallowed) then
dur = tick()
if (string.sub(input, 1, #prefix)) == prefix then
local command = string.sub(input, #prefix + 1)
local args = { }
for arg in string.gmatch(command, "%S+") do
table.insert(args, arg)
end
local functions = commands[args[1]]
if (functions) then
functions.functions(unpack(args))
else
message('Command "' .. command .. '" not found.')
end
end
end
end
if (version()) == "New" then
textChat.MessageReceived:Connect(function(textChatMessage)
local author = tostring(textChatMessage.TextSource)
if (author) == model.Name then
response(textChatMessage.Text)
end
end)
else
model.Chatted:Connect(function(input: string)
response(input)
end)
end
message("Account Manager loaded in " .. string.format("%.2f", tick() - dur) .. " seconds.")
else
message("Host not found, cannot use Account Manager.")
end