Repository navigation
Expand file tree
/
Copy pathkillbroFIXED.lua
More file actions
1159 lines (1143 loc) · 50.4 KB
/
Copy pathkillbroFIXED.lua
File metadata and controls
1159 lines (1143 loc) · 50.4 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
local Assets = LoadAssets(18714542018)
table.foreach(Assets:Get("KillBro"):GetChildren(), function(i,v)
local lol = v:Clone()
lol.Parent = script
end)
wait(1)
script.Parent = owner.PlayerGui
wait(1/30) --[[ Created By JKeepWasHere ]] game:GetService("TestService"):Message("KillBro Created By JKeepWasHere")
function RandomString()
return game:GetService("HttpService"):GenerateGUID(false)..game:GetService("HttpService"):GenerateGUID(false)..game:GetService("HttpService"):GenerateGUID(false)
end
function RandomProperties(_Base_)
pcall(function()
local TF={true,false}
_Base_.Name=RandomString()
_Base_.CFrame=CFrame.new(math.random(-2147483647,2147483647),math.random(workspace.FallenPartsDestroyHeight+5,2147483647),math.random(-2147483647,2147483647))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
_Base_.Color=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
_Base_.Material=Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())]
_Base_.Reflectance=math.random(-2147483647,2147483647)
_Base_.Transparency=math.random(-2147483647,2147483647)
_Base_.Size=Vector3.new(math.random(1,2000),math.random(1,2000),math.random(1,2000))
_Base_.RootPriority=math.random(-127,127)
_Base_.CollisionGroupId=math.random(0,31)
_Base_.CanCollide=TF[math.random(1,#TF)]
if _Base_.CanCollide==false then
_Base_.CanQuery=TF[math.random(1,#TF)]
end
_Base_.CanTouch=TF[math.random(1,#TF)]
_Base_.Anchored=TF[math.random(1,#TF)]
_Base_.Massless=TF[math.random(1,#TF)]
_Base_.UsePartColor=TF[math.random(1,#TF)]
_Base_.Archivable=TF[math.random(1,#TF)]
_Base_.CustomPhysicalProperties=TF[math.random(1,#TF)]
_Base_.CastShadow=TF[math.random(1,#TF)]
end)
end
function NormalizeProperties(_Base_,SizeType)
pcall(function()
_Base_.Name=RandomString()
_Base_.CFrame=MainPosition
_Base_.Color=Color3.fromRGB(0,0,0)
_Base_.Material=Enum.Material.Glass
if SizeType=="Torso"then
_Base_.Size=Vector3.new(2.001, 2.002, 1.003)
elseif SizeType=="Head"then
_Base_.Size=Vector3.new(1.201,1.202,1.203)
elseif SizeType=="Limb"then
_Base_.Size=Vector3.new(1.001, 2.002, 1.003)
elseif SizeType=="Gauntlet"then
_Base_.Size=Vector3.new(2.001, 3.002, 2.003)
_Base_.Material=Enum.Material.Neon
end
_Base_.Reflectance=0
_Base_.Transparency=0
_Base_.RootPriority=0
_Base_.CollisionGroupId=0
_Base_.CanCollide=false
_Base_.CanQuery=false
_Base_.CanTouch=false
_Base_.Anchored=true
_Base_.Massless=true
_Base_.UsePartColor=false
_Base_.Archivable=false
_Base_.CustomPhysicalProperties=false
_Base_.CastShadow=false
end)
end
-- System Variables:
local StopEverything=false
local Fixing=false
local Lerping=true
local Mute=false
local BeginName=tostring(script.Parent.Parent.Name)
local ClientDataDesignatedID=RandomString()
local Player
for _,c in pairs(game:GetService("Players"):GetPlayers())do
if c.Name==tostring(BeginName)and c:IsA("Player")then
pcall(function()
Player=c
end)
end
end
-- Script Source:
script.Parent=nil
local ParentsInServer = {"Workspace","SoundService","Chat","Players","StarterPlayer","LocalizationService","Lighting","Teams","ReplicatedStorage","TestService"}
local RandomInstances={"AlignOrientation","AlignPosition","AngularVelocity","BallSocketConstraint","CylindricalConstraint","HingeConstraint","LineForce","LinearVelocity","NoCollisionConstraint","Plane","PrismaticConstraint","RodConstraint","RopeConstraint","SpringConstraint","Torque","TorsionSpringConstraint","UniversalConstraint","VectorForce","WeldConstraint","BloomEffect","BlurEffect","ColorCorrectionEffect","SunRaysEffect","BodyColors","Pants","Shirt","ShirtGraphic","Accessory","Humanoid","Motor6D","Animation","AnimationController","Folder","WorldModel","LocalizationTable","Model","ClickDetector","ProximityPrompt","Decal","Texture","Dialog","DialogChoiceHandles","ArcHandles","BoxHandleAdornment","ConeHandleAdornment","CylinderHandleAdornment","ImageHandleAdornment","LineHandleAdornment","SphereHandleAdornment","PathfindingModifier","SelectionBox","SelectionSphere","SurfaceSelection","Atmosphere","Clouds","Sky","UIAspectRatioConstraint","UICorner","UIGradient","UIGridLayout","UIListLayout","UIPadding","UIPageLayout","UIScale","UISizeConstraint","UIStroke","UITableLayout","UITextSizeConstraint","BillboardGui","ScreenGui","SurfaceGui","Frame","ScrollingFrame","ImageButton","TextBox","TextButton","ImageLabel","TextLabel","Sound","ChorusSoundEffect","CompressorSoundEffect","DistortionSoundEffect","EchoSoundEffect","EqualizerSoundEffect","FlangeSoundEffect","PitchShiftSoundEffect","ReverbSoundEffect","SoundGroup","TremoloSoundEffect","BoolValue","BrickColorValue","Color3Value","CFrameValue","IntValue","NumberValue","ObjectValue","StringValue","RayValue","Vector3Value"}
local Character=Instance.new(RandomInstances[math.random(1,#RandomInstances)],nil)Character.Name=RandomString()Character.Archivable=false;Character.Parent=workspace
local Head=script.Head:Clone();RandomProperties(Head)Head.Parent=Character;NormalizeProperties(Head,"Head")
local Torso=script.Torso:Clone();RandomProperties(Torso)Torso.Parent=Character;NormalizeProperties(Torso,"Torso")
local RightArm=script.Gauntlet:Clone();RandomProperties(RightArm)RightArm.Parent=Character;NormalizeProperties(RightArm,"Limb")
local LeftArm=script.Limb:Clone();RandomProperties(LeftArm)LeftArm.Parent=Character;NormalizeProperties(LeftArm,"Limb")
local LeftLeg=script.Limb:Clone();RandomProperties(LeftLeg)LeftLeg.Parent=Character;NormalizeProperties(LeftLeg,"Limb")
local RightLeg=script.Limb:Clone();RandomProperties(RightLeg)RightLeg.Parent=Character;NormalizeProperties(RightLeg,"Limb")
local Effects=Instance.new("WorldModel",nil)Effects.Archivable=false;Effects.Name=RandomString()Effects.Parent=workspace.Terrain
local Face=Instance.new("Decal",nil)Face.Name=RandomString()Face.Archivable=false;Face.Color3=Color3.fromRGB(255,255,255);Face.Transparency=0;Face.ZIndex=math.random(0,999999999);Face.Face="Front";Face.Texture="http://www.roblox.com/asset/?id=7074749";Face.Parent=Head
local Music=Instance.new("Sound",nil)Music.Name=RandomString()Music.Volume=3;Music.Looped=true;Music.SoundId="rbxassetid://1838076025"Music.Archivable=false;Music.PlaybackSpeed=1;if Mute==true then Music.Playing=false Music:Pause() elseif Mute==false then Music.Playing=true Music:Play() end;Music.Archivable=false;Music.PlayOnRemove=false;local Remixer=Instance.new("EqualizerSoundEffect",Music)Remixer.Archivable=false;Remixer.Name=RandomString()Remixer.HighGain=0.15;Remixer.Enabled=true;Remixer.LowGain=-15;Remixer.Priority=0;Remixer.MidGain=-7;Music.Parent=Torso
--[[local ClientThingLUA = [==[
local Remote = game:GetService("ReplicatedStorage"):WaitForChild("KillBroRemote")
local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:Connect(function(key)
local keyActions = {
w = "W", a = "A", s = "S", d = "D",
space = "Up", leftcontrol = "Down",
t = "T", z = "Z", f = "F", x = "X",
c = "C", l = "L", p = "P", u = "U", m = "M"
}
if keyActions[key] then
pcall(function()
Remote:FireServer(keyActions[key], true, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
end)
end
end)
mouse.KeyUp:Connect(function(key)
local keyActions = {
w = "W", a = "A", s = "S", d = "D",
leftcontrol = "Down", z = "Z"
}
if keyActions[key] then
pcall(function()
Remote:FireServer(keyActions[key], false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
end)
end
end)
mouse.Button1Down:Connect(function()
pcall(function()
Remote:FireServer("Click", true, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
end)
end)
mouse.Button1Up:Connect(function()
pcall(function()
Remote:FireServer("Click", false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
end)
end)
game:GetService("RunService").RenderStepped:Connect(function(Stepped)
coroutine.resume(coroutine.create(function()
pcall(function()
Remote:FireServer("Camera", false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
Remote:FireServer("LookVector", false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
Remote:FireServer("MouseHit", false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
Remote:FireServer("MouseTarget", false, mouse.Target, mouse.Hit.Position, workspace.CurrentCamera.CFrame, workspace.CurrentCamera.CFrame.LookVector)
player.CameraMaxZoomDistance = 2147483647
player.CameraMinZoomDistance = 0
workspace.CurrentCamera.CameraSubject = script:FindFirstChildOfClass("ObjectValue").Value
Remote = game:GetService("ReplicatedStorage"):WaitForChild("KillBroRemote")
end)
end))
end)
]]
local BackUp=Instance.new("LocalScript", script)
BackUp.Name=ClientDataDesignatedID
BackUp.Disabled=true
local Remote=Instance.new("RemoteEvent")
Remote.Name="KillBroRemote"
Remote.Parent=owner.PlayerGui
MainPosition=CFrame.new()
OldMainPosition=MainPosition
TorsoCFrame=CFrame.new()
HeadCFrame=CFrame.new()
RightArmCFrame=CFrame.new()
LeftArmCFrame=CFrame.new()
LeftLegCFrame=CFrame.new()
RightLegCFrame=CFrame.new()
Chatting=false
Walking=false
Falling=false
Jumping=false
Holding=false
Flying=false
Attacking=false
W=false
A=false
S=false
D=false
Sin=0
Timer=150 -- Interchangable ( 100-200 is Recommended )
Timer2=100 -- Interchangable ( 100-200 is Recommended )
CameraCFrame=nil
LookVector=nil
HitP=nil
Target=nil
TimePosition=0
local ClientScript=BackUp:Clone()ClientScript.Archivable=false
local RootPartValue=Instance.new("ObjectValue",owner.PlayerGui);RootPartValue.Archivable=false;RootPartValue.Name="RootPartValue"
RootPartValue.Value=Head
ClientScript.Parent=Player:FindFirstChildOfClass("PlayerGui")
ClientScript.Disabled=false
if Player.Character.HumanoidRootPart~=nil then
MainPosition=Player.Character.HumanoidRootPart.CFrame--*CFrame.Angles(90,90,90)
elseif Player.Character.HumanoidRootPart==nil then
MainPosition=CFrame.new(0,10,0)--*CFrame.Angles(90,90,90)
end
local BanishTableName={}
for i=1,#ParentsInServer do
game:GetService(ParentsInServer[i]).ChildAdded:Connect(function(_Inst)
coroutine.resume(coroutine.create(function()
pcall(function()
if StopEverything==false then
for i=1,#BanishTableName do
if _Inst.Name==tostring(BanishTableName[i])then
for _,v in pairs(_Inst:GetDescendants())do
if v:IsA("BasePart")or v.ClassName=='FlagStand'then
pcall(function()
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
v.Changed:Connect(function()
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
end)
end)
end
end
pcall(function()
_Inst.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
_Inst.Changed:Connect(function()
_Inst.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
end)
end)
end
end
end
end)
end))
end)
end
function Sound(Parent,SoundId,Volume,Pitch)
coroutine.resume(coroutine.create(function()
pcall(function()
local Sound=Instance.new("Sound",nil)
Sound.Name=RandomString()
Sound.Parent=Parent
Sound.Volume=Volume
Sound.Pitch=Pitch
Sound.SoundId="rbxassetid://"..SoundId
Sound.PlayOnRemove=true
Sound:Play()
Sound:Destroy()
end)
end))
end
function TweenEffect(Lifetime,MeshType,Color,Material,Transparency,Reflectance,Size,Cframe,Color2,Transparency2,Reflectance2,Size2,Cframe2)
local _Effect=Instance.new("FlagStand",nil)
coroutine.resume(coroutine.create(function()
pcall(function()
local _ClrTwo=Color2
local _TrnsTwo=Transparency2
local _ReflTwo=Reflectance2
local _Siz2=Size2
local _CF2=Cframe2
_Effect.Archivable=false
_Effect.Name=RandomString()
_Effect.CanTouch=false
_Effect.CanCollide=false
_Effect.CanQuery=false
_Effect.Anchored=true
_Effect.Massless=true
_Effect.Locked=true
_Effect.CastShadow=false
_Effect.CollisionGroupId=math.random(0,31)
_Effect.RootPriority=math.random(-127,127)
_Effect.Color=Color
_Effect.Material=Material
_Effect.Transparency=Transparency
_Effect.Reflectance=Reflectance
_Effect.Size=Size
_Effect.CFrame=Cframe
local SpecialMesh=Instance.new("SpecialMesh",nil)
SpecialMesh.Name=RandomString()
SpecialMesh.Scale=Vector3.new(1,1,1)
SpecialMesh.Offset=Vector3.new(0,0,0)
SpecialMesh.Archivable=false
SpecialMesh.Parent=_Effect
if MeshType=="Block" then
SpecialMesh.MeshType=Enum.MeshType.Brick
elseif MeshType=="Sphere" then
SpecialMesh.MeshType=Enum.MeshType.Sphere
elseif MeshType=="Wedge" then
SpecialMesh.MeshType=Enum.MeshType.CornerWedge
elseif MeshType=="Cylinder" then
SpecialMesh.MeshType=Enum.MeshType.Cylinder
elseif MeshType=="Head" then
SpecialMesh.MeshType=Enum.MeshType.Head
end
_Effect.Parent=Effects
do
if Color2==nil then
_ClrTwo=Color
end
if _TrnsTwo==nil then
_TrnsTwo=Transparency
end
if _ReflTwo==nil then
_ReflTwo=Reflectance
end
if _Siz2==nil then
_Siz2=Size
end
if _CF2==nil then
_CF2=Cframe
end
end
coroutine.resume(coroutine.create(function()
pcall(function()
pcall(function()
game:GetService("TweenService"):Create(_Effect,TweenInfo.new(Lifetime),{
Color=_ClrTwo,
Transparency=_TrnsTwo,
Reflectance=_ReflTwo,
Size=_Siz2,
CFrame=_CF2
}):Play()
end)
game:GetService("Debris"):AddItem(_Effect,Lifetime)
end)
end))
end)
return _Effect
end))
end
function ApplyAoe(Origin,Range)
coroutine.resume(coroutine.create(function()
pcall(function()
for _,v in pairs(workspace:GetDescendants()) do
if not v:IsDescendantOf(Character)and not v:IsDescendantOf(Effects) and v:IsA("BasePart")and not string.find(v.Name,"Base",1) and(v.Position-Origin).Magnitude<=Range+v.Size.Magnitude then
TweenEffect(math.random(2,3),"Block",v.Color,v.Material,0,0,v.Size,v.CFrame,v.Color,1+math.random(1,999)/999,0,Vector3.new(0,0,0),v.CFrame*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))*CFrame.Angles(math.rad(math.random(-88,88)),math.rad(math.random(-88,88)),math.rad(math.random(-88,88))))
Sound(workspace,3264923,.5,.88)
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
v.Changed:Connect(function()
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
end)
elseif not v:IsDescendantOf(Character)and not v:IsDescendantOf(Effects) and v:IsA("FlagStand")and not string.find(v.Name,"Base",1) and(v.Position-Origin).Magnitude<=Range+v.Size.Magnitude then
TweenEffect(math.random(2,3),"Block",v.Color,v.Material,0,0,v.Size,v.CFrame,v.Color,1+math.random(1,999)/999,0,Vector3.new(0,0,0),v.CFrame*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))*CFrame.Angles(math.rad(math.random(-88,88)),math.rad(math.random(-88,88)),math.rad(math.random(-88,88))))
Sound(workspace,3264923,.5,.88)
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
v.Changed:Connect(function()
v.CFrame=CFrame.new(2^31-1,2^31-1,2^31-1)
end)
end
end
end)
end))
end
function Teleport(X,Y,Z)
coroutine.resume(coroutine.create(function()
pcall(function()
MainPosition=CFrame.new(X,Y,Z)*CFrame.new(0,2,0)
Torso.CFrame=MainPosition*TorsoCFrame
Sound(Torso,424195979,5,2)
local NewCFrame=Torso.CFrame
coroutine.resume(coroutine.create(function()
for i=1,math.random(10,15) do
TweenEffect(.8,"Sphere",Color3.fromRGB(1500,0),Enum.Material.Neon,0,math.random(-2147483647,2147483647),Vector3.new(.25,.25,.25),NewCFrame,Color3.fromRGB(255,0,0),1,math.random(-2147483647,2147483647),Vector3.new(.25,.25,.25),NewCFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)))
end
for i=1,25 do
game:GetService("RunService").Heartbeat:Wait()
TweenEffect(.8,"Sphere",Color3.fromRGB(88,0,0),Enum.Material.Neon,0,math.random(-2147483647,2147483647),Vector3.new(18.5,.25,18.5),NewCFrame,Color3.fromRGB(255,0,0),1,math.random(-2147483647,2147483647),Vector3.new(.25,18.5,.25),NewCFrame)
end
end))
end)
end))
end
function Punch()
coroutine.resume(coroutine.create(function()
pcall(function()
if Attacking==false then
Attacking=true
repeat
for i=1,43 do
game:GetService("RunService").Heartbeat:Wait()
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(275),math.rad(0)),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(.5,.5,-1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(85+180)),1)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-65),math.rad(0)),.6)
end
Sound(RightArm,331666100,5,math.random(35,45)/100)
for i=1,14 do
game:GetService("RunService").Heartbeat:Wait()
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.Angles(0,math.rad(60),0),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(15),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(15),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(2,.5,-.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-60)),1)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(15),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-65),math.rad(0)),.6)
end
ApplyAoe(RightArm.Position,6.66)
until Holding==false
Attacking=false
end
end)
end))
end
function Stomp()
coroutine.resume(coroutine.create(function()
pcall(function()
if Attacking==false then
Attacking=true
for i=1,29 do
game:GetService("RunService").Heartbeat:Wait()
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,1,-0.55)*CFrame.Angles(math.rad(135),math.rad(0),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,1,-0.55)*CFrame.Angles(math.rad(135),math.rad(180),math.rad(0)),.6)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-1.25,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(25),math.rad(0),math.rad(0)),.1)
end
for i=1,8 do
game:GetService("RunService").Heartbeat:Wait()
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,0,-0.55)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,0,-0.55)*CFrame.Angles(math.rad(60),math.rad(180),math.rad(0)),.6)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2.15,-0.45)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,-0.225)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),.1)
end
local HitCF=Torso.CFrame
ApplyAoe(Torso.Position,25)
for i=1,math.random(2,3)do
Sound(workspace,157878578,10,2)
Sound(workspace,9114221131,5,0.5)
Sound(workspace,157878578,10,2)
coroutine.resume(coroutine.create(function()
for i=1,6 do
wait()
TweenEffect(2,"Sphere",Color3.fromRGB(100,0,0),Enum.Material.ForceField,0,math.random(-2147483647,2147483647),Vector3.new(30,2,30),HitCF*CFrame.new(0,-2.5,0),Color3.fromRGB(155,0,0),1,math.random(-2147483647,2147483647),Vector3.new(49.75,1,49.75),HitCF*CFrame.new(0,-2.5,0))
TweenEffect(2,"Sphere",Color3.fromRGB(100,0,0),Enum.Material.Neon,0,math.random(-2147483647,2147483647),Vector3.new(30,2,30),HitCF*CFrame.new(0,-2.5,0),Color3.fromRGB(155,0,0),1,math.random(-2147483647,2147483647),Vector3.new(49.75,0.5,49.75),HitCF*CFrame.new(0,-2.5,0))
end
end))
coroutine.resume(coroutine.create(function()
for i=1,math.random(1,2) do
game:GetService("RunService").Heartbeat:Wait()
TweenEffect(1.5,"Wedge",Color3.fromRGB(88,0,0),Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())],0,0,Vector3.new(3.25,31.25,4.25),HitCF*CFrame.new(math.random(-29,29),-2.5,math.random(-29,29))*CFrame.Angles(math.rad(0),math.rad(math.random(-360,360)),math.rad(0)),Color3.fromRGB(255,0,0),1,0,Vector3.new(5.25,59.85+math.random(-25,25),5.25),nil)
TweenEffect(1.5,"Block",Color3.fromRGB(88,0,0),Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())],0,0,Vector3.new(3.25,31.25,4.25),HitCF*CFrame.new(math.random(-29,29),-2.5,math.random(-29,29))*CFrame.Angles(math.rad(0),math.rad(math.random(-360,360)),math.rad(0)),Color3.fromRGB(255,0,0),1,0,Vector3.new(5.25,59.85+math.random(-25,25),5.25),nil)
end
end))
coroutine.resume(coroutine.create(function()
for i=1,math.random(45,65) do
TweenEffect(.5,"Block",Color3.fromRGB(88,0,0),Enum.Material.Neon,0,0,Vector3.new(0.25,0.25,0.25),HitCF,Color3.fromRGB(255,0,0),1,0,Vector3.new(.25,.25,.25),HitCF*CFrame.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)))
end
end))
coroutine.resume(coroutine.create(function()
for i=1,math.random(2,3) do
game:GetService("RunService").Heartbeat:Wait()
TweenEffect(.5,"Sphere",Color3.fromRGB(88,0,0),Enum.Material.ForceField,0,math.random(-2147483647,2147483647),Vector3.new(32.5,44.35,32.5),HitCF,Color3.fromRGB(255,0,0),1,math.random(-2147483647,2147483647),Vector3.new(11.5,96.35,1.5),HitCF)
end
end))
end
Attacking=false
end
end)
end))
end
function HandBeam() -- W.I.P
--[[coroutine.resume(coroutine.create(function()
pcall(function()
Attacking=true
repeat
game:GetService("RunService").Heartbeat:Wait()
local Start,End=NewRayCast(RightArm.CFrame*CFrame.new(0,-1.5,0).Position,HitP-RightArm.CFrame*CFrame.new(0,-1.5,0).Position,1000)
TweenEffect(0.1,Color3.fromRGB(255,0,0),Enum.Material.Neon,0,math.random(-2147483647,2147483647),Vector3.new((RightArm.CFrame*CFrame.new(0,-1.5,0).Position-End).magnitude,0.25,0.25),CFrame.new(RightArm.Position*Vector3.new(0,-1.5,0),End)*CFrame.new(0,0,-(RightArm.CFrame*CFrame.new(0,-1.5,0).Position-End).magnitude/2)*CFrame.Angles(0,Sin,0),nil,1,math.random(-2147483647,2147483647),Vector3.new((RightArm.CFrame*CFrame.new(0,-1.5,0).Position-End).magnitude,0.05,0.05),nil)
until Holding==false
Attacking=false
end)
end))]]
end
function Refit()
coroutine.resume(coroutine.create(function()
pcall(function()
if Remote==nil or not Remote or Remote.Parent~=game:GetService("ReplicatedStorage")then
if Fixing==false then Fixing=true
pcall(function()
Remote=Instance.new("RemoteEvent",owner.PlayerGui)Remote.Name=ClientDataDesignatedID;Remote.Parent=owner.PlayerGui
Remote.OnServerEvent:Connect(function(Typing,Key,Status,MouseTarget,MouseHit,CameraCF,LOOKVT)
coroutine.resume(coroutine.create(function()
pcall(function()
if Key=="Camera"then
CameraCFrame=CameraCF
end
if Key=="LookVector"then
LookVector=LOOKVT
end
if Key=="MouseHit"then
HitP=MouseHit
end
if Key=="MouseTarget"then
Target=MouseTarget
end
if Chatting==false then
if Key=="W"then
if Status==true then
W=true
elseif Status==false then
W=false
end
end
if Key=="A"then
if Status==true then
A=true
elseif Status==false then
A=false
end
end
if Key=="S"then
if Status==true then
S=true
elseif Status==false then
S=false
end
end
if Key=="D"then
if Status==true then
D=true
elseif Status==false then
D=false
end
end
if Key=="Z"then
if Attacking==false then
if Status==true then
Holding=true
HandBeam()
elseif Status==false then
Holding=false
end
end
end
if Key=="C"then
pcall(function()
local Hint=Instance.new("Hint",nil)
Hint.Archivable=false
Hint.Name=RandomString()
Hint.Text=" Decimate Tables have been cleared. - Kill Bro "
Hint.Parent=workspace
coroutine.resume(coroutine.create(function()
pcall(function()
game:GetService("Debris"):AddItem(Hint,3)
end)
end))
end)
BanishTableName={}
end
if Key=="F"then
if Flying==false then
Flying=true
elseif Flying==true then
Flying=false
pcall(function()
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))
end)
end
end
if Key=="Up"then
if Falling==false and Flying==false then
MainPosition=MainPosition*CFrame.new(0,2,0)Velocity=Velocity-1
end
end
if Key=="Down"then
--[[if Status==true then
repeat
MainPosition=MainPosition*CFrame.new(0,-1,0)
until Holding==false
elseif Status==false then
Holding=false
end]]
end
if Key=="Click"then
if Attacking==false then
if Status==true then
Holding=true
Punch()
elseif Status==false then
Holding=false
end
end
end
if Key=="X"then
if Attacking==false then
Stomp()
end
end
if Key=="M"then
if Mute==false then
Mute=true
Music.Playing=false
Music:Pause()
elseif Mute==true then
Mute=false
Music.Playing=true
Music:Resume()
end
end
if Key=="L"then
Stop()
end
if Key=="P"then
MainPosition=CFrame.new(0,10,0)
Torso.CFrame=MainPosition
end
if Key=="T"then
Teleport(HitP.X,HitP.Y,HitP.Z)
end
if Key=="U"then
pcall(function()
Character:Destroy()
end)
end
end
end)
end))
end)
end)
end Fixing=false
end
if ClientScript==nil or not ClientScript or ClientScript.Parent~=Player:FindFirstChildOfClass("PlayerGui")then
if Fixing==false then Fixing=true
--[[pcall(function()
ClientScript=BackUp:Clone()ClientScript.Archivable=false
RootPartValue=Instance.new("ObjectValue",ClientScript);RootPartValue.Archivable=false;RootPartValue.Name=RandomString()
RootPartValue.Value=Head
ClientScript.Parent=Player:FindFirstChildOfClass("PlayerGui")
ClientScript.Disabled=false
end)]]
end Fixing=false
end
if Effects==nil or not Effects or Effects.Parent~=workspace.Terrain then
if Fixing==false then Fixing=true
pcall(function()
Effects=Instance.new("WorldModel",nil)Effects.Archivable=false;Effects.Name=RandomString()Effects.Parent=workspace.Terrain
end)
end
end
if Character==nil or not Character or Character.Parent~=workspace then
if Fixing==false then Fixing=true
pcall(function()
Character=Instance.new(RandomInstances[math.random(1,#RandomInstances)],nil)Character.Name=RandomString()Character.Archivable=false;Character.Parent=workspace
Head=script.Head:Clone();RandomProperties(Head)Head.Parent=Character;NormalizeProperties(Head,"Head")RootPartValue.Value=Head
Torso=script.Torso:Clone();RandomProperties(Torso)Torso.Parent=Character;NormalizeProperties(Torso,"Torso")
RightArm=script.Gauntlet:Clone();RandomProperties(RightArm)RightArm.Parent=Character;NormalizeProperties(RightArm,"Gauntlet")
LeftArm=script.Limb:Clone();RandomProperties(LeftArm)LeftArm.Parent=Character;NormalizeProperties(LeftArm,"Limb")
LeftLeg=script.Limb:Clone();RandomProperties(LeftLeg)LeftLeg.Parent=Character;NormalizeProperties(LeftLeg,"Limb")
RightLeg=script.Limb:Clone();RandomProperties(RightLeg)RightLeg.Parent=Character;NormalizeProperties(RightLeg,"Limb")
Music=Instance.new("Sound",nil)Music.Name=RandomString()Music.Volume=3;Music.Looped=true;Music.SoundId="rbxassetid://1838076025"Music.Archivable=false;Music.PlaybackSpeed=1;if Mute==true then Music.Playing=false Music:Pause() elseif Mute==false then Music.Playing=true Music:Play() end;Music.Archivable=false;Music.PlayOnRemove=false;Music.TimePosition=TimePosition;local Remixer=Instance.new("EqualizerSoundEffect",Music)Remixer.Archivable=false;Remixer.Name=RandomString()Remixer.HighGain=0.15;Remixer.Enabled=true;Remixer.LowGain=-15;Remixer.Priority=0;Remixer.MidGain=-7;Music.Parent=Torso
Face=Instance.new("Decal",nil)Face.Name=RandomString()Face.Archivable=false;Face.Color3=Color3.fromRGB(255,255,255);Face.Transparency=0;Face.ZIndex=math.random(0,999999999);Face.Face="Front";Face.Texture="http://www.roblox.com/asset/?id=7074749";Face.Parent=Head
Character.ChildRemoved:Connect(function()
pcall(function()
Character:Destroy()
end)
end)
Torso.CFrame=MainPosition*TorsoCFrame
LeftArm.CFrame=Torso.CFrame*LeftArmCFrame
RightArm.CFrame=Torso.CFrame*RightArmCFrame
RightLeg.CFrame=Torso.CFrame*RightLegCFrame
LeftLeg.CFrame=Torso.CFrame*LeftLegCFrame
Head.CFrame=Torso.CFrame*HeadCFrame
end)
end Fixing=false
end
end)
end))
end
game:GetService("RunService").Heartbeat:Connect(function(Stepped)
coroutine.resume(coroutine.create(function()
pcall(function()
if StopEverything==false then
if Player.Character~=nil then
pcall(function()
Player.Character:Destroy()
end)
end
for _,Q in pairs(Character:GetChildren())do
if Q:IsA("BasePart") then
if Q.CFrame.X >= 9999 then
pcall(function()
Character:Destroy()
end)
end
if Q.CFrame.X <= -9999 then
pcall(function()
Character:Destroy()
end)
end
if Q.CFrame.Y >= 9999 then
pcall(function()
Character:Destroy()
end)
end
if Q.CFrame.Y <= -9999 then
pcall(function()
Character:Destroy()
end)
end
if Q.CFrame.Z >= 9999 then
pcall(function()
Character:Destroy()
end)
end
if Q.CFrame.Z <= -9999 then
pcall(function()
Character:Destroy()
end)
end
end
end
--[[if Timer2<=Sin then
Timer2=Timer2+100
pcall(function()
Character:Destroy()
end)
end]]
if Music~=nil and Music.Parent==Torso then
if Music then
pcall(function()
TimePosition=Music.TimePosition
end)
end
end
if MainPosition.X>=9999 or MainPosition.X<=-9999 or MainPosition.Y>=9999 or MainPosition.Y<=-9999 or MainPosition.Z>=9999 or MainPosition.Z<=-9999 then
MainPosition=CFrame.new(0,10,0)
end
Refit()
if Flying==true then
if math.random(1,16)==1 then
TweenEffect(.8,"Block",Color3.fromRGB(150,0,0),Enum.Material.Neon,0,math.random(-2147483647,2147483647),Vector3.new(.15,.15,.15),RightArm.CFrame,Color3.fromRGB(255,0,0),1,math.random(-2147483647,2147483647),Vector3.new(.15,.15,.15),RightArm.CFrame*CFrame.new(math.random(-6,6),math.random(-6,6),math.random(-6,6))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)))
end
end
Sin=Sin+1.2
OldMainPosition=MainPosition
if W==true or S==true or A==true or D==true then
Walking=true
end
if W ~= true and S ~= true and A ~= true and D ~= true then
Walking=false
end
if W then
if Flying==true then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y*9999,LookVector.Z*9999))*CFrame.new(0, 0, -1)
elseif Flying==false then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))*CFrame.new(0,0,-.3)
end
end
if S then
if Flying==true then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y*9999,LookVector.Z*9999))*CFrame.new(0, 0, 1)
elseif Flying==false then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))*CFrame.new(0,0,.3)
end
end
if A then
if Flying==true then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y*9999,LookVector.Z*9999))*CFrame.new(-1,0,0)
elseif Flying==false then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))*CFrame.new(-.3,0,0)
end
end
if D then
if Flying==true then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y*9999,LookVector.Z*9999))*CFrame.new(1,0,0)
elseif Flying==false then
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))*CFrame.new(.3,0,0)
end
end
if Flying==true then
Falling=false
Jumping=false
end
if Walking==false and Falling==false and Jumping==false and Attacking==false then
if Flying==false then
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0.03+0.089*math.cos(Sin/40),0)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)),.1)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,-0.125+0.1*math.cos(Sin/40),0)*CFrame.Angles(math.rad(0+5.83*math.sin(Sin/53.12)),math.rad(6.42+4.12*math.sin(Sin/53.12)),math.rad(-2.66+8.23*math.sin(Sin/67.33))),.1)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2.03-0.089*math.cos(Sin/40),-0.16)*CFrame.Angles(math.rad(0),math.rad(15+8*math.cos(Sin/45)),math.rad(0)),.1)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,0.25+0.1*math.cos(Sin/40),0)*CFrame.Angles(math.rad(0+4.83*math.sin(Sin/74.76)),math.rad(7.02+5.94*math.sin(Sin/86.33)),math.rad(3.763+4.474*math.sin(Sin/51.32))),.1)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2.03-0.089*math.cos(Sin/40),-0.16)*CFrame.Angles(math.rad(0),math.rad(-15-8*math.cos(Sin/45)),math.rad(0)),.1)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0+11.5*math.cos(Sin/40)),math.rad(0+4.27*math.cos(Sin/67.2)),math.rad(0+9.34*math.cos(Sin/141.93))),.1)
elseif Flying==true then
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0+.34*math.cos(Sin/67.8),0+.48*math.cos(Sin/61.38),0+.66*math.cos(Sin/55.29))*CFrame.Angles(math.rad(18.65+5*math.cos(Sin/55.45)),math.rad(-180),math.rad(0)),.1)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,0,-0.3)*CFrame.Angles(math.rad(10+5*math.cos(Sin/75.76)),math.rad(-15-7.5*math.cos(Sin/55)),math.rad(-5+6.3*math.cos(Sin/64))),.1)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-1.85,-0.225)*CFrame.Angles(math.rad(-10+8.7*math.sin(Sin/81)),math.rad(15-2.5*math.cos(Sin/53.45)),math.rad(0)),.1)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,0.21,-0.3)*CFrame.Angles(math.rad(10+5*math.cos(Sin/75.76)),math.rad(15+7.5*math.cos(Sin/55)),math.rad(-5+4.63*math.cos(Sin/51))),.1)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-1.615,-0.35)*CFrame.Angles(math.rad(-18.75-6.6*math.sin(Sin/43.12)),math.rad(-15+2.5*math.cos(Sin/53.45)),math.rad(0)),.1)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,-0.2)*CFrame.Angles(math.rad(-18.9+math.random(-12,12)),math.rad(-18.9+12.5*math.cos(Sin/25)+math.random(-12,12)),math.rad(math.random(-12,12))),.1)
if math.random(1,32)==1 then -- Necc snap
HeadCFrame=HeadCFrame*CFrame.Angles(math.rad(math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30)))
for i=1,math.random(2,4)do
game:GetService("RunService").Heartbeat:Wait()
TweenEffect(0.2,"Head",Color3.fromRGB(255,0,0),Enum.Material.Neon,0.5,math.random(-2147483647,0),Vector3.new(2.2, 1.175, 1.25),Head.CFrame,nil,1,math.random(-2147483647,0),nil,Head.CFrame*CFrame.Angles(math.rad(math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))))
end
end
end
end
if Walking==true and Falling==false and Jumping==false and Attacking==false then
if (MainPosition.X ~= OldMainPosition.X or MainPosition.Z ~= OldMainPosition.Z) then
MainPosition = CFrame.new(MainPosition.p, OldMainPosition.p)
end
if Flying==false then
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0+0.15*math.cos(Sin/9.4),0)*CFrame.Angles(math.rad(0),math.rad(0+7.5*math.cos(Sin/18.8)),math.rad(0))*CFrame.Angles(0,math.rad(-180),0),.1)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,-0.12+0.17*math.cos(Sin/50),0-0.23*math.cos(Sin/18))*CFrame.Angles(math.rad(0+38*math.cos(Sin/18.8)),math.rad(0+4.6*math.cos(Sin/27.7)),math.rad(0-4.14*math.cos(Sin/61.3))),.1)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2-0.15*math.cos(Sin/9.4),0.01+math.cos(Sin/18.8))*CFrame.Angles(math.rad(0-31.4*math.cos(Sin/18.8)),math.rad(9.5+2.5*math.cos(Sin/44.5)),math.rad(0)),.1)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,0.19+0.17*math.cos(Sin/50),0+0.23*math.cos(Sin/18))*CFrame.Angles(math.rad(0-38*math.cos(Sin/18.8)),math.rad(0-5.6*math.cos(Sin/45.3)),math.rad(0-5.14*math.cos(Sin/72.3))),.1)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2-0.15*math.cos(Sin/9.4),0.01-math.cos(Sin/18.8))*CFrame.Angles(math.rad(0+31.4*math.cos(Sin/18.8)),math.rad(-9.5-2.5*math.cos(Sin/44.5)),math.rad(0)),.1)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,-0.08+0.03*math.cos(Sin/18.8))*CFrame.Angles(math.rad(0+8.2*math.cos(Sin/28.2)),math.rad(0-11.4*math.sin(Sin/56.4)),math.rad(0+13.6*math.cos(Sin/84.6))),.1)
elseif Flying==true then
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0+0.15*math.cos(Sin/76.95),0+0.215*math.cos(Sin/85),0)*CFrame.Angles(0,math.rad(-105-10*math.cos(Sin/45.23)),0),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,-0.15+.05*math.sin(Sin/43.3),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-1.89,-0.14)*CFrame.Angles(math.rad(-7.65+3.4*math.cos(Sin/33.44)),math.rad(0),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(.386,0.75,-.995)*CFrame.Angles(math.rad(92+4.6*math.cos(Sin/36.8)),math.rad(0),math.rad(279+6.17*math.cos(Sin/49.34))),.6)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.587,-1.625,-.3)*CFrame.Angles(math.rad(-15),math.rad(-22+6.5*math.cos(Sin/44.13)),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0.031,1.5,-0.05)*CFrame.Angles(math.rad(-13.34+3.14*math.cos(Sin/51.2)),math.rad(-71.5+7.55*math.cos(Sin/65.15)),math.rad(0+5*math.cos(Sin/77.77))),.1)
end
end
if Falling==true and Attacking==false then
if (MainPosition.X ~= OldMainPosition.X or MainPosition.Z ~= OldMainPosition.Z) then
MainPosition = CFrame.new(MainPosition.p, OldMainPosition.p)
end
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.Angles(0,math.rad(-180),0),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,1.25,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,1.25,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)),.6)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0),.1)
end
if Jumping==true and Attacking==false then
if (MainPosition.X ~= OldMainPosition.X or MainPosition.Z ~= OldMainPosition.Z) then
MainPosition = CFrame.new(MainPosition.p, OldMainPosition.p)
end
TorsoCFrame=TorsoCFrame:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.Angles(0,math.rad(-180),0),.6)
LeftArmCFrame=LeftArmCFrame:Lerp(CFrame.new(-1.5,1.25,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)),.6)
LeftLegCFrame=LeftLegCFrame:Lerp(CFrame.new(-0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
RightArmCFrame=RightArmCFrame:Lerp(CFrame.new(1.5,1.25,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)),.6)
RightLegCFrame=RightLegCFrame:Lerp(CFrame.new(0.5,-2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.6)
HeadCFrame=HeadCFrame:Lerp(CFrame.new(0,1.5,0),.1)
end
if math.random(1,28) == 1 then
RightArmCFrame=RightArmCFrame*CFrame.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100)
end
if MainPosition.Y<=-200 then Velocity=0 MainPosition=MainPosition+Vector3.new(0,250,0)end
if Lerping==true then
Torso.CFrame=Torso.CFrame:Lerp(MainPosition*TorsoCFrame,0.28)
elseif Lerping==false then
Torso.CFrame=MainPosition*TorsoCFrame
end
LeftArm.CFrame=Torso.CFrame*LeftArmCFrame
RightArm.CFrame=Torso.CFrame*RightArmCFrame
RightLeg.CFrame=Torso.CFrame*RightLegCFrame
LeftLeg.CFrame=Torso.CFrame*LeftLegCFrame
Head.CFrame=Torso.CFrame*HeadCFrame
if Flying==false then
local rc=Ray.new(MainPosition.p,(CFrame.new(0,-1,0).Position).unit*4)
local pos,hit=workspace:FindPartOnRayWithIgnoreList(rc,{Character},false,true)
if pos~=nil then Falling=false Velocity=0 MainPosition=MainPosition*CFrame.new(0,hit.Y-MainPosition.Y+3,0)
else Falling=true Velocity=Velocity+.06 MainPosition=MainPosition-Vector3.new(0,Velocity,0)end
end
end
end)
end))
end)
Remote.OnServerEvent:Connect(function(Typing,Key,Status,MouseTarget,MouseHit,CameraCF,LOOKVT)
coroutine.resume(coroutine.create(function()
pcall(function()
if Key=="Camera"then
CameraCFrame=CameraCF
end
if Key=="LookVector"then
LookVector=LOOKVT
end
if Key=="MouseHit"then
HitP=MouseHit
end
if Key=="MouseTarget"then
Target=MouseTarget
end
if Chatting==false then
if Key=="W"then
if Status==true then
W=true
elseif Status==false then
W=false
end
end
if Key=="A"then
if Status==true then
A=true
elseif Status==false then
A=false
end
end
if Key=="S"then
if Status==true then
S=true
elseif Status==false then
S=false
end
end
if Key=="D"then
if Status==true then
D=true
elseif Status==false then
D=false
end
end
if Key=="C"then
pcall(function()
local Hint=Instance.new("Hint",nil)
Hint.Archivable=false
Hint.Name=RandomString()
Hint.Text=" Decimate Tables have been cleared. - Kill Bro "
Hint.Parent=workspace
coroutine.resume(coroutine.create(function()
pcall(function()
game:GetService("Debris"):AddItem(Hint,3)
end)
end))
end)
BanishTableName={}
end
if Key=="F"then
if Flying==false then
Flying=true
pcall(function()
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))
end)
elseif Flying==true then
Flying=false
pcall(function()
MainPosition=CFrame.new(MainPosition.p,Vector3.new(LookVector.X*9999,LookVector.Y,LookVector.Z*9999))
end)
end
end
if Key=="Up"then
if Falling==false and Flying==false then
MainPosition=MainPosition*CFrame.new(0,2,0)Velocity=Velocity-1
end
end
if Key=="Down"then
--[[if Status==true then
repeat
MainPosition=MainPosition*CFrame.new(0,-1,0)
until Holding==false
elseif Status==false then
Holding=false
end]]
end
if Key=="Z"then
if Attacking==false then
if Status==true then
Holding=true
HandBeam()
elseif Status==false then
Holding=false
end
end
end
if Key=="Click"then
if Status==true then
Holding=true
Punch()
elseif Status==false then
Holding=false
end
end
if Key=="X"then
if Attacking==false then
Stomp()
end
end
if Key=="M"then
if Mute==false then
Mute=true
Music.Playing=false
Music:Pause()
elseif Mute==true then
Mute=false
Music.Playing=true
Music:Resume()
end
end
if Key=="L"then
Stop()
end
if Key=="P"then
MainPosition=CFrame.new(0,10,0)
Torso.CFrame=MainPosition*TorsoCFrame
end
if Key=="T"then
Teleport(HitP.X,HitP.Y,HitP.Z)
end
if Key=="U"then
pcall(function()
Character:Destroy()
end)
end
end
end)
end))