-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTroll_Server.lua
More file actions
1918 lines (1853 loc) Β· 52.1 KB
/
Troll_Server.lua
File metadata and controls
1918 lines (1853 loc) Β· 52.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
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--[[
info script
by MyWorld
Showcased by X
]]
local g = game
if not g:IsLoaded() then
g.Loaded:Wait()
end
local plrs = g:GetService("Players")
local lp = plrs.LocalPlayer
local mouse = lp:GetMouse()
local ws = g:GetService("Workspace")
local cg = g:GetService("CoreGui")
local pg = lp:FindFirstChildOfClass("PlayerGui")
local rs = g:GetService("RunService")
local uis = g:GetService("UserInputService")
local stepped = rs.Stepped
local renderstepped = rs.RenderStepped
local heartbeat = rs.Heartbeat
local currentplayer = lp
local fenv = getfenv()
local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.sethiddenprop or fenv.set_hidden_prop
local ssr = fenv.setsimulationradius or fenv.setsimradius or fenv.set_simulation_radius
local v3 = Vector3.new
local v3_0 = v3(0, 0, 0)
local cf = CFrame.new
local flycf = false
local twait, tspawn, tdelay = task.wait, task.spawn, task.delay
local schar, mrandom = string.char, math.random
local tfind, tinsert, tremove = table.find, table.insert, table.remove
local instancenew = Instance.new
local function gp(parent, name, className)
if typeof(parent) == "Instance" then
for _, v in pairs(parent:GetChildren()) do
if (v.Name == name) and v:IsA(className) then
return v
end
end
end
return nil
end
local function randomstring(len)
len = len or mrandom(8, 15)
local ret = ""
for i=1, len do
if mrandom(1, 2) == 1 then
ret = ret .. schar(mrandom(97, 122)):lower()
else
ret = ret .. schar(mrandom(97, 122)):upper()
end
end
return ret
end
local guiname = g.PlaceId .. "_info"
local gui = nil
pcall(function()
gui = gp(cg, guiname, "ScreenGui")
end)
gui = gui or gp(pg, guiname, "ScreenGui")
if gui then
gui:Destroy()
end
renderstepped:Wait()
gui = instancenew("ScreenGui")
gui.Name = guiname
gui.ResetOnSpawn = false
gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
gui.Enabled = false
gui.IgnoreGuiInset = true
pcall(function()
gui.Parent = cg
end)
if gui.Parent ~= cg then
gui.Parent = pg
end
gui:GetPropertyChangedSignal("Parent"):Connect(function()
if not (gui and gui.Parent) then
gui = false
end
end)
local mainFrame = instancenew("Frame")
mainFrame.Name = randomstring()
mainFrame.Parent = gui
mainFrame.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
mainFrame.BorderSizePixel = 0
mainFrame.Position = UDim2.new(0, 0, 1, -200)
mainFrame.Size = UDim2.new(1, 0, 0, 200)
local mf = instancenew("Frame")
mf.Name = randomstring()
mf.Parent = mainFrame
mf.BackgroundColor3 = mainFrame.BackgroundColor3
mf.BorderSizePixel = 0
mf.Position = UDim2.new(0, 0, 1, 0)
mf.Size = UDim2.new(1, 0, 1, 0)
local scriptName = instancenew("TextLabel")
scriptName.Name = randomstring()
scriptName.Parent = mainFrame
scriptName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
scriptName.BackgroundTransparency = 1.000
scriptName.BorderSizePixel = 0
scriptName.Size = UDim2.new(1, 0, 0, 20)
scriptName.Font = Enum.Font.SourceSans
scriptName.Text = "info script showcased By X"
scriptName.TextColor3 = Color3.fromRGB(181, 181, 181)
scriptName.TextSize = 20.000
scriptName.TextWrapped = true
local line = instancenew("Frame")
line.Name = randomstring()
line.Parent = scriptName
line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
line.BackgroundTransparency = 0.700
line.BorderSizePixel = 0
line.Position = UDim2.new(0, 5, 1, 0)
line.Size = UDim2.new(1, -10, 0, 1)
local showhide = instancenew("TextButton")
showhide.Name = randomstring()
showhide.Parent = mainFrame
showhide.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
showhide.BorderSizePixel = 0
showhide.Position = UDim2.new(0.5, -25, 0, -30)
showhide.Size = UDim2.new(0, 50, 0, 30)
showhide.Font = Enum.Font.SourceSans
showhide.Text = "\\/"
showhide.TextColor3 = Color3.fromRGB(235, 235, 235)
showhide.TextSize = 20.000
local scrollingFrame = instancenew("ScrollingFrame")
scrollingFrame.Name = randomstring()
scrollingFrame.Parent = mainFrame
scrollingFrame.Active = true
scrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
scrollingFrame.BackgroundTransparency = 1.000
scrollingFrame.BorderSizePixel = 0
scrollingFrame.ClipsDescendants = false
scrollingFrame.Position = UDim2.new(0, 5, 0, 30)
scrollingFrame.Size = UDim2.new(1, -10, 1, -35)
scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
scrollingFrame.ScrollBarThickness = 10
scrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.X
local UIListLayout = instancenew("UIListLayout")
UIListLayout.Parent = scrollingFrame
UIListLayout.FillDirection = Enum.FillDirection.Horizontal
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 10)
local sn = scriptName.Text
local function notify(msg)
local msg1 = sn .. " - " .. msg
scriptName.Text = msg1
tdelay(3, function()
if scriptName.Text == msg1 then
scriptName.Text = sn
end
end)
end
if gui.Parent == pg then
notify("gui in playerGui")
end
local ancprt = nil
local function weldtp(part, cfr)
if not (part and part.Parent and part:IsA("BasePart") and (not part:IsGrounded())) then
return nil
end
if not (ancprt and ancprt.Parent and ancprt:IsA("BasePart") and ancprt:IsGrounded() and ancprt:IsDescendantOf(ws)) then
for i, v in pairs(ws:GetDescendants()) do
if v and v.Parent and v:IsA("BasePart") and v:IsGrounded() then
ancprt = v
break
end
end
end
if not ancprt then
ancprt = instancenew("Part", ws)
ancprt.Anchored = true
ancprt.Transparency = 1
ancprt.CanCollide = false
ancprt.Name = "weldtp part"
end
local weld = instancenew("Weld")
weld.Name = randomstring()
weld.Part0 = part
weld.C0 = cfr:Inverse()
weld.Part1 = ancprt
weld.C1 = ancprt.CFrame:Inverse()
weld.Parent = ws
stepped:Wait()
pcall(function()
weld:Destroy()
end)
end
local function respawnRequest()
local ccfr = ws.CurrentCamera.CFrame
local c = lp.Character
lp.Character = nil
lp.Character = c
ws.CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
ws.CurrentCamera.CFrame = ccfr
end
local function removehats(c)
c = c or lp.Character
if not c then return end
for i, v in pairs(c:GetChildren()) do
if v:IsA("Accessory") then
local handle = gp(v, "Handle", "BasePart")
if handle then
handle:Destroy()
v:Destroy()
end
end
end
end
local function makeFrame(parent, text, color)
local frame = instancenew("Frame")
frame.Name = randomstring()
frame.Parent = parent
frame.BackgroundColor3 = color
frame.Size = UDim2.new(0, 300, 0, 145)
frame.BorderSizePixel = 0
local framelabel = instancenew("TextLabel")
framelabel.Name = randomstring()
framelabel.Parent = frame
framelabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
framelabel.BackgroundTransparency = 1.000
framelabel.BorderSizePixel = 0
framelabel.Size = UDim2.new(1, 0, 0, 20)
framelabel.Font = Enum.Font.SourceSans
framelabel.Text = text
framelabel.TextColor3 = Color3.fromRGB(197, 197, 197)
framelabel.TextSize = 14.000
local line = instancenew("Frame")
line.Name = randomstring()
line.Parent = framelabel
line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
line.BackgroundTransparency = 0.700
line.BorderSizePixel = 0
line.Position = UDim2.new(0, 5, 1, 0)
line.Size = UDim2.new(1, -10, 0, 1)
local ScrollingFrame = instancenew("ScrollingFrame")
ScrollingFrame.Parent = frame
ScrollingFrame.Active = true
ScrollingFrame.Name = randomstring()
ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ScrollingFrame.BackgroundTransparency = 1.000
ScrollingFrame.BorderSizePixel = 0
ScrollingFrame.Position = UDim2.new(0, 5, 0, 25)
ScrollingFrame.Size = UDim2.new(1, -5, 1, -30)
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
ScrollingFrame.ScrollBarThickness = 7
ScrollingFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
local UIListLayout = instancenew("UIListLayout")
UIListLayout.Parent = ScrollingFrame
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 5)
renderstepped:Wait()
return frame
end
showhide.MouseButton1Click:Connect(function()
if showhide.Text == "/\\" then
showhide.Text = "\\/"
mainFrame:TweenPosition(UDim2.new(0, 0, 1, -200), "Out", "Elastic", 1)
else
showhide.Text = "/\\"
mainFrame:TweenPosition(UDim2.new(0, 0, 1, -5), "Out", "Elastic", 1)
end
end)
local cbring = {}
local controllable = {}
local lastc = nil
local con = nil
con = lp.CharacterAdded:Connect(function(c)
if not gui then
con:Disconnect()
return
end
if lastc == c then
return
end
if c and c.Parent then
lastc = c
controllable = {}
for i, v in pairs(plrs:GetPlayers()) do
local c = v.Character
if c and c.Parent then
tinsert(controllable, c)
end
end
end
end)
local viewedPlayer = nil
local viewbutton = {Text = ""}
local playersframe = makeFrame(scrollingFrame, "Players", Color3.fromRGB(12, 59, 100))
local playercframe = makeFrame(playersframe, "playerscontrol", Color3.fromRGB(12, 59, 100))
playercframe.BorderSizePixel = 1.000
playercframe.BorderColor3 = Color3.fromRGB(27, 42, 53)
playercframe.Position = UDim2.new(0, 10, -1, -40)
playercframe.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
playercframe.Visible = true
local playerframef = makeFrame(playercframe, "friends", Color3.fromRGB(0, 150, 0))
playerframef.Position = UDim2.new(1, 10, 0, 5)
local function addbtn(parent, plr)
local playerbutton = instancenew("TextButton")
playerbutton.Name = plr.Name
playerbutton.Parent = parent
if plr == lp then
playerbutton.BackgroundColor3 = Color3.fromRGB(100, 200, 200)
else
playerbutton.BackgroundColor3 = Color3.fromRGB(136, 136, 136)
end
playerbutton.BorderSizePixel = 0
playerbutton.Size = UDim2.new(1, -10, 0, 20)
playerbutton.Font = Enum.Font.SourceSans
playerbutton.Text = plr.Name
if plr.Name ~= plr.DisplayName then
playerbutton.Text = playerbutton.Text .. " (" .. plr.DisplayName .. ")"
end
playerbutton.TextColor3 = Color3.fromRGB(0, 0, 0)
playerbutton.TextSize = 15.000
playerbutton.MouseButton1Click:Connect(function()
playercframe:FindFirstChildOfClass("TextLabel").Text = "player: " .. playerbutton.Text
currentplayer = plr
playercframe.Visible = true
playerframef.Visible = false
viewbutton.Text = ((viewedPlayer == plr) and "unview") or "view"
end)
end
local function unview()
viewedPlayer = nil
viewbutton.Text = "view"
local c = lp.Character
if c and c.Parent then
local subject = c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("BasePart")
if subject then
ws.CurrentCamera.CameraType = Enum.CameraType.Custom
ws.CurrentCamera.CameraSubject = subject
else
notify("no part to view")
end
else
notify("character not found")
end
end
local playersScroll = playersframe:FindFirstChildOfClass("ScrollingFrame")
for i, v in pairs(plrs:GetPlayers()) do
addbtn(playersScroll, v)
end
local reset = function() end
local con = nil
con = plrs.PlayerAdded:Connect(function(plr)
if gui then
addbtn(playersScroll, plr)
if playerframef.Visible then
tspawn(function()
if plr and plr.Parent and currentplayer:IsFriendsWith(plr.UserId) then
addbtn(playerframef:FindFirstChildOfClass("ScrollingFrame"), plr)
end
end)
end
else
con:Disconnect()
end
end)
local con = nil
con = plrs.PlayerRemoving:Connect(function(plr)
if gui then
local playerbutton = gp(playersScroll, plr.Name, "TextButton")
if playerbutton then
playerbutton:Destroy()
end
if plr == currentplayer then
playercframe.Visible = false
end
if plr == viewedPlayer then
unview()
end
else
con:Disconnect()
end
end)
local hideplayerc = instancenew("TextButton")
hideplayerc.Name = randomstring()
hideplayerc.Parent = playercframe:FindFirstChildOfClass("TextLabel")
hideplayerc.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
hideplayerc.BorderSizePixel = 0
hideplayerc.Position = UDim2.new(1, -17, 0, 2)
hideplayerc.Size = UDim2.new(0, 15, 0, 15)
hideplayerc.Font = Enum.Font.SourceSans
hideplayerc.Text = "X"
hideplayerc.TextColor3 = Color3.fromRGB(206, 206, 206)
hideplayerc.TextSize = 14.000
hideplayerc.MouseButton1Click:Connect(function()
playercframe.Visible = false
end)
local function makeplrbutton(buttontext)
local button = instancenew("TextButton")
button.Name = randomstring()
button.Parent = playercframe:FindFirstChildOfClass("ScrollingFrame")
button.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
button.BorderSizePixel = 0
button.Size = UDim2.new(1, -10, 0, 20)
button.Font = Enum.Font.SourceSans
button.Text = buttontext
button.TextColor3 = Color3.fromRGB(226, 226, 226)
button.TextSize = 15.000
return button
end
makeplrbutton("goto").MouseButton1Click:Connect(function()
local c = lp.Character
if c and c.Parent then
local tp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
if tp then
local c1 = currentplayer.Character
if c1 and c1.Parent then
local to = gp(c1, "HumanoidRootPart", "BasePart") or gp(c1, "Head", "BasePart") or c1:FindFirstChildWhichIsA("BasePart")
if to then
if flycf then
flycf = to.CFrame
else
weldtp(tp, to.CFrame)
if viewedPlayer == currentplayer then
unview()
end
end
notify("goto: " .. currentplayer.Name)
else
notify("no target part found")
end
else
notify("target character not found")
end
else
notify("no part found")
end
else
notify("character not found")
end
end)
viewbutton = makeplrbutton("view")
viewbutton.MouseButton1Click:Connect(function()
if viewedPlayer == currentplayer then
unview()
else
viewedPlayer = currentplayer
viewbutton.Text = "unview"
end
end)
local cbringb = makeplrbutton("cbring")
local function noanimations()
local c = lp.Character
if c and c.Parent then
local hum = c:FindFirstChildOfClass("Humanoid")
if hum then
local animate = gp(c, "Animate", "LocalScript")
if animate then
animate.Disabled = true
end
for i, v in pairs(hum:GetPlayingAnimationTracks()) do
v:Stop()
end
else
notify("humanoid not found")
end
else
notify("character not found")
end
end
local function isConnected(part0, part1, tested)
if not ((typeof(part0) == "Instance") and part0:IsA("BasePart")) then
return false
end
if not ((typeof(part1) == "Instance") and part1:IsA("BasePart")) then
return false
end
if not tested then
tested = {}
end
local ret = false
tinsert(tested, part0)
for i, v in pairs(part0:GetConnectedParts()) do
if part1 == v then
return true
elseif not tfind(tested, v) then
ret = ret or isConnected(v, part1, tested)
end
end
return ret
end
local function attach(c1)
local bck = lp:FindFirstChildOfClass("Backpack")
local c = lp.Character
--checks for: model, humanoid, arm, torso for main character:
if not (c and c.Parent) then
notify("character not found")
return false
end
local hum = c:FindFirstChildOfClass("Humanoid")
if not hum then
notify("humanoid not found")
return false
end
local arm = gp(c, "Right Arm", "BasePart") or gp(c, "RightHand", "BasePart")
if not arm then
notify("arm not found")
return false
end
local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
if not torso then
notify("torso not found")
return
end
if torso:IsGrounded() then
notify("torso is grounded")
return
end
if not isConnected(arm, torso) then
notify("arm and toso not connected")
return
end
--checks for: tool:
local tool, handle = nil, nil
for i, v in pairs(c:GetChildren()) do
if v:IsA("Tool") then
handle = gp(v, "Handle", "BasePart")
if handle then
tool = v
break
end
end
end
if (not tool) and bck then
for i, v in pairs(bck:GetChildren()) do
if v:IsA("Tool") then
handle = gp(v, "Handle", "BasePart")
if handle then
tool = v
break
end
end
end
end
if not tool then
notify("no tools with handle found")
return false
end
--checks for: model, humanoid, arm, torso for target character:
if not (c1 and c1.Parent) then
notify("target character not found")
return false
end
local hum1 = c1:FindFirstChildOfClass("Humanoid")
if not hum1 then
notify("target humanoid not found")
return false
end
local arm1 = gp(c1, "Right Arm", "BasePart") or gp(c1, "RightHand", "BasePart")
if not arm1 then
notify("target arm not found")
return false
end
local torso1 = gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart")
if not torso1 then
notify("target torso not found")
return
end
if torso1:IsGrounded() then
notify("target torso is grounded")
return
end
if not isConnected(arm1, torso1) then
notify("target arm and toso not connected")
return
end
--all checks good
if bck then
for i, v in pairs(c:GetChildren()) do
if v:IsA("Tool") then
v.Parent = bck
end
end
end
removehats(c)
local nhum = hum:Clone()
hum:Destroy()
hum = nhum
hum.Parent = c
hum:EquipTool(tool)
for i, v in pairs(c1:GetDescendants()) do
if v and v.Parent and v:IsA("BasePart") then
v.Massless = true
end
end
local attaching = true
tspawn(function()
while renderstepped:Wait() and attaching do
--checks for: model, humanoid, arm, torso for main character:
if not (c and c.Parent) then
handle = nil
tool.Parent = bck
return notify("character removed")
end
if (not hum and hum.Parent) then
handle = nil
tool.Parent = bck
return notify("humanoid removed")
end
if not (arm and arm.Parent) then
handle = nil
tool.Parent = bck
return notify("arm removed")
end
if not (torso and torso.Parent) then
handle = nil
tool.Parent = bck
return notify("torso removed")
end
if torso:IsGrounded() then
handle = nil
tool.Parent = bck
return notify("torso got grounded")
end
if not isConnected(arm, torso) then
handle = nil
tool.Parent = bck
return notify("arm and toso connection removed")
end
--checks for: model, humanoid, arm, torso for target character:
if not (c1 and c1.Parent) then
handle = nil
tool.Parent = bck
return notify("target character removed")
end
if not (hum1 and hum1.Parent) then
handle = nil
tool.Parent = bck
return notify("target humanoid removed")
end
if not (arm1 and arm1.Parent) then
handle = nil
tool.Parent = bck
return notify("target arm removed")
end
if not (torso1 and torso1.Parent) then
handle = nil
tool.Parent = bck
return notify("target torso removed")
end
if torso:IsGrounded() then
handle = nil
tool.Parent = bck
return notify("target torso got grounded")
end
if not isConnected(arm1, torso1) then
handle = nil
tool.Parent = bck
return notify("target arm and toso connection removed")
end
--checks for: tool
if not (tool and tool.Parent) then
handle = nil
tool.Parent = bck
return notify("tool removed")
end
if not (handle and handle.Parent) then
handle = nil
tool.Parent = bck
return notify("tool handle removed")
end
if (tool.Parent ~= c) and (tool.Parent ~= c1) and (tool.Parent ~= bck) then
handle = nil
tool.Parent = bck
return notify("unexpected tool parent")
end
weldtp(arm1, handle.CFrame)
end
end)
while tool do
tool.AncestryChanged:Wait()
attaching = false
break
end
return handle
end
makeplrbutton("bring").MouseButton1Click:Connect(function()
local plr = currentplayer
local c1 = plr.Character
if not (c1 and c1.Parent) then
notify("target character not found")
return
end
if not tfind(controllable, c1) then
reset(true)
twait(0.1)
end
if not (plr and plr.Parent) then
notify("target player left")
return
end
if not (c1 and c1.Parent) then
c1 = plr.Character
end
if not (c1 and c1.Parent) then
notify("target character not found")
return
end
local c = lp.Character
if not (c and c.Parent) then
notify("character not found")
return
end
local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart")
if not part then
notify("part not found")
return
end
local cfr = part.CFrame
local joint = attach(plr.Character)
if not joint then
return
end
weldtp(part, cfr)
twait(0.5)
if c and c.Parent and part and part.Parent and joint and joint.Parent then
weldtp(part, cfr)
if not (joint and joint.Parent) then
notify("joint removed")
reset(false)
return
end
joint:BreakJoints()
reset(false)
if viewedPlayer == plr then
unview()
end
notify("brought " .. plr.Name)
end
end)
local fekill = nil
fekill = function(c1)
if not (c1 and c1.Parent) then
return notify("target character not found")
end
local torso = gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart")
if not torso then
return notify("target torso not found")
end
local head = gp(c1, "Head", "BasePart")
if not head then
return notify("target head not found")
end
if not isConnected(torso, head) then
return notify("torso and head not connected")
end
if not tfind(controllable, c1) then
reset(true)
twait(0.1)
end
if (plrs.RespawnTime < 15) and (plrs.RespawnTime > 1) then
notify("preparing fast respawn")
respawnRequest()
twait(plrs.RespawnTime - 1)
end
if not (c1 and c1.Parent) then
return notify("target character removed")
end
local c = lp.Character
if not (c and c.Parent) then
return notify("character not found")
end
local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "Head", "BasePart")
if not part then
return notify("part not found")
end
local hum = c1:FindFirstChildOfClass("Humanoid")
if not hum then
return notify("humanoid not found")
end
if not isConnected(torso, head) then
return notify("torso and head joint removed")
end
local cfr = part.CFrame
local part1 = gp(c1, "HumanoidRootPart", "BasePart") or gp(c1, "Torso", "BasePart") or gp(c1, "UpperTorso", "BasePart") or gp(c1, "Head", "BasePart")
if part1 then
weldtp(part, part1.CFrame)
end
if hum.Health > 0 then
hum.BreakJointsOnDeath = false
end
stepped:Wait()
local joint = attach(c1)
if not joint then
return weldtp(part, cfr)
end
stepped:Wait()
hum:ChangeState(Enum.HumanoidStateType.Dead)
twait(0.3)
if joint then
joint:BreakJoints()
end
weldtp(part, cfr)
reset(false)
notify("kill attempt failed")
local t = tick() + 1
local con = nil
con = stepped:Connect(function()
if tick() > t then
return con:Disconnect()
end
if not isConnected(torso, head) then
con:Disconnect()
notify("killed succesfully")
end
end)
end
makeplrbutton("kill").MouseButton1Click:Connect(function()
fekill(currentplayer.Character)
end)
makeplrbutton("attach").MouseButton1Click:Connect(function()
return attach(currentplayer.Character) and notify("attached to " .. currentplayer.Name)
end)
makeplrbutton("view friends").MouseButton1Click:Connect(function()
playerframef.Visible = not playerframef.Visible
if not playerframef.Visible then
return
end
playerframef:FindFirstChildOfClass("TextLabel").Text = "friends of: " .. currentplayer.Name
local scroll = playerframef:FindFirstChildOfClass("ScrollingFrame")
for i, v in pairs(scroll:GetChildren()) do
if v and v.Parent and v:IsA("TextButton") then
v:Destroy()
end
end
for i, v in pairs(plrs:GetPlayers()) do
tspawn(function()
if v and v.Parent and currentplayer:IsFriendsWith(v.UserId) then
addbtn(playerframef:FindFirstChildOfClass("ScrollingFrame"), v)
end
end)
end
end)
local function makeflingbutton(partname)
makeplrbutton("fling (" .. partname .. ")").MouseButton1Click:Connect(function()
local c = lp.Character
if c and c.Parent then
local hrp = gp(c, partname, "BasePart")
if hrp then
local c1 = currentplayer.Character
if c1 and c1.Parent then
local hrp1 = gp(c1, partname, "BasePart")
if hrp1 then
c:BreakJoints()
hrp.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0.01, 0.01, 0.01, 0.01)
for i, v in pairs(c:GetChildren()) do
if (v ~= hrp) and v and v.Parent and v:IsA("BasePart") then
v:Destroy()
end
end
hrp.Transparency = 0.5
while heartbeat:Wait() and c and c.Parent and hrp and hrp.Parent and c1 and c1.Parent and hrp1 and hrp1.Parent do
local pos = {x=0, y=0, z=0}
pos.x = hrp1.Position.X
pos.y = hrp1.Position.Y
pos.z = hrp1.Position.Z
pos.x += hrp1.Velocity.X / 2
pos.y += hrp1.Velocity.Y / 2
pos.z += hrp1.Velocity.Z / 2
local heightlock = ws.FallenPartsDestroyHeight + 5
if pos.y < heightlock then
pos.y = heightlock
end
hrp.CanCollide = false
hrp.Position = v3(pos.x, pos.y, pos.z)
hrp.Velocity = v3(0, 1000, 0)
hrp.RotVelocity = v3(10000, 10000, 10000)
ws.CurrentCamera.CameraSubject = hrp1
end
twait(0.1)
local c = lp.Character
if (c and c.Parent) then
ws.CurrentCamera.CameraSubject = c:FindFirstChildOfClass("Humanoid") or c:FindFirstChildWhichIsA("BasePart") or c
end
else
notify("target part not found")
end
else
notify("target character not found")
end
else
notify("part not found")
end
else
notify("character not found")
end
end)
end
makeflingbutton("Head")
makeflingbutton("HumanoidRootPart")
makeflingbutton("Torso")
local graphicsframe = makeFrame(scrollingFrame, "Graphics", Color3.fromRGB(84, 45, 162))
local function makegraphicsbutton(buttontext)
local button = instancenew("TextButton")
button.Name = randomstring()
button.Parent = graphicsframe:FindFirstChildOfClass("ScrollingFrame")
button.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
button.BorderSizePixel = 0
button.Size = UDim2.new(1, -10, 0, 20)
button.Font = Enum.Font.SourceSans
button.Text = buttontext
button.TextColor3 = Color3.fromRGB(226, 226, 226)
button.TextSize = 15.000
return button
end
local lig = g:GetService("Lighting")
makegraphicsbutton("remove fog").MouseButton1Click:Connect(function()
lig.FogStart = 9e9
lig.FogEnd = 9e9
end)
local function setupremove(button, classname)
button.MouseButton1Click:Connect(function()
for i, v in pairs(g:GetDescendants()) do
if v:IsA(classname) then
v:Destroy()
end
end
end)
end
setupremove(makegraphicsbutton("remove atmosphere effects"), "Atmosphere")
setupremove(makegraphicsbutton("remove blur"), "BlurEffect")
setupremove(makegraphicsbutton("remove decals"), "Decal")
setupremove(makegraphicsbutton("default sky"), "Sky")
setupremove(makegraphicsbutton("remove sun rays"), "SunRaysEffect")
setupremove(makegraphicsbutton("remove particles"), "ParticleEmitter")
setupremove(makegraphicsbutton("remove color correction effects"), "ColorCorrectionEffect")
local cfly = nil
local fhrp = nil
local flyspeed = 60
local positionsframe = makeFrame(scrollingFrame, "Positions", Color3.fromRGB(162, 108, 42))
local addpositionbutton = instancenew("TextButton")
addpositionbutton.Name = randomstring()
addpositionbutton.Parent = positionsframe:FindFirstChildOfClass("TextLabel")
addpositionbutton.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
addpositionbutton.BorderSizePixel = 0
addpositionbutton.Position = UDim2.new(1, -77, 0, 2)
addpositionbutton.Size = UDim2.new(0, 75, 1, -4)
addpositionbutton.Font = Enum.Font.SourceSans
addpositionbutton.Text = "+ add current"
addpositionbutton.TextColor3 = Color3.fromRGB(206, 206, 206)
addpositionbutton.TextSize = 14.000
addpositionbutton.MouseButton1Click:Connect(function()
local c = lp.Character
if c and c.Parent then
local hrp = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
if hrp then
local cfr = hrp.CFrame
local positionframe = instancenew("Frame")
local loadposbutton = instancenew("TextButton")
local removeposbutton = instancenew("TextButton")
local positionName = instancenew("TextBox")
positionframe.Name = randomstring()
positionframe.Parent = positionsframe:FindFirstChildOfClass("ScrollingFrame")
positionframe.BackgroundColor3 = Color3.fromRGB(106, 106, 106)
positionframe.BorderSizePixel = 0
positionframe.Size = UDim2.new(1, -10, 0, 30)
loadposbutton.Name = randomstring()
loadposbutton.Parent = positionframe
loadposbutton.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
loadposbutton.BorderSizePixel = 0