Repository navigation
Expand file tree
/
Copy pathchronosentinelfixed.lua
More file actions
3378 lines (3353 loc) · 128 KB
/
Copy pathchronosentinelfixed.lua
File metadata and controls
3378 lines (3353 loc) · 128 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
--https://github.com/Mokiros/roblox-FE-compatibility
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
local Player,game,owner = owner,game
local RealPlayer = Player
do
print("FE Compatibility code V2 by Mokiros")
local RealPlayer = RealPlayer
script.Parent = RealPlayer.Character
--Fake event to make stuff like Mouse.KeyDown work
local Disconnect_Function = function(this)
this[1].Functions[this[2]] = nil
end
local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
local FakeEvent_Metatable = {__index={
Connect = function(this,f)
local i = tostring(math.random(0,10000))
while this.Functions[i] do
i = tostring(math.random(0,10000))
end
this.Functions[i] = f
return setmetatable({this,i},Disconnect_Metatable)
end
}}
FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
local function fakeEvent()
return setmetatable({Functions={}},FakeEvent_Metatable)
end
--Creating fake input objects with fake variables
local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
FakeMouse.keyUp = FakeMouse.KeyUp
FakeMouse.keyDown = FakeMouse.KeyDown
local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
end}
--Merged 2 functions into one by checking amount of arguments
CAS.UnbindAction = CAS.BindAction
--This function will trigger the events that have been :Connect()'ed
local function TriggerEvent(self,ev,...)
for _,f in pairs(self[ev].Functions) do
f(...)
end
end
FakeMouse.TriggerEvent = TriggerEvent
UIS.TriggerEvent = TriggerEvent
--Client communication
local Event = Instance.new("RemoteEvent")
Event.Name = "UserInput_Event"
Event.OnServerEvent:Connect(function(plr,io)
if plr~=RealPlayer then return end
FakeMouse.Target = io.Target
FakeMouse.Hit = io.Hit
if not io.isMouse then
local b = io.UserInputState == Enum.UserInputState.Begin
if io.UserInputType == Enum.UserInputType.MouseButton1 then
return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
end
if io.UserInputType == Enum.UserInputType.MouseButton2 then
return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
end
for _,t in pairs(CAS.Actions) do
for _,k in pairs(t.Keys) do
if k==io.KeyCode then
t.Function(t.Name,io.UserInputState,io)
end
end
end
FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
end
end)
Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
local Mouse = owner:GetMouse()
local UIS = game:GetService("UserInputService")
local input = function(io,RobloxHandled)
if RobloxHandled then return end
--Since InputObject is a client-side instance, we create and pass table instead
Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
end
UIS.InputBegan:Connect(input)
UIS.InputEnded:Connect(input)
local h,t
--Give the server mouse data every second frame, but only if the values changed
--If player is not moving their mouse, client won't fire events
local HB = game:GetService("RunService").Heartbeat
while true do
if h~=Mouse.Hit or t~=Mouse.Target then
h,t=Mouse.Hit,Mouse.Target
Event:FireServer({isMouse=true,Target=t,Hit=h})
end
--Wait 2 frames
for i=1,2 do
HB:Wait()
end
end]==],script)
----Sandboxed game object that allows the usage of client-side methods and services
--Real game object
local RealGame = game
--Metatable for fake service
local FakeService_Metatable = {
__index = function(self,k)
local s = rawget(self,"_RealService")
if s then
return typeof(s[k])=="function"
and function(_,...)return s[k](s,...)end or s[k]
end
end,
__newindex = function(self,k,v)
local s = rawget(self,"_RealService")
if s then s[k]=v end
end
}
local function FakeService(t,RealService)
t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
return setmetatable(t,FakeService_Metatable)
end
--Fake game object
local FakeGame = {
GetService = function(self,s)
return rawget(self,s) or RealGame:GetService(s)
end,
Players = FakeService({
LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
},"Players"),
UserInputService = FakeService(UIS,"UserInputService"),
ContextActionService = FakeService(CAS,"ContextActionService"),
RunService = FakeService({
_btrs = {},
RenderStepped = RealGame:GetService("RunService").Heartbeat,
BindToRenderStep = function(self,name,_,fun)
self._btrs[name] = self.Heartbeat:Connect(fun)
end,
UnbindFromRenderStep = function(self,name)
self._btrs[name]:Disconnect()
end,
},"RunService")
}
rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
FakeGame.service = FakeGame.GetService
FakeService(FakeGame,game)
--Changing owner to fake player object to support owner:GetMouse()
game,owner = FakeGame,FakeGame.Players.LocalPlayer
end
--Converted with ttyyuu12345's model to script plugin v4
function sandbox(var,func)
local env = getfenv(func)
local newenv = setmetatable({},{
__index = function(self,k)
if k=="script" then
return var
else
return env[k]
end
end,
})
setfenv(func,newenv)
return func
end
cors = {}
mas = Instance.new("Model",game:GetService("Lighting"))
UnionOperation0 = Instance.new("UnionOperation")
UnionOperation1 = Instance.new("UnionOperation")
Model2 = Instance.new("Model")
UnionOperation3 = Instance.new("UnionOperation")
Part4 = Instance.new("Part")
Weld5 = Instance.new("Weld")
Weld6 = Instance.new("Weld")
Part7 = Instance.new("Part")
Weld8 = Instance.new("Weld")
Weld9 = Instance.new("Weld")
UnionOperation10 = Instance.new("UnionOperation")
UnionOperation11 = Instance.new("UnionOperation")
Weld12 = Instance.new("Weld")
Weld13 = Instance.new("Weld")
UnionOperation14 = Instance.new("UnionOperation")
Weld15 = Instance.new("Weld")
Weld16 = Instance.new("Weld")
UnionOperation17 = Instance.new("UnionOperation")
Weld18 = Instance.new("Weld")
Weld19 = Instance.new("Weld")
UnionOperation20 = Instance.new("UnionOperation")
Weld21 = Instance.new("Weld")
Model22 = Instance.new("Model")
UnionOperation23 = Instance.new("UnionOperation")
Weld24 = Instance.new("Weld")
UnionOperation25 = Instance.new("UnionOperation")
Part26 = Instance.new("Part")
Weld27 = Instance.new("Weld")
ParticleEmitter28 = Instance.new("ParticleEmitter")
UnionOperation0.Name = "Halo"
UnionOperation0.Parent = mas
UnionOperation0.CFrame = CFrame.new(-253.796082, 5.06923103, 7.28811693, 1, 0, 0, 0, 0, -1, 0, 1, 0)
UnionOperation0.Orientation = Vector3.new(90, 0, 0)
UnionOperation0.Position = Vector3.new(-253.79608154296875, 5.069231033325195, 7.288116931915283)
UnionOperation0.Rotation = Vector3.new(90, 0, 0)
UnionOperation0.Color = Color3.new(0.490196, 1, 0.490196)
UnionOperation0.Size = Vector3.new(2.87109375, 0.1640625, 2.875)
UnionOperation0.Anchored = true
UnionOperation0.BrickColor = BrickColor.new("Olivine")
UnionOperation0.Material = Enum.Material.Neon
UnionOperation0.brickColor = BrickColor.new("Olivine")
UnionOperation0.UsePartColor = true
UnionOperation1.Name = "Clock"
UnionOperation1.Parent = mas
UnionOperation1.CFrame = CFrame.new(-193.796097, 5.06923103, -28.7118607, 1, 0, 0, 0, 1, 0, 0, 0, 1)
UnionOperation1.Position = Vector3.new(-193.7960968017578, 5.069231033325195, -28.71186065673828)
UnionOperation1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
UnionOperation1.Size = Vector3.new(11.64000129699707, 0.8737506866455078, 11.64000129699707)
UnionOperation1.BrickColor = BrickColor.new("Really black")
UnionOperation1.Material = Enum.Material.Metal
UnionOperation1.brickColor = BrickColor.new("Really black")
Model2.Name = "GrandfatherClock"
Model2.Parent = mas
Model2.PrimaryPart = UnionOperation11
UnionOperation3.Name = "Face"
UnionOperation3.Parent = Model2
UnionOperation3.CFrame = CFrame.new(-153.796097, 60.5285645, -11.5048285, -0.00061631971, 0.000116668612, 1.00000012, 0.999969065, -0.00786994118, 0.000617218902, 0.00787001103, 0.999969363, -0.000111814574)
UnionOperation3.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 90.45099639892578)
UnionOperation3.Position = Vector3.new(-153.7960968017578, 60.528564453125, -11.504828453063965)
UnionOperation3.Rotation = Vector3.new(90.45099639892578, 90, 0)
UnionOperation3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
UnionOperation3.Size = Vector3.new(13.724788665771484, 1.03024423122406, 13.724788665771484)
UnionOperation3.Anchored = true
UnionOperation3.BrickColor = BrickColor.new("Really black")
UnionOperation3.CanCollide = false
UnionOperation3.Material = Enum.Material.Metal
UnionOperation3.brickColor = BrickColor.new("Really black")
Part4.Parent = Model2
Part4.CFrame = CFrame.new(-143.546097, 16.5533981, -17.0185089, 0.000116668583, -0.000616319536, -0.999999881, -0.00786993932, 0.999968827, -0.000617218728, 0.999969125, 0.00787000917, 0.000111814545)
Part4.Orientation = Vector3.new(0.03500000014901161, -89.99400329589844, -0.45100000500679016)
Part4.Position = Vector3.new(-143.5460968017578, 16.55339813232422, -17.018508911132812)
Part4.Rotation = Vector3.new(0.45100000500679016, -90, 0)
Part4.Color = Color3.new(0.580392, 1, 0.572549)
Part4.Size = Vector3.new(11.764097213745117, 6.535610198974609, 1.307121992111206)
Part4.Anchored = true
Part4.BrickColor = BrickColor.new("Mint")
Part4.CanCollide = false
Part4.Material = Enum.Material.Wood
Part4.brickColor = BrickColor.new("Mint")
Part4.FormFactor = Enum.FormFactor.Custom
Part4.formFactor = Enum.FormFactor.Custom
Part4.Shape = Enum.PartType.Cylinder
Weld5.Name = "Part"
Weld5.Parent = Part4
Weld5.C0 = CFrame.new(-20.5232563, -0.167638555, 10.2465334, 0, 1, 0, 1, 0, 0, 0, 0, -1)
Weld5.Part0 = UnionOperation20
Weld5.Part1 = Part4
Weld5.part1 = Part4
Weld6.Name = "Part"
Weld6.Parent = Part4
Weld6.C0 = CFrame.new(-10.2014503, -0.0653591156, 5.73249435, 0, 0, 1, 0, 1, -0, -1, 0, 0)
Weld6.Part0 = Part26
Weld6.Part1 = Part4
Weld6.part1 = Part4
Part7.Parent = Model2
Part7.CFrame = CFrame.new(-163.983612, 16.7352829, -16.8192978, 0.000116668583, -0.000616319536, -0.999999881, -0.00786993932, 0.999968827, -0.000617218728, 0.999969125, 0.00787000917, 0.000111814545)
Part7.Orientation = Vector3.new(0.03500000014901161, -89.99400329589844, -0.45100000500679016)
Part7.Position = Vector3.new(-163.98361206054688, 16.73528289794922, -16.819297790527344)
Part7.Rotation = Vector3.new(0.45100000500679016, -90, 0)
Part7.Color = Color3.new(0.580392, 1, 0.572549)
Part7.Size = Vector3.new(11.764097213745117, 6.535610198974609, 1.307121992111206)
Part7.Anchored = true
Part7.BrickColor = BrickColor.new("Mint")
Part7.CanCollide = false
Part7.Material = Enum.Material.Wood
Part7.brickColor = BrickColor.new("Mint")
Part7.FormFactor = Enum.FormFactor.Custom
Part7.formFactor = Enum.FormFactor.Custom
Part7.Shape = Enum.PartType.Cylinder
Weld8.Name = "Part"
Weld8.Parent = Part7
Weld8.C0 = CFrame.new(-20.3272076, 0.0283968318, -10.20994, 0, 1, 0, 1, 0, 0, 0, 0, -1)
Weld8.Part0 = UnionOperation20
Weld8.Part1 = Part7
Weld8.part1 = Part7
Weld9.Name = "Part"
Weld9.Parent = Part7
Weld9.C0 = CFrame.new(10.255022, 0.130689621, 5.53646088, 0, 0, 1, 0, 1, -0, -1, 0, 0)
Weld9.Part0 = Part26
Weld9.Part1 = Part7
Weld9.part1 = Part7
UnionOperation10.Parent = Model2
UnionOperation10.CFrame = CFrame.new(-153.796097, 60.5599327, -15.5048285, -0.000116668612, -0.00061631971, 1.00000012, 0.00786994118, 0.999969065, 0.000617218902, -0.999969363, 0.00787001103, -0.000111814574)
UnionOperation10.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 0.45100000500679016)
UnionOperation10.Position = Vector3.new(-153.7960968017578, 60.559932708740234, -15.504828453063965)
UnionOperation10.Rotation = Vector3.new(0.45100000500679016, 90, 0)
UnionOperation10.Color = Color3.new(0.580392, 1, 0.572549)
UnionOperation10.Size = Vector3.new(6.8557233810424805, 11.389754295349121, 16.796518325805664)
UnionOperation10.Anchored = true
UnionOperation10.BrickColor = BrickColor.new("Mint")
UnionOperation10.CanCollide = false
UnionOperation10.Material = Enum.Material.Wood
UnionOperation10.brickColor = BrickColor.new("Mint")
UnionOperation10.UsePartColor = true
UnionOperation11.Name = "ads"
UnionOperation11.Parent = Model2
UnionOperation11.CFrame = CFrame.new(-154.108612, 35.4031067, -15.0673218, -0.000116668583, -0.000616319536, 0.999999881, 0.00786993932, 0.999968827, 0.000617218728, -0.999969125, 0.00787000917, -0.000111814545)
UnionOperation11.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 0.45100000500679016)
UnionOperation11.Position = Vector3.new(-154.10861206054688, 35.403106689453125, -15.06732177734375)
UnionOperation11.Rotation = Vector3.new(0.45100000500679016, 90, 0)
UnionOperation11.Color = Color3.new(0.803922, 0.803922, 0.803922)
UnionOperation11.Transparency = 0.5
UnionOperation11.Size = Vector3.new(4.230779647827148, 36.28080368041992, 12.711980819702148)
UnionOperation11.Anchored = true
UnionOperation11.BrickColor = BrickColor.new("Mid gray")
UnionOperation11.CanCollide = false
UnionOperation11.brickColor = BrickColor.new("Mid gray")
UnionOperation11.UsePartColor = true
Weld12.Name = "Union"
Weld12.Parent = UnionOperation11
Weld12.C0 = CFrame.new(-1.65267265, 1.63410187, -0.206612512, 0, 1, -0, -1, 0, 0, 0, 0, 1)
Weld12.Part0 = UnionOperation20
Weld12.Part1 = UnionOperation11
Weld12.part1 = UnionOperation11
Weld13.Name = "ads"
Weld13.Parent = UnionOperation11
Weld13.C0 = CFrame.new(0.251693726, 18.8052254, 3.93075562, 0, 0, -1, 0, 1, 0, 1, 0, 0)
Weld13.Part0 = Part26
Weld13.Part1 = UnionOperation11
Weld13.part1 = UnionOperation11
UnionOperation14.Parent = Model2
UnionOperation14.CFrame = CFrame.new(-161.108612, 37.4585304, -11.7313843, -0.000116668583, -0.000616319536, 0.999999881, 0.00786993932, 0.999968827, 0.000617218728, -0.999969125, 0.00787000917, -0.000111814545)
UnionOperation14.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 0.45100000500679016)
UnionOperation14.Position = Vector3.new(-161.10861206054688, 37.45853042602539, -11.73138427734375)
UnionOperation14.Rotation = Vector3.new(0.45100000500679016, 90, 0)
UnionOperation14.Color = Color3.new(0.580392, 1, 0.572549)
UnionOperation14.Size = Vector3.new(0.8701345324516296, 39.4750862121582, 1.307123064994812)
UnionOperation14.Anchored = true
UnionOperation14.BrickColor = BrickColor.new("Mint")
UnionOperation14.CanCollide = false
UnionOperation14.Material = Enum.Material.Wood
UnionOperation14.brickColor = BrickColor.new("Mint")
UnionOperation14.UsePartColor = true
Weld15.Name = "Union"
Weld15.Parent = UnionOperation14
Weld15.C0 = CFrame.new(0.433388293, 4.95423794, -7.28811932, 0, 1, -0, -1, 0, 0, 0, 0, 1)
Weld15.Part0 = UnionOperation20
Weld15.Part1 = UnionOperation14
Weld15.part1 = UnionOperation14
Weld16.Name = "Union"
Weld16.Parent = UnionOperation14
Weld16.C0 = CFrame.new(7.33320141, 20.8912868, 0.610618591, 0, 0, -1, 0, 1, 0, 1, 0, 0)
Weld16.Part0 = Part26
Weld16.Part1 = UnionOperation14
Weld16.part1 = UnionOperation14
UnionOperation17.Parent = Model2
UnionOperation17.CFrame = CFrame.new(-146.733612, 37.402256, -11.7333603, -0.000116668583, -0.000616319536, 0.999999881, 0.00786993932, 0.999968827, 0.000617218728, -0.999969125, 0.00787000917, -0.000111814545)
UnionOperation17.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 0.45100000500679016)
UnionOperation17.Position = Vector3.new(-146.73361206054688, 37.40225601196289, -11.733360290527344)
UnionOperation17.Rotation = Vector3.new(0.45100000500679016, 90, 0)
UnionOperation17.Color = Color3.new(0.580392, 1, 0.572549)
UnionOperation17.Size = Vector3.new(0.8701345324516296, 39.4750862121582, 1.307123064994812)
UnionOperation17.Anchored = true
UnionOperation17.BrickColor = BrickColor.new("Mint")
UnionOperation17.CanCollide = false
UnionOperation17.Material = Enum.Material.Wood
UnionOperation17.brickColor = BrickColor.new("Mint")
UnionOperation17.UsePartColor = true
Weld18.Name = "Union"
Weld18.Parent = UnionOperation17
Weld18.C0 = CFrame.new(0.368149161, 4.95423794, 7.09022045, 0, 1, -0, -1, 0, 0, 0, 0, 1)
Weld18.Part0 = UnionOperation20
Weld18.Part1 = UnionOperation17
Weld18.part1 = UnionOperation17
Weld19.Name = "Union"
Weld19.Parent = UnionOperation17
Weld19.C0 = CFrame.new(-7.04513931, 20.8260479, 0.610618591, 0, 0, -1, 0, 1, 0, 1, 0, 0)
Weld19.Part0 = Part26
Weld19.Part1 = UnionOperation17
Weld19.part1 = UnionOperation17
UnionOperation20.Parent = Model2
UnionOperation20.CFrame = CFrame.new(-153.796097, 37.0687637, -16.6884308, -0.000616319536, 0.000116668583, 0.999999881, 0.999968827, -0.00786993932, 0.000617218728, 0.00787000917, 0.999969125, -0.000111814545)
UnionOperation20.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 90.45099639892578)
UnionOperation20.Position = Vector3.new(-153.7960968017578, 37.068763732910156, -16.688430786132812)
UnionOperation20.Rotation = Vector3.new(90.45099639892578, 90, 0)
UnionOperation20.Color = Color3.new(0.580392, 1, 0.572549)
UnionOperation20.Size = Vector3.new(63.790435791015625, 12.221590995788574, 21.436803817749023)
UnionOperation20.Anchored = true
UnionOperation20.BrickColor = BrickColor.new("Mint")
UnionOperation20.CanCollide = false
UnionOperation20.Material = Enum.Material.Wood
UnionOperation20.brickColor = BrickColor.new("Mint")
UnionOperation20.UsePartColor = true
Weld21.Name = "Union"
Weld21.Parent = UnionOperation20
Weld21.C0 = CFrame.new(0.0450820923, 20.4578972, 5.56485748, 0, 0, -1, 1, 0, 0, 0, -1, 0)
Weld21.Part0 = Part26
Weld21.Part1 = UnionOperation20
Weld21.part1 = UnionOperation20
Model22.Name = "Sway"
Model22.Parent = Model2
Model22.PrimaryPart = UnionOperation23
UnionOperation23.Parent = Model22
UnionOperation23.CFrame = CFrame.new(-154.108612, 39.3929787, -15.8485937, -0.000616319536, 0.000116668583, 0.999999881, 0.999968827, -0.00786993932, 0.000617218728, 0.00787000917, 0.999969125, -0.000111814545)
UnionOperation23.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 90.45099639892578)
UnionOperation23.Position = Vector3.new(-154.10861206054688, 39.39297866821289, -15.848593711853027)
UnionOperation23.Rotation = Vector3.new(90.45099639892578, 90, 0)
UnionOperation23.Color = Color3.new(0.972549, 0.972549, 0.972549)
UnionOperation23.Size = Vector3.new(34.803131103515625, 3.6299972534179688, 3.630002975463867)
UnionOperation23.Anchored = true
UnionOperation23.CanCollide = false
UnionOperation23.Material = Enum.Material.Metal
Weld24.Name = "Union"
Weld24.Parent = UnionOperation23
Weld24.C0 = CFrame.new(0.258869171, 22.7888737, 4.74209976, 0, 0, -1, 1, 0, 0, 0, -1, 0)
Weld24.Part0 = Part26
Weld24.Part1 = UnionOperation23
Weld24.part1 = UnionOperation23
UnionOperation25.Parent = Model2
UnionOperation25.CFrame = CFrame.new(-153.796097, 60.5759315, -17.5028915, -0.000116668598, -0.000616319594, 1, 0.00786994025, 0.999968946, 0.000617218786, -0.999969244, 0.0078700101, -0.000111814559)
UnionOperation25.Orientation = Vector3.new(-0.03500000014901161, 90.00599670410156, 0.45100000500679016)
UnionOperation25.Position = Vector3.new(-153.7960968017578, 60.575931549072266, -17.502891540527344)
UnionOperation25.Rotation = Vector3.new(0.45100000500679016, 90, 0)
UnionOperation25.Color = Color3.new(0.580392, 1, 0.572549)
UnionOperation25.Size = Vector3.new(10.620006561279297, 4.617401123046875, 7.968857765197754)
UnionOperation25.Anchored = true
UnionOperation25.BrickColor = BrickColor.new("Mint")
UnionOperation25.CanCollide = false
UnionOperation25.Material = Enum.Material.Wood
UnionOperation25.brickColor = BrickColor.new("Mint")
UnionOperation25.UsePartColor = true
Part26.Parent = Model2
Part26.CFrame = CFrame.new(-153.733612, 16.5672989, -11.2860937, -0.999999881, -0.000616319536, -0.000116668583, -0.000617218728, 0.999968827, 0.00786993932, 0.000111814545, 0.00787000917, -0.999969125)
Part26.Orientation = Vector3.new(-0.45100000500679016, -179.9929962158203, -0.03500000014901161)
Part26.Position = Vector3.new(-153.73361206054688, 16.567298889160156, -11.286093711853027)
Part26.Rotation = Vector3.new(-179.5489959716797, -0.007000000216066837, 179.96499633789062)
Part26.Color = Color3.new(0.580392, 1, 0.572549)
Part26.Size = Vector3.new(21.306087493896484, 6.535610198974609, 1.307121992111206)
Part26.Anchored = true
Part26.BrickColor = BrickColor.new("Mint")
Part26.CanCollide = false
Part26.Material = Enum.Material.Wood
Part26.brickColor = BrickColor.new("Mint")
Part26.FormFactor = Enum.FormFactor.Custom
Part26.formFactor = Enum.FormFactor.Custom
Part26.Shape = Enum.PartType.Cylinder
Weld27.Name = "Part"
Weld27.Parent = Part26
Weld27.C0 = CFrame.new(-20.4578972, 5.56485796, 0.0450821593, 0, 1, 0, 0, 0, -1, -1, 0, 0)
Weld27.Part0 = UnionOperation20
Weld27.Part1 = Part26
Weld27.part1 = Part26
ParticleEmitter28.Name = "Dust"
ParticleEmitter28.Parent = mas
ParticleEmitter28.Speed = NumberRange.new(0.25, 1)
ParticleEmitter28.Color = ColorSequence.new(Color3.new(0.972549, 0.85098, 0.427451),Color3.new(0.972549, 0.85098, 0.427451))
ParticleEmitter28.LightEmission = 1
ParticleEmitter28.Texture = "rbxassetid://1081534242"
ParticleEmitter28.Transparency = NumberSequence.new(1,0.3499999940395355,0.10000000149011612,0.4000000059604645,1)
ParticleEmitter28.ZOffset = 1
ParticleEmitter28.Size = NumberSequence.new(0.02500000037252903,0.02500000037252903)
ParticleEmitter28.Acceleration = Vector3.new(0, 2.5, 0)
ParticleEmitter28.Lifetime = NumberRange.new(2, 2)
ParticleEmitter28.Rate = 52
ParticleEmitter28.SpreadAngle = Vector2.new(180, 180)
ParticleEmitter28.VelocitySpread = 180
for i,v in pairs(mas:GetChildren()) do
v.Parent = script
pcall(function() v:MakeJoints() end)
end
mas:Destroy()
for i,v in pairs(cors) do
spawn(function()
pcall(v)
end)
end
repeat wait(1) until script:FindFirstChild("Clock")
Player = game:GetService("Players").LocalPlayer
PlayerGui = Player.PlayerGui
Cam = workspace.CurrentCamera
Backpack = Player.Backpack
Character = Player.Character
Humanoid = Character.Humanoid
Mouse = Player:GetMouse()
RootPart = Character["HumanoidRootPart"]
Torso = Character.Torso
Head = Character.Head
RightArm = Character["Right Arm"]
LeftArm = Character["Left Arm"]
RightLeg = Character["Right Leg"]
LeftLeg = Character["Left Leg"]
RootJoint = RootPart.RootJoint
Neck = Torso.Neck
RightShoulder = Torso["Right Shoulder"]
LeftShoulder = Torso["Left Shoulder"]
RightHip = Torso["Right Hip"]
LeftHip = Torso["Left Hip"]
IT = Instance.new
CF = CFrame.new
VT = Vector3.new
RAD = math.rad
C3 = Color3.new
UD2 = UDim2.new
BRICKC = BrickColor.new
ANGLES = CFrame.Angles
EULER = CFrame.fromEulerAnglesXYZ
COS = math.cos
ACOS = math.acos
SIN = math.sin
ASIN = math.asin
ABS = math.abs
MRANDOM = math.random
FLOOR = math.floor
Animation_Speed = 3
Frame_Speed = 0.016666666666666666
local Speed = 16
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
local DAMAGEMULTIPLIER = 1
local ANIM = "Idle"
local ATTACK = false
local EQUIPPED = false
local HOLD = false
local COMBO = 1
local Rooted = false
local SINE = 0
local KEYHOLD = false
local CHANGE = 2 / Animation_Speed
local WALKINGANIM = false
local VALUE1 = false
local VALUE2 = false
local ROBLOXIDLEANIMATION = IT("Animation")
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=2140511053"
local WEAPONGUI = IT("ScreenGui", PlayerGui)
WEAPONGUI.Name = "Weapon GUI"
local Effects = IT("Folder", Character)
Effects.Name = "Effects"
local ANIMATOR = Humanoid.Animator
local ANIMATE = Character.Animate
local UNANCHOR = true
local TIMESPOT, TIMEVELOCITY, TIMESTAMP
local SPEDUP = false
local GFT = false
ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "ArtificialHB"
script:WaitForChild("ArtificialHB")
frame = Frame_Speed
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
script.ArtificialHB:Fire()
game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
script.ArtificialHB:Fire()
lastframe = tick()
else
for i = 1, math.floor(tf / frame) do
script.ArtificialHB:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * math.floor(tf / frame)
end
end
end)
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
end
function PositiveAngle(NUMBER)
if NUMBER >= 0 then
NUMBER = 0
end
return NUMBER
end
function NegativeAngle(NUMBER)
if NUMBER <= 0 then
NUMBER = 0
end
return NUMBER
end
function Swait(NUMBER)
if NUMBER == 0 or NUMBER == nil then
ArtificialHB.Event:wait()
else
for i = 1, NUMBER do
ArtificialHB.Event:wait()
end
end
end
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
local NEWMESH = IT(MESH)
if MESH == "SpecialMesh" then
NEWMESH.MeshType = MESHTYPE
if MESHID ~= "nil" and MESHID ~= "" then
NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
end
if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
end
end
NEWMESH.Offset = OFFSET or VT(0, 0, 0)
NEWMESH.Scale = SCALE
NEWMESH.Parent = PARENT
return NEWMESH
end
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
local NEWPART = IT("Part")
NEWPART.formFactor = FORMFACTOR
NEWPART.Reflectance = REFLECTANCE
NEWPART.Transparency = TRANSPARENCY
NEWPART.CanCollide = false
NEWPART.Locked = true
NEWPART.Anchored = true
if ANCHOR == false then
NEWPART.Anchored = false
end
NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
NEWPART.Name = NAME
NEWPART.Size = SIZE
NEWPART.Position = Torso.Position
NEWPART.Material = MATERIAL
NEWPART:BreakJoints()
NEWPART.Parent = PARENT
return NEWPART
end
local weldBetween = function(a, b)
local weldd = Instance.new("ManualWeld")
weldd.Part0 = a
weldd.Part1 = b
weldd.C0 = CFrame.new()
weldd.C1 = b.CFrame:inverse() * a.CFrame
weldd.Parent = a
return weldd
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5 / s
return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
else
local i = 0
if m00 < m11 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00 - m11 - m22 + 1)
local recip = 0.5 / s
return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
elseif i == 1 then
local s = math.sqrt(m11 - m22 - m00 + 1)
local recip = 0.5 / s
return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
elseif i == 2 then
local s = math.sqrt(m22 - m00 - m11 + 1)
local recip = 0.5 / s
return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w * xs, w * ys, w * zs
local xx = x * xs
local xy = x * ys
local xz = x * zs
local yy = y * ys
local yz = y * zs
local zz = z * zs
return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
local startInterp, finishInterp
if cosTheta >= 1.0E-4 then
if 1 - cosTheta > 1.0E-4 then
local theta = ACOS(cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((1 - t) * theta) * invSinTheta
finishInterp = SIN(t * theta) * invSinTheta
else
startInterp = 1 - t
finishInterp = t
end
elseif 1 + cosTheta > 1.0E-4 then
local theta = ACOS(-cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((t - 1) * theta) * invSinTheta
finishInterp = SIN(t * theta) * invSinTheta
else
startInterp = t - 1
finishInterp = t
end
return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
end
function Clerp(a, b, t)
local qa = {
QuaternionFromCFrame(a)
}
local qb = {
QuaternionFromCFrame(b)
}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1 - t
return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
end
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
local frame = IT("Frame")
frame.BackgroundTransparency = TRANSPARENCY
frame.BorderSizePixel = BORDERSIZEPIXEL
frame.Position = POSITION
frame.Size = SIZE
frame.BackgroundColor3 = COLOR
frame.BorderColor3 = BORDERCOLOR
frame.Name = NAME
frame.Parent = PARENT
return frame
end
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
local label = IT("TextLabel")
label.BackgroundTransparency = 1
label.Size = UD2(1, 0, 1, 0)
label.Position = UD2(0, 0, 0, 0)
label.TextColor3 = TEXTCOLOR
label.TextStrokeTransparency = STROKETRANSPARENCY
label.TextTransparency = TRANSPARENCY
label.FontSize = TEXTFONTSIZE
label.Font = TEXTFONT
label.BorderSizePixel = BORDERSIZEPIXEL
label.TextScaled = false
label.Text = TEXT
label.Name = NAME
label.Parent = PARENT
return label
end
function NoOutlines(PART)
PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
end
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
local NEWWELD = IT(TYPE)
NEWWELD.Part0 = PART0
NEWWELD.Part1 = PART1
NEWWELD.C0 = C0
NEWWELD.C1 = C1
NEWWELD.Parent = PARENT
return NEWWELD
end
local S = IT("Sound")
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
local NEWSOUND
coroutine.resume(coroutine.create(function()
NEWSOUND = S:Clone()
NEWSOUND.Parent = PARENT
NEWSOUND.Volume = VOLUME
NEWSOUND.Pitch = PITCH
NEWSOUND.EmitterSize = VOLUME * 3
NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
NEWSOUND:play()
if DOESLOOP == true then
NEWSOUND.Looped = true
else
repeat
wait(1)
until NEWSOUND.Playing == false
NEWSOUND:remove()
end
end))
return NEWSOUND
end
function CFrameFromTopBack(at, top, back)
local right = top:Cross(back)
return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
end
function WACKYEFFECT(Table)
local TYPE = Table.EffectType or "Sphere"
local SIZE = Table.Size or VT(1, 1, 1)
local ENDSIZE = Table.Size2 or VT(0, 0, 0)
local TRANSPARENCY = Table.Transparency or 0
local ENDTRANSPARENCY = Table.Transparency2 or 1
local CFRAME = Table.CFrame or Torso.CFrame
local MOVEDIRECTION = Table.MoveToPos or nil
local ROTATION1 = Table.RotationX or 0
local ROTATION2 = Table.RotationY or 0
local ROTATION3 = Table.RotationZ or 0
local MATERIAL = Table.Material or "Neon"
local COLOR = Table.Color or C3(1, 1, 1)
local TIME = Table.Time or 45
local SOUNDID = Table.SoundID or nil
local SOUNDPITCH = Table.SoundPitch or nil
local SOUNDVOLUME = Table.SoundVolume or nil
local USEBOOMERANGMATH = Table.UseBoomerangMath or false
local BOOMERANG = Table.Boomerang or 0
local SIZEBOOMERANG = Table.SizeBoomerang or 0
coroutine.resume(coroutine.create(function()
local PLAYSSOUND = false
local SOUND
local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
PLAYSSOUND = true
SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
end
EFFECT.Color = COLOR
local MSH
if TYPE == "Sphere" then
MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
elseif TYPE == "Block" or TYPE == "Box" then
MSH = IT("BlockMesh", EFFECT)
MSH.Scale = SIZE
elseif TYPE == "Wave" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
elseif TYPE == "Ring" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
elseif TYPE == "Slash" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
elseif TYPE == "Round Slash" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
elseif TYPE == "Swirl" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0, 0, 0))
elseif TYPE == "Skull" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
elseif TYPE == "Crystal" then
MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "450656451", "", SIZE, VT(0, 0, 0))
end
coroutine.resume(coroutine.create(function()
if MSH ~= nil then
local BOOMR1 = 1 + BOOMERANG / 50
local BOOMR2 = 1 + SIZEBOOMERANG / 50
local MOVESPEED = nil
if MOVEDIRECTION ~= nil then
MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
end
local GROWTH
if USEBOOMERANGMATH == true then
GROWTH = (SIZE - ENDSIZE) * (BOOMR2 + 1)
else
GROWTH = SIZE - ENDSIZE
end
local TRANS = TRANSPARENCY - ENDTRANSPARENCY
if TYPE == "Block" then
EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
else
EFFECT.CFrame = CFRAME
end
if USEBOOMERANGMATH == true then
for LOOP = 1, TIME + 1 do
Swait()
MSH.Scale = MSH.Scale - VT(GROWTH.X * (1 - LOOP / TIME * BOOMR2), GROWTH.Y * (1 - LOOP / TIME * BOOMR2), GROWTH.Z * (1 - LOOP / TIME * BOOMR2)) * BOOMR2 / TIME
if TYPE == "Wave" then
MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
end
EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
if TYPE == "Block" then
EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
else
EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
end
if MOVEDIRECTION ~= nil then
local ORI = EFFECT.Orientation
EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED * (1 - LOOP / TIME * BOOMR1))
EFFECT.Orientation = ORI
end
end
else
for LOOP = 1, TIME + 1 do
Swait()
MSH.Scale = MSH.Scale - GROWTH / TIME
if TYPE == "Wave" then
MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
end
EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
if TYPE == "Block" then
EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
else
EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
end
if MOVEDIRECTION ~= nil then
local ORI = EFFECT.Orientation
EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
EFFECT.Orientation = ORI
end
end
end
EFFECT.Transparency = 1
if PLAYSSOUND == false then
EFFECT:remove()
else
repeat
Swait()
until EFFECT:FindFirstChildOfClass("Sound") == nil
EFFECT:remove()
end
elseif PLAYSSOUND == false then
EFFECT:remove()
else
repeat
Swait()
until EFFECT:FindFirstChildOfClass("Sound") == nil
EFFECT:remove()
end
end))
return EFFECT
end))
end
function MakeForm(PART, TYPE)
if TYPE == "Cyl" then
local MSH = IT("CylinderMesh", PART)
elseif TYPE == "Ball" then
local MSH = IT("SpecialMesh", PART)
MSH.MeshType = "Sphere"
elseif TYPE == "Wedge" then
local MSH = IT("SpecialMesh", PART)
MSH.MeshType = "Wedge"
end
end
Debris = game:GetService("Debris")
function CastProperRay(StartPos, EndPos, Distance, Ignore)
local DIRECTION = CF(StartPos, EndPos).lookVector
local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
end
function Debree(Table)
local KindOf = Table.Variant or "Ring"
local Position = Table.Location or Torso.Position
local Coloration = Table.Color or C3(1, 1, 1)
local Texture = Table.Material or "Slate"
local Fling = Table.Scatter or 1
local Number = Table.Amount or 1
local Rocks = Table.DebreeCount or 1
local Range = Table.Distance or 1
local Scale = Table.Size or 1
local Timer = Table.Delay or 1.5
coroutine.resume(coroutine.create(function()
local ScaleVector = VT(Scale, Scale, Scale)
local Boulders = {}
Position = CF(Position)
if KindOf == "Ring" or KindOf == "Both" then
for RockValue = 1, Number do
local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), Range)
local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
BOULDER.CanCollide = true
BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
BOULDER.Color = Coloration
table.insert(Boulders, BOULDER)
end
end
if KindOf == "Loose" or KindOf == "Both" then
for RockValue = 1, Rocks do
local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale - Scale / 2), math.ceil(Scale - Scale / 2)), 0.7)
local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
BOULDER.CanCollide = true
BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
BOULDER.Velocity = CF(BOULDER.Position - VT(0, 4, 0), BOULDER.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 5, 0).p).lookVector * MRANDOM(Fling - Fling / 1.5, Fling + Fling / 1.5)
BOULDER.Color = Coloration
table.insert(Boulders, BOULDER)
end
end
if KindOf == "Random" then
for RockValue = 1, Number do
local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), MRANDOM(0, Range))
local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
BOULDER.CanCollide = true
BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
BOULDER.Color = Coloration
table.insert(Boulders, BOULDER)
end
end
wait(Timer)
for E = 1, 45 do
Swait()
for A = 1, #Boulders do
Boulders[A].Transparency = Boulders[A].Transparency + 0.022222222222222223
end
end
for A = 1, #Boulders do
Boulders[A]:Destroy()
end
end))
end
local CAMSHAKECODE = [==[
-- Synapse Decompiler
-- Purchase Here: https://brack4712.xyz/synapse/purchase/
VT = Vector3.new
MRANDOM = math.random
local A, B, C