-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathFlames_Advanced_API.lua
More file actions
860 lines (746 loc) · 27.1 KB
/
Flames_Advanced_API.lua
File metadata and controls
860 lines (746 loc) · 27.1 KB
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
-- FOR ADVANCED USERS: --
-- Variables.AllClipboards("text you want to copy here") -- Checks if the clipboard functions are available and allows you to let the user copy what ever you put in here.
-- Variables.httprequest_Init -- For more advanced users, but includes ALL functions for httprequest, and making requests to Discord, and such.
-- Variables.queueteleport -- For more advanced users, but includes queue-teleport functionality, allowing you to make scripts like auto-execute on rejoin scripts, if done correctly of course.
local flames_api = {}
local BUILD = "V2.2.6-DEVELOPER"
local function reverse_string(str) return string.reverse(str) end
local Base_URL = "aul.biL_noitacifitoN/niam/sdaeh/sfer/ecruoSpUciM/ecneirepxEesirpretnE/moc.tnetnocresubuhtig.war//:sptth"
local Base_URL_2 = "aul.PUKCAB_ssapyB_sinodA/niam/sdaeh/sfer/ecruoSpUciM/ecneirepxEesirpretnE/moc.tnetnocresubuhtig.war//:sptth"
local Base_URL_Decoded = reverse_string(tostring(Base_URL))
local Base_URL_2_Decoded = reverse_string(tostring(Base_URL_2))
local function get_safe_env()
local ok, env = pcall(function() return (getgenv and getgenv()) or nil end)
if ok and type(env) == "table" then return env end
if type(_G) == "table" then return _G end
return {}
end
local function blankfunction(...) return ... end
local Variables = get_safe_env()
get_safe_env().Variables = Variables
local safe_cloneref = (type(cloneref) == "function" and cloneref) or blankfunction
local safe_setmetatable = (type(setmetatable) == "function" and setmetatable) or function(tbl) return tbl end
local raw_get = (type(rawget) == "function" and rawget) or function(tbl, key) return tbl and tbl[key] or nil end
local raw_set = (type(rawset) == "function" and rawset) or function(tbl, key, val) if tbl then tbl[key] = val end end
local GetConnections = (type(getconnections) == "function" and getconnections) or (type(get_signal_cons) == "function" and get_signal_cons) or blankfunction
if not Variables.SafeGame then
local ok, g = pcall(function() return (type(safe_cloneref) == "function" and safe_cloneref(game)) or game end)
if ok and g then Variables.SafeGame = g end
end
if raw_get(Variables, "game") == nil then
raw_set(Variables, "game", Variables.SafeGame)
end
local function safe_service_get(name)
if Variables.SafeGame and type(Variables.SafeGame.GetService) == "function" then
local ok, svc = pcall(function() return Variables.SafeGame:GetService(name) end)
if ok and svc then
if type(safe_cloneref) == "function" then
local ok2, cref = pcall(function() return safe_cloneref(svc) end)
if ok2 and cref then return cref end
end
return svc
end
end
if type(game) == "table" and type(game.GetService) == "function" then
local ok, svc = pcall(function() return game:GetService(name) end)
if ok and svc then
if type(safe_cloneref) == "function" then
local ok2, cref = pcall(function() return safe_cloneref(svc) end)
if ok2 and cref then return cref end
end
return svc
end
end
return nil
end
local function build_services_table()
if type(setmetatable) == "function" then
return setmetatable({}, {
__index = function(self, index)
local existing = raw_get(self, index)
if existing ~= nil then return existing end
local svc = safe_service_get(index)
if svc then
raw_set(self, index, svc)
return svc
end
local fake = {
Name = index,
IsFake = true,
GetService = function(_, sub) return safe_service_get(sub) end
}
local mt_fake = {
__tostring = function() return "FakeService<" .. tostring(index) .. ">" end
}
local wrapped = safe_setmetatable(fake, mt_fake)
raw_set(self, index, wrapped)
return wrapped
end,
__tostring = function() return "SafeServices<Table>" end
})
else
local services = {}
local common = {
"Players", "Workspace", "Lighting", "ReplicatedStorage", "TweenService",
"RunService", "MaterialService", "ReplicatedFirst", "Teams", "StarterPack",
"StarterPlayer", "VoiceChatInternal", "VoiceChatService", "CoreGui", "SoundService",
"StarterGui", "MarketplaceService", "TeleportService", "Chat", "AssetService",
"HttpService", "UserInputService", "TextChatService", "ContextActionService",
"GuiService", "PhysicsService",
}
for _, name in ipairs(common) do
local svc = safe_service_get(name)
if svc then
services[name] = svc
else
services[name] = { Name = name, IsFake = true }
end
end
return services
end
end
Variables.Services = Variables.Services or build_services_table()
local function SafeGet(serviceName)
if type(serviceName) ~= "string" then
return Variables.SafeGame
end
Variables.Services = Variables.Services or build_services_table()
local cached = raw_get(Variables.Services, serviceName)
if cached then
if type(safe_cloneref) == "function" then
local ok, v = pcall(function() return safe_cloneref(cached) end)
if ok and v then return v end
end
return cached
end
local service = safe_service_get(serviceName)
if service then
raw_set(Variables.Services, serviceName, service)
return service
end
local ok2, found = pcall(function()
if Variables.SafeGame and type(Variables.SafeGame.FindService) == "function" then
return Variables.SafeGame:FindService(serviceName)
elseif type(game.FindService) == "function" then
return game:FindService(serviceName)
end
end)
if ok2 and found then
if typeof and typeof(found) == "Instance" and type(safe_cloneref) == "function" then
local ok3, cref = pcall(function() return safe_cloneref(found) end)
if ok3 and cref then
raw_set(Variables.Services, serviceName, cref)
return cref
end
end
raw_set(Variables.Services, serviceName, found)
return found
end
local fake = {
Name = serviceName,
IsFake = true,
GetService = function(_, sub) return SafeGet(sub) end
}
local mt_fake = { __tostring = function() return "FakeService<" .. tostring(serviceName) .. ">" end }
local wrapped = safe_setmetatable(fake, mt_fake)
raw_set(Variables.Services, serviceName, wrapped)
return wrapped
end
Variables.SafeGet = SafeGet
Variables.Services = Variables.Services
Variables.SafeGame = Variables.SafeGame
Variables.Game = raw_get(Variables, "game") or Variables.SafeGame
local function isNumber(v)
if type(v) ~= "string" and type(v) ~= "number" then return false end
if tonumber(v) ~= nil or v == "inf" then return true end
return false
end
local function choose_wait()
if task and task.wait then return task.wait end
if wait then return wait end
return function(t) local t0 = os.clock(); while os.clock() - t0 < (t or 0) do end end
end
local safe_wait = choose_wait()
local function wait_delay(TimeToWait, func)
if not isNumber(TimeToWait) then TimeToWait = tonumber(TimeToWait) or 0 end
if type(func) == "function" then
if task and task.delay then
task.delay(TimeToWait, func)
elseif delay then
delay(TimeToWait, func)
else
task.spawn(function() task.wait(TimeToWait); func() end)
end
end
end
local function new_wait(seconds, is_Function, functionality)
local func_selected = choose_wait()
local sec = tonumber(seconds) or 0
if not is_Function then
func_selected(sec)
else
wait_delay(sec, functionality)
end
end
pcall(function()
Variables.JobID = (Variables.SafeGame and Variables.SafeGame.JobId) or (game and game.JobId)
Variables.PlaceID = (Variables.SafeGame and Variables.SafeGame.PlaceId) or (game and game.PlaceId)
end)
local httpget =
(typeof and typeof(game.HttpGet) == "function" and game.HttpGet) or
(typeof and typeof(game.HttpGetAsync) == "function" and game.HttpGetAsync) or
request or http_request or (syn and syn.request) or (http and http.request) or (fluxus and fluxus.request) or nil
local function safe_httpget(url)
local ok, res = pcall(function()
if type(httpget) == "function" then
local okg = pcall(function() return httpget(game, url) end)
if okg then return httpget(game, url) end
return httpget({ Url = url, Method = "GET" })
elseif type(httpget) == "table" and httpget.request then
local r = httpget.request({ Url = url, Method = "GET" })
return (r and r.Body) or r
end
end)
if ok and res then
if type(res) == "table" and res.Body then return res.Body end
return res
end
return ""
end
flames_api.Variables = Variables
flames_api.SafeGet = SafeGet
flames_api.safe_httpget = safe_httpget
flames_api.safe_wait = safe_wait
flames_api.new_wait = new_wait
local NotifyLib = loadstring(safe_httpget(Base_URL_Decoded))()
new_wait(0.1, false)
function notify(notif_type, msg, duration)
local validTypes = {Error=true, Success=true, Info=true, Warning=true}
local t = tostring(notif_type)
if not validTypes[t] then
t = "Info"
end
NotifyLib:External_Notification(t, tostring(msg), tonumber(duration))
end
wait(0.1)
Variables.notify = notify
wait(0.1)
flames_api.notify = Variables.notify or notify
local All_Services = Variables.Services
flames_api.Service = function(serviceName)
return All_Services[serviceName]
end
local function getExecutor()
if identifyexecutor then
return { Name = identifyexecutor() }
end
return { Name = "Unknown Executor" }
end
local function executor_details()
return getExecutor().Name
end
flames_api.ExecutorName = executor_details()
new_wait(0.1, false)
Variables.ExecutorName = flames_api.ExecutorName
Variables.AllClipboards = setclipboard or toclipboard or set_clipboard or (Clipboard and Clipboard.set)
Variables.httprequest_Init = (syn and syn.request) or (http and http.request) or http_request or (fluxus and fluxus.request) or request
Variables.queueteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
flames_api.RandomString = function()
local length = math.random(10, 50)
local array = {}
for i = 1, length do
array[i] = string.char(math.random(32, 126))
end
return table.concat(array)
end
local Players = flames_api.Service("Players")
local LocalPlayer = Players.LocalPlayer
if not LocalPlayer then
Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
LocalPlayer = Players.LocalPlayer
Variables.LocalPlayer = LocalPlayer
end
new_wait(0.1, false)
local Players = flames_api.Service("Players")
local LocalPlayer = Players.LocalPlayer
if not LocalPlayer then
local ok = pcall(function()
Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
end)
LocalPlayer = Players.LocalPlayer
end
while not LocalPlayer do
task.wait()
LocalPlayer = Players.LocalPlayer
end
Variables.LocalPlayer = LocalPlayer
flames_api.Players = Players
flames_api.LocalPlayer = LocalPlayer
flames_api.PlaceID = Variables.PlaceID
flames_api.JobID = Variables.JobID
local PlayerGui = nil
pcall(function()
PlayerGui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
or LocalPlayer:FindFirstChild("PlayerGui")
or LocalPlayer:FindFirstChildWhichIsA("PlayerGui")
or LocalPlayer:WaitForChild("PlayerGui", 5)
end)
flames_api.PlayerGui = PlayerGui
local function SafeGetHumanoid(char)
return char:FindFirstChildWhichIsA("Humanoid") or char:WaitForChild("Humanoid", 5)
end
local function SafeGetHRP(char)
return char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart", 5)
end
local function SafeGetHead(char)
return char:FindFirstChild("Head") or char:WaitForChild("Head", 5)
end
local function SafeGetChar(player)
if not player then return nil end
local char = player.Character
if char then return char end
local ok, newChar = pcall(function()
return player.CharacterAdded:Wait(5)
end)
if ok then return newChar end
return nil
end
local FlyConnections
FlyConnections = FlyConnections or {}
Variables.FlyPart = Variables.FlyPart or nil
Variables.FlySpeed = Variables.FlySpeed or 10
Variables.Character = SafeGetChar(Variables.LocalPlayer)
Variables.HumanoidRootPart = SafeGetHRP(SafeGetChar(Variables.LocalPlayer))
Variables.Humanoid = SafeGetHumanoid(SafeGetChar(Variables.LocalPlayer))
Variables.Head = SafeGetHead(SafeGetChar(Variables.LocalPlayer))
wait(0.5)
local function Dynamic_Character_Updater(character)
Variables.Character = character
new_wait(0.5, false)
if Variables.Character and Variables.Character:FindFirstChild("Humanoid") then
Variables.HumanoidRootPart = SafeGetHRP(character)
Variables.Humanoid = SafeGetHumanoid(character)
Variables.Head = SafeGetHead(character)
elseif not Variables.Character then
repeat safe_wait() until character and character:FindFirstChild("Humanoid") and character:FindFirstChild("HumanoidRootPart")
Variables.Character = character
Variables.Humanoid = Variables.Character:WaitForChild("Humanoid", 3)
Variables.HumanoidRootPart = Variables.Character:WaitForChild("HumanoidRootPart", 5)
Variables.Head = Variables.Character:WaitForChild("Head", 5)
else
Variables.Character = SafeGetChar(Variables.LocalPlayer)
Variables.Humanoid = SafeGetHumanoid(SafeGetChar(Variables.LocalPlayer))
Variables.HumanoidRootPart = SafeGetHRP(SafeGetChar(Variables.LocalPlayer))
Variables.Head = SafeGetHead(SafeGetChar(Variables.LocalPlayer))
end
new_wait(0.2, false)
flames_api.Character = Variables.Character
flames_api.Humanoid = Variables.Humanoid
flames_api.HumanoidRootPart = Variables.HumanoidRootPart
flames_api.Head = Variables.Head
end
Dynamic_Character_Updater(Variables.Character)
new_wait(0.2, false)
Variables.LocalPlayer.CharacterAdded:Connect(function(newCharacter)
new_wait(0.2, false)
Dynamic_Character_Updater(newCharacter)
repeat safe_wait() until newCharacter:FindFirstChildWhichIsA("Humanoid") and newCharacter:FindFirstChild("HumanoidRootPart")
new_wait(0.5, false)
Variables.Character = newCharacter
new_wait(0.3, false)
if not Variables.Humanoid then -- no way.
Variables.Humanoid = Variables.Character:WaitForChild("Humanoid", 5) -- safe fallback.
elseif Variables.Character then
Variables.Humanoid = SafeGetHumanoid(Variables.Character) -- super safe fallback.
else
Variables.Humanoid = Variables.Character:WaitForChild("Humanoid", 60) -- super SUPER safe fallback ofc.
end
new_wait(0.3, false)
Dynamic_Character_Updater(newCharacter)
end)
flames_api.Vehicle = function()
local humanoid = flames_api.Humanoid or Variables.Character:FindFirstChildWhichIsA("Humanoid") or Variables.Humanoid
if humanoid and humanoid.SeatPart then
local seatPart = humanoid.SeatPart
local model = seatPart:FindFirstAncestorOfClass("Model")
if model and typeof(model.GetDescendants) == "function" then
for _, descendant in ipairs(model:GetDescendants()) do
if descendant:IsA("BasePart") and descendant.Name and string.find(descendant.Name:lower(), "wheel") then
return model
end
end
end
end
return flames_api.notify("Error", "We we're unable to locate/find your Vehicle.", 6)
end
flames_api.Fly = function(speed)
if Variables.FlyEnabled then return flames_api.notify("Warning", "Fly is already enabled!", 5) end
local HumanoidRootPart = flames_api.HumanoidRootPart
local Workspace = flames_api.Service("Workspace")
local StarterPack = flames_api.Service("StarterPack")
local RunService = flames_api.Service("RunService")
local UserInputService = flames_api.Service("UserInputService")
local character = flames_api.Character
local humanoid = flames_api.Humanoid
local camera = Workspace.CurrentCamera
Variables.FlySpeed = tonumber(speed) or 5
Variables.FlyEnabled = Variables.FlyEnabled or false
Variables.StartFly = function()
if Variables.FlyEnabled then return flames_api.notify("Warning", "Fly is already enabled!", 5) end
Variables.FlyEnabled = true
local dir = {w = false, a = false, s = false, d = false, q = false, e = false}
local cf = Instance.new("CFrameValue")
Variables.FlyPart = Instance.new("Part")
Variables.FlyPart.Name = "RUNPART-SURF"
Variables.FlyPart.Anchored = true
Variables.FlyPart.Parent = StarterPack
Variables.FlyPart.CFrame = HumanoidRootPart and HumanoidRootPart.CFrame or CFrame.new()
FlyConnections.render = RunService.RenderStepped:Connect(function()
if not Variables.FlyEnabled or not HumanoidRootPart then return end
local primaryPart = HumanoidRootPart
local speed = Variables.FlySpeed
local x, y, z = 0, 0, 0
if dir.w then z = -1 * speed end
if dir.a then x = -1 * speed end
if dir.s then z = 1 * speed end
if dir.d then x = 1 * speed end
if dir.q then y = 1 * speed end
if dir.e then y = -1 * speed end
for i, v in pairs(character:GetDescendants()) do
if v:IsA("BasePart") then
v.Velocity = Vector3.new(0, 0, 0)
v.RotVelocity = Vector3.new(0, 0, 0)
end
end
Variables.FlyPart.CFrame = CFrame.new(
Variables.FlyPart.CFrame.p,
(camera.CFrame * CFrame.new(0, 0, -100)).p
)
local moveDir = CFrame.new(x, y, z)
cf.Value = cf.Value:lerp(moveDir, 0.2)
Variables.FlyPart.CFrame = Variables.FlyPart.CFrame:lerp(Variables.FlyPart.CFrame * cf.Value, 0.2)
primaryPart.CFrame = Variables.FlyPart.CFrame
humanoid.PlatformStand = true
end)
FlyConnections.inputBegan = UserInputService.InputBegan:Connect(function(input, event)
if event or not Variables.FlyEnabled then return end
local code, codes = input.KeyCode, Enum.KeyCode
if code == codes.W then dir.w = true
elseif code == codes.A then dir.a = true
elseif code == codes.S then dir.s = true
elseif code == codes.D then dir.d = true
elseif code == codes.Q then dir.q = true
elseif code == codes.E then dir.e = true
elseif code == codes.Space then dir.q = true
end
end)
FlyConnections.inputEnded = UserInputService.InputEnded:Connect(function(input, event)
if event or not Variables.FlyEnabled then return end
local code, codes = input.KeyCode, Enum.KeyCode
if code == codes.W then dir.w = false
elseif code == codes.A then dir.a = false
elseif code == codes.S then dir.s = false
elseif code == codes.D then dir.d = false
elseif code == codes.Q then dir.q = false
elseif code == codes.E then dir.e = false
elseif code == codes.Space then dir.q = false
end
end)
end
Variables.StartFly()
end
flames_api.Unfly = function()
if not Variables.FlyEnabled then return end
Variables.FlyEnabled = false
for _, conn in pairs(FlyConnections) do
if conn then conn:Disconnect() end
end
FlyConnections = {}
if Variables.FlyPart then
Variables.FlyPart:Destroy()
Variables.FlyPart = nil
end
if flames_api.Humanoid then
flames_api.Humanoid.PlatformStand = false
end
end
flames_api.FindPlayer = function(args)
local tbl = Players:GetPlayers()
local cmdlp = flames_api.LocalPlayer
local function isSelfTarget(arg)
if not arg then return false end
if typeof(arg) == "Instance" and arg:IsA("Player") then
return arg == cmdlp
elseif typeof(arg) == "string" then
local name = arg:lower()
return name == cmdlp.Name:lower() or name == cmdlp.DisplayName:lower() or name == "me" or name == "myself" or name == "LocalPlayer"
end
return false
end
if isSelfTarget(args) then
flames_api.notify("Warning", "You cannot target yourself.", 5)
return nil
end
if args == "random" then
local validPlayers = {}
for _, v in pairs(tbl) do
if v ~= cmdlp then
table.insert(validPlayers, v)
end
end
return #validPlayers > 0 and validPlayers[math.random(1, #validPlayers)] or nil
end
if args == "new" then
local vAges = {}
for _, v in pairs(tbl) do
if v.AccountAge < 30 and v ~= cmdlp then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "old" then
local vAges = {}
for _, v in pairs(tbl) do
if v.AccountAge > 30 and v ~= cmdlp then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "bacon" then
local vAges = {}
for _, v in pairs(tbl) do
if v ~= cmdlp and (v.Character:FindFirstChild("Pal Hair") or v.Character:FindFirstChild("Kate Hair")) then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "friend" then
local friendList = {}
for _, v in pairs(tbl) do
if v:IsFriendsWith(cmdlp.UserId) and v ~= cmdlp then
table.insert(friendList, v)
end
end
return #friendList > 0 and friendList[math.random(1, #friendList)] or nil
end
if args == "notfriend" then
local vAges = {}
for _, v in pairs(tbl) do
if not v:IsFriendsWith(cmdlp.UserId) and v ~= cmdlp then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "ally" then
local vAges = {}
for _, v in pairs(tbl) do
if v.Team == cmdlp.Team and v ~= cmdlp then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "enemy" then
local vAges = {}
for _, v in pairs(tbl) do
if v.Team ~= cmdlp.Team and v ~= cmdlp then
table.insert(vAges, v)
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "near" then
local vAges = {}
for _, v in pairs(tbl) do
if v ~= cmdlp and v.Character and cmdlp.Character then
local vRootPart = v.Character:FindFirstChild("HumanoidRootPart")
local cmdlpRootPart = cmdlp.Character:FindFirstChild("HumanoidRootPart")
if vRootPart and cmdlpRootPart then
local distance = (vRootPart.Position - cmdlpRootPart.Position).magnitude
if distance < 30 then
table.insert(vAges, v)
end
end
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
if args == "far" then
local vAges = {}
for _, v in pairs(tbl) do
if v ~= cmdlp and v.Character and cmdlp.Character then
local vRootPart = v.Character:FindFirstChild("HumanoidRootPart")
local cmdlpRootPart = cmdlp.Character:FindFirstChild("HumanoidRootPart")
if vRootPart and cmdlpRootPart then
local distance = (vRootPart.Position - cmdlpRootPart.Position).magnitude
if distance > 30 then
table.insert(vAges, v)
end
end
end
end
return #vAges > 0 and vAges[math.random(1, #vAges)] or nil
end
for _, v in pairs(tbl) do
if (v.Name:lower():find(args:lower()) or v.DisplayName:lower():find(args:lower())) and v ~= cmdlp then
return v
end
end
end
wait(0.1)
flames_api.GoTo = function(playerArg)
local success, err = pcall(function()
local Target = flames_api.FindPlayer(playerArg)
if not Target then return flames_api.notify("Error", "That player does not exist or you typed the name incorrectly!", 5) end
if Target.Character and flames_api.Character then
local TargetChar = Target.Character or Target.CharacterAdded:Wait()
task.wait(0.1)
flames_api.Character:PivotTo(TargetChar:GetPivot())
end
end)
if not success then
flames_api.notify("Warning", "[Teleport Error]: "..tostring(err), 8)
end
end
flames_api.BypassAdonis = function()
if Variables.AdonisBypass_Already_Loaded then
return flames_api.notify("Warning", "You've already loaded the Adonis Anti-Cheat Bypass!", 7)
end
wait()
loadstring(Variables.SafeGame:HttpGet(Base_URL_2_Decoded))()
wait(0.2)
Variables.AdonisBypass_Already_Loaded = true
end
flames_api.WalkSpeed = function(Speed)
if type(Speed) ~= "number" then return end
pcall(function()
if flames_api.Humanoid then
flames_api.Humanoid.WalkSpeed = Speed
end
end)
end
flames_api.JumpPower = function(JP)
if type(JP) ~= "number" then return flames_api.notify("Warning", "That is not a number!", 4) end
local StarterPlayer = flames_api.Service("StarterPlayer")
local CharacterUseJumpPowerCheck = StarterPlayer.CharacterUseJumpPower
pcall(function()
if CharacterUseJumpPowerCheck then
flames_api.Humanoid.JumpPower = JP
else
flames_api.Humanoid.JumpHeight = JP
end
end)
end
flames_api.BuildVersion = function()
if not BUILD then return flames_api.notify("Error", "Build variable seems to have been erased?", 6) end
flames_api.notify("Info", "You are running version/build: "..tostring(BUILD), 5)
end
flames_api.BypassWalkSpeed = function()
if not GetConnections then
return flames_api.notify("Error", "Your executor does not support 'getconnections'!", 5)
end
local humanoid = flames_api.Humanoid
if not humanoid then
return
end
local signal = humanoid:GetPropertyChangedSignal("WalkSpeed")
local connections = GetConnections(signal)
for _, conn in ipairs(connections) do
pcall(function()
conn:Disable()
end)
end
end
flames_api.BypassJumpPower = function()
if not GetConnections then
return flames_api.notify("Error", "Your executor does not support 'getconnections'!", 5)
end
local humanoid = flames_api.Humanoid
if not humanoid then
return
end
local signal = humanoid:GetPropertyChangedSignal("JumpHeight")
local connections = GetConnections(signal)
for _, conn in ipairs(connections) do
pcall(function()
conn:Disable()
end)
end
local signal = humanoid:GetPropertyChangedSignal("UseJumpPower")
local connections = GetConnections(signal)
for _, conn in ipairs(connections) do
pcall(function()
conn:Disable()
end)
end
wait()
local signal = humanoid:GetPropertyChangedSignal("JumpPower")
local connections = GetConnections(signal)
for _, conn in ipairs(connections) do
pcall(function()
conn:Disable()
end)
end
end
flames_api.HookSpeed = function()
if not hookmetamethod then return flames_api.notify("Error", "Your executor does not support 'hookmetamethod'!", 6) end
local Original_WalkSpeed = flames_api.Service("StarterPlayer").CharacterWalkSpeed
local Character = Variables.Character
local hooks = {
walkspeed = tonumber(Original_WalkSpeed) or 16,
}
local index
local newindex
index = hookmetamethod(game,"__index",function(self,property)
if not checkcaller() and self:IsA("Humanoid") and self:IsDescendantOf(Character) and hooks[property:lower()] then
return hooks[property:lower()]
end
return index(self,property)
end)
newindex = hookmetamethod(game,"__newindex",function(self,property,value)
if not checkcaller() and self:IsA("Humanoid") and self:IsDescendantOf(Character) and hooks[property:lower()] then
return value
end
return newindex(self,property,value)
end)
end
flames_api.HookJP = function()
if not hookmetamethod then return flames_api.notify("Error", "Your executor does not support 'hookmetamethod'!", 6) end
local Original_JumpPower = flames_api.Service("StarterPlayer").CharacterJumpPower
local Original_JumpHeight = flames_api.Service("StarterPlayer").CharacterJumpHeight
local Character = Variables.Character
local hooks = {
jumppower = tonumber(Original_JumpPower) or 50,
jumpheight = tonumber(Original_JumpHeight) or 7
}
local index
local newindex
index = hookmetamethod(game,"__index",function(self,property)
if not checkcaller() and self:IsA("Humanoid") and self:IsDescendantOf(Character) and hooks[property:lower()] then
return hooks[property:lower()]
end
return index(self,property)
end)
newindex = hookmetamethod(game,"__newindex",function(self,property,value)
if not checkcaller() and self:IsA("Humanoid") and self:IsDescendantOf(Character) and hooks[property:lower()] then
return value
end
return newindex(self,property,value)
end)
end
local serviceList = {
"Players", "Workspace", "Lighting", "ReplicatedStorage", "TweenService",
"RunService", "MaterialService", "ReplicatedFirst", "Teams", "StarterPack",
"StarterPlayer", "VoiceChatInternal", "VoiceChatService", "CoreGui", "SoundService",
"StarterGui", "MarketplaceService", "TeleportService", "Chat", "AssetService",
"HttpService", "UserInputService", "TextChatService", "ContextActionService",
"GuiService", "PhysicsService"
}
for _, serviceName in ipairs(serviceList) do
flames_api[serviceName] = flames_api.Service(serviceName)
end
return flames_api