View difference between Paste ID: i9dzsxU8 and 4syrqz9z
SHOW: | | - or go back to the newest paste.
1
local username = owner
2
3
if(script:FindFirstChild'Owner')then
4
	repeat wait() until script.Owner.Value
5
end
6
function GetPlr(user)
7
	for _,v in next, game:service'Players':players() do
8
		if(v.Name==user)then
9
			return v
10
		end
11
	end	
12
	return nil
13
end
14
15
local Player = (script:FindFirstChild'Owner' and script:FindFirstChild'Owner'.Value or GetPlr(username))
16
pcall(game.Destroy,script:FindFirstChild'Owner')
17
if Player then
18
do
19
	local GUID = {}
20
	do
21
	    GUID.IDs = {};
22
	    function GUID:new(len)
23
	        local id;
24
	        if(not len)then
25
	            id = (tostring(function() end))
26
	            id = id:gsub("function: ","")
27
	        else
28
	            local function genID(len)
29
	                local newID = ""
30
	                for i = 1,len do
31
	                    newID = newID..string.char(math.random(48,90))
32
	                end
33
	                return newID
34
	            end
35
	            repeat id = genID(len) until not GUID.IDs[id]
36
				local oid = id;
37
				id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
38
	            GUID.IDs[oid]=true;
39
	        end
40
	        return id
41
	    end
42
	end
43
44
	local AHB = Instance.new("BindableEvent")
45
	
46
	local FPS = 30
47
	
48
	local TimeFrame = 0
49
	
50
	local LastFrame = tick()
51
	local Frame = 1/FPS
52
	
53
	game:service'RunService'.Heartbeat:connect(function(s,p)
54
		TimeFrame = TimeFrame + s
55
		if(TimeFrame >= Frame)then
56
			for i = 1,math.floor(TimeFrame/Frame) do
57
				AHB:Fire()
58
			end
59
			LastFrame=tick()
60
			TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
61
		end
62
	end)
63
64
65
	function swait(dur)
66
		if(dur == 0 or typeof(dur) ~= 'number')then
67
			AHB.Event:wait()
68
		else
69
			for i = 1, dur*FPS do
70
				AHB.Event:wait()
71
			end
72
		end
73
	end
74
	
75
	local oPlayer = Player
76
	local Player = oPlayer
77
	
78
	local loudnesses={}
79
	script.Parent = Player.Character
80
	local CoAS = {Actions={}}
81
	local Event = Instance.new("RemoteEvent")
82
	Event.Name = "UserInputEvent"
83
	Event.Parent = Player.Character
84
	local Func = Instance.new("RemoteFunction")
85
	Func.Name = "GetClientProperty"
86
	Func.Parent = Player.Character
87
	local fakeEvent = function()
88
		local t = {_fakeEvent=true,Waited={},Connected={}}
89
		t.Connect = function(self,f)
90
			local ft={}
91
			ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
92
			ft.Disconnect=ft.disconnect
93
				
94
			ft.Func=function(...)
95
				for id,_ in next, t.Waited do 
96
					t.Waited[id] = true 
97
				end 
98
				return f(...)
99
			end; 
100
			
101
			table.insert(self.Connected,ft)
102
			return ft;
103
		end
104
		t.connect = t.Connect
105
		t.Wait = function() 
106
			local guid = GUID:new(25)
107
			local waitingId = guid:Get()
108
			t.Waited[waitingId]=false
109
			repeat swait() until t.Waited[waitingId]==true  
110
			t.Waited[waitingId]=nil;
111
			guid:Trash()
112
		end
113
		t.wait = t.Wait
114
		return t
115
	end
116
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
117
	local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
118
	local Run = {RenderStepped=fakeEvent()}
119
	
120
	function CoAS:BindAction(name,fun,touch,...)
121
		CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
122
	end
123
	function CoAS:UnbindAction(name)
124
		CoAS.Actions[name] = nil
125
	end
126
	local function te(self,ev,...)
127
		local t = self[ev]
128
		if t and t._fakeEvent and t.Connected then
129
			for i,v in next, t.Connected do
130
				if(v.Func and not v.Disconnected)then
131
					v.Func(...)
132
				else
133
					t.Connected[i]=nil
134
				end
135
			end
136
		end
137
	end
138
	m.TrigEvent = te
139
	UsIS.TrigEvent = te
140
	Run.TrigEvent = te
141
	Event.OnServerEvent:Connect(function(plr,io)
142
	    if plr~=Player then return end
143
		--[[table.foreach(io,print)
144
		print'---']]
145
		if io.Mouse then
146
			m.Target = io.Target
147
			m.Hit = io.Hit
148
		elseif io.KeyEvent then
149
			m:TrigEvent('Key'..io.KeyEvent,io.Key)
150
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
151
	        if io.UserInputState == Enum.UserInputState.Begin then
152
				m:TrigEvent("Button1Down")
153
			else
154
				m:TrigEvent("Button1Up")
155
			end
156
		end
157
		if(not io.KeyEvent and not io.Mouse)then
158
			
159
			for n,t in pairs(CoAS.Actions) do
160
				for _,k in pairs(t.Keys) do
161
					if k==io.KeyCode then
162
						t.Function(t.Name,io.UserInputState,io)
163
					end
164
				end
165
			end
166
	        if io.UserInputState == Enum.UserInputState.Begin then
167
				UsIS:TrigEvent("InputBegan",io,false)
168
			else
169
				UsIS:TrigEvent("InputEnded",io,false)
170
	        end
171
	    end
172
	end)
173
		
174
	Func.OnServerInvoke = function(plr,inst,play)
175
		if plr~=Player then return end
176
		if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
177
			loudnesses[inst]=play	
178
		end
179
	end
180
	
181
	function GetClientProperty(inst,prop)
182
		--if(script:IsA'LocalScript' or game:service'RunService':IsStudio())then return prop[inst] end
183
		if(prop == 'PlaybackLoudness' and loudnesses[inst])then 
184
			return loudnesses[inst] 
185
		elseif(prop == 'PlaybackLoudness')then
186
			return Func:InvokeClient(Player,'RegSound',inst)
187
		end
188
		return Func:InvokeClient(Player,inst,prop)
189
	end
190
	
191
192
	local oldGame = game;
193
	local function GetService(s,i)
194
		local service = s:GetService(i)
195
		if(i == 'Players')then
196
			local oldService = service;
197
			local fakeService = newproxy(true)
198
			getmetatable(fakeService).__index = function(s,i)
199
				if(s == fakeService)then s=oldService end
200
				if(i == 'LocalPlayer' or i == 'localPlayer')then
201
					local oldPlayer = Player;
202
					local fakePlayer = newproxy(true)
203
					getmetatable(fakePlayer).__index = function(s,i)
204
						if(i == 'GetMouse')then
205
							return function() return m; end
206
						end
207
						return Player[i]
208
					end
209
					getmetatable(fakePlayer).__newindex = function(s,i,v)
210
						Player[i]=v
211
					end
212
					getmetatable(fakePlayer).__call=function(self,...)
213
						if(self == fakePlayer)then self = Player end
214
						local wh = {...}
215
						local name = table.remove(wh,1)
216
						for i,v in next, wh do
217
							wh[i]=v
218
						end
219
						if(name == 'GetMouse')then
220
							return m;
221
						end
222
						return self(name,unpack(wh))
223
					end
224
					getmetatable(fakePlayer).__namecall=function(self,...)
225
						if(self == fakePlayer)then self = Player end
226
						local tuple={...}
227
						local name = table.remove(tuple,#tuple)
228
					
229
						if(name == 'GetMouse')then
230
							return m;
231
						else
232
							return self[name](self,unpack(tuple))
233
						end
234
					end
235
					
236
					return fakePlayer
237
				elseif(i == 'oPlayer')then
238
					return oPlayer
239
				else
240
					return s[i]	
241
				end
242
			end
243
			getmetatable(fakeService).__newindex = function(s,i,v)
244
				if(s == fakeService)then s=oldService end				
245
				s[i]=v
246
			end
247
			getmetatable(fakeService).__call=function(self,...)
248
				if(self == fakeService)then self = oldService end
249
				local wh = {...}
250
				local name = table.remove(wh,1)
251
				for i,v in next, wh do
252
					wh[i]=v
253
				end
254
				return self(name,unpack(wh))
255
			end
256
			getmetatable(fakeService).__namecall=function(self,...)
257
				if(self == fakeService)then self = oldService end
258
				local tuple={...}
259
				local name = table.remove(tuple,#tuple)
260
261
				return self[name](self,unpack(tuple))
262
				end
263
			getmetatable(fakeService).__metatable = 'gay'
264
			return fakeService
265
		elseif(i == 'RunService')then
266
			local oldService = service;
267
			local fakeService = newproxy(true)
268
			getmetatable(fakeService).__index = function(s,i)
269
				if(s == fakeService)then s=oldService end
270
				return Run[i] or s[i]	
271
			end
272
			getmetatable(fakeService).__newindex = function(s,i,v)
273
				if(s == fakeService)then s=oldService end				
274
				s[i]=v
275
			end
276
			getmetatable(fakeService).__call=function(self,...)
277
				if(self == fakeService)then self = oldService end
278
				local wh = {...}
279
				local name = table.remove(wh,1)
280
				for i,v in next, wh do
281
					wh[i]=v
282
				end
283
				return self(name,unpack(wh))
284
			end
285
			getmetatable(fakeService).__namecall=function(self,...)
286
				if(self == fakeService)then self = oldService end
287
				local tuple={...}
288
				local name = table.remove(tuple,#tuple)
289
290
				return self[name](self,unpack(tuple))
291
				end
292
			getmetatable(fakeService).__metatable = 'gay'
293
			return fakeService	
294
		elseif(i == 'UserInputService')then
295
			return UsIS
296
		elseif(i == 'ContextActionService')then
297
			return CoAS;
298
		else
299
			return service
300
		end
301
	end
302
	local serviceFunctions={
303
		service=true,
304
		GetService=true,
305
	}
306
	local fakeGame = newproxy(true)
307
	getmetatable(fakeGame).__index = function(s,i)
308
		if(s == fakeGame)then s=oldGame end
309
		local serv = GetService(oldGame,i)
310
		if serviceFunctions[i] then
311
			return GetService
312
		elseif(serv)then
313
			return serv
314
		else
315
			return s[i]
316
		end		
317
	end
318
	getmetatable(fakeGame).__newindex = function(s,i,v)
319
		if(s == fakeGame)then s=oldGame end
320
		s[i]=v
321
	end
322
	getmetatable(fakeGame).__call=function(self,...)
323
		if(self == fakeGame)then self = oldGame end
324
		local wh = {...}
325
		local name = table.remove(wh,1)
326
		for i,v in next, wh do
327
			if(v == fakeGame)then v = oldGame end
328
			wh[i]=v
329
		end
330
		if serviceFunctions[name] then
331
			return GetService(self,unpack(wh))
332
		else
333
			return self(name,unpack(wh))
334
		end	
335
	end
336
	getmetatable(fakeGame).	__namecall=function(self,...)
337
		if(self == fakeGame)then self = oldGame end
338
		local tuple={...}
339
		local name = table.remove(tuple,#tuple)
340
		
341
		local funcToCall=self[name]
342
		
343
		if serviceFunctions[name] then
344
			return GetService(self,unpack(tuple))
345
		else
346
			return self[name](self,unpack(tuple))
347
		end
348
	end
349
	getmetatable(fakeGame).__metatable = 'gay'
350
351
	coroutine.wrap(function()
352
		while true do
353
			Run:TrigEvent('RenderStepped')
354
			swait()
355
		end
356
	end)()
357
	game=fakeGame
358
	UserInputService,ContextActionService = UsIS,CoAS
359
	end
360
	end
361
-- Synapse Decompiler
362
-- Purchase Here: https://brack4712.xyz/synapse/purchase/
363
364
wait(0.2)
365
Player = game:GetService("Players").LocalPlayer
366
PlayerGui = Player.PlayerGui
367
Cam = workspace.CurrentCamera
368
Backpack = Player.Backpack
369
Character = Player.Character
370
Humanoid = Character.Humanoid
371
Mouse = Player:GetMouse()
372
RootPart = Character["HumanoidRootPart"]
373
Torso = Character.Torso
374
Head = Character.Head
375
RightArm = Character["Right Arm"]
376
LeftArm = Character["Left Arm"]
377
RightLeg = Character["Right Leg"]
378
LeftLeg = Character["Left Leg"]
379
RootJoint = RootPart.RootJoint
380
Neck = Torso.Neck
381
RightShoulder = Torso["Right Shoulder"]
382
LeftShoulder = Torso["Left Shoulder"]
383
RightHip = Torso["Right Hip"]
384
LeftHip = Torso["Left Hip"]
385
IT = Instance.new
386
CF = CFrame.new
387
VT = Vector3.new
388
RAD = math.rad
389
C3 = Color3.new
390
UD2 = UDim2.new
391
BRICKC = BrickColor.new
392
ANGLES = CFrame.Angles
393
EULER = CFrame.fromEulerAnglesXYZ
394
COS = math.cos
395
ACOS = math.acos
396
SIN = math.sin
397
ASIN = math.asin
398
ABS = math.abs
399
MRANDOM = math.random
400
FLOOR = math.floor
401
Animation_Speed = 3
402
Frame_Speed = 0.016666666666666666
403
local Speed = 16
404
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
405
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
406
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
407
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
408
local DAMAGEMULTIPLIER = 1
409
local ANIM = "Idle"
410
local ATTACK = false
411
local EQUIPPED = false
412
local HOLD = false
413
local COMBO = 1
414
local Rooted = false
415
local SINE = 0
416
local KEYHOLD = false
417
local CHANGE = 2 / Animation_Speed
418
local WALKINGANIM = false
419
local VALUE1 = false
420
local VALUE2 = false
421
local ROBLOXIDLEANIMATION = IT("Animation")
422
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
423
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=2140511053"
424
local WEAPONGUI = IT("ScreenGui", PlayerGui)
425
WEAPONGUI.Name = "Weapon GUI"
426
local Effects = IT("Folder", Character)
427
Effects.Name = "Effects"
428
local ANIMATOR = Humanoid.Animator
429
local ANIMATE = Character.Animate
430
local UNANCHOR = true
431
local TIMESPOT, TIMEVELOCITY, TIMESTAMP
432
local SPEDUP = false
433
local GFT = false
434
ArtificialHB = Instance.new("BindableEvent", script)
435
ArtificialHB.Name = "ArtificialHB"
436
script:WaitForChild("ArtificialHB")
437
frame = Frame_Speed
438
tf = 0
439
allowframeloss = false
440
tossremainder = false
441
lastframe = tick()
442
script.ArtificialHB:Fire()
443
game:GetService("RunService").Heartbeat:connect(function(s, p)
444
	tf = tf + s
445
	if tf >= frame then
446
		if allowframeloss then
447
			script.ArtificialHB:Fire()
448
			lastframe = tick()
449
		else
450
			for i = 1, math.floor(tf / frame) do
451
				script.ArtificialHB:Fire()
452
			end
453
			lastframe = tick()
454
		end
455
		if tossremainder then
456
			tf = 0
457
		else
458
			tf = tf - frame * math.floor(tf / frame)
459
		end
460
	end
461
end)
462
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
463
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
464
end
465
function PositiveAngle(NUMBER)
466
	if NUMBER >= 0 then
467
		NUMBER = 0
468
	end
469
	return NUMBER
470
end
471
function NegativeAngle(NUMBER)
472
	if NUMBER <= 0 then
473
		NUMBER = 0
474
	end
475
	return NUMBER
476
end
477
function Swait(NUMBER)
478
	if NUMBER == 0 or NUMBER == nil then
479
		ArtificialHB.Event:wait()
480
	else
481
		for i = 1, NUMBER do
482
			ArtificialHB.Event:wait()
483
		end
484
	end
485
end
486
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
487
	local NEWMESH = IT(MESH)
488
	if MESH == "SpecialMesh" then
489
		NEWMESH.MeshType = MESHTYPE
490
		if MESHID ~= "nil" and MESHID ~= "" then
491
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
492
		end
493
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
494
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
495
		end
496
	end
497
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
498
	NEWMESH.Scale = SCALE
499
	NEWMESH.Parent = PARENT
500
	return NEWMESH
501
end
502
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
503
	local NEWPART = IT("Part")
504
	NEWPART.formFactor = FORMFACTOR
505
	NEWPART.Reflectance = REFLECTANCE
506
	NEWPART.Transparency = TRANSPARENCY
507
	NEWPART.CanCollide = false
508
	NEWPART.Locked = true
509
	NEWPART.Anchored = true
510
	if ANCHOR == false then
511
		NEWPART.Anchored = false
512
	end
513
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
514
	NEWPART.Name = NAME
515
	NEWPART.Size = SIZE
516
	NEWPART.Position = Torso.Position
517
	NEWPART.Material = MATERIAL
518
	NEWPART:BreakJoints()
519
	NEWPART.Parent = PARENT
520
	return NEWPART
521
end
522
local weldBetween = function(a, b)
523
	local weldd = Instance.new("ManualWeld")
524
	weldd.Part0 = a
525
	weldd.Part1 = b
526
	weldd.C0 = CFrame.new()
527
	weldd.C1 = b.CFrame:inverse() * a.CFrame
528
	weldd.Parent = a
529
	return weldd
530
end
531
function QuaternionFromCFrame(cf)
532
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
533
	local trace = m00 + m11 + m22
534
	if trace > 0 then
535
		local s = math.sqrt(1 + trace)
536
		local recip = 0.5 / s
537
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
538
	else
539
		local i = 0
540
		if m00 < m11 then
541
			i = 1
542
		end
543
		if m22 > (i == 0 and m00 or m11) then
544
			i = 2
545
		end
546
		if i == 0 then
547
			local s = math.sqrt(m00 - m11 - m22 + 1)
548
			local recip = 0.5 / s
549
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
550
		elseif i == 1 then
551
			local s = math.sqrt(m11 - m22 - m00 + 1)
552
			local recip = 0.5 / s
553
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
554
		elseif i == 2 then
555
			local s = math.sqrt(m22 - m00 - m11 + 1)
556
			local recip = 0.5 / s
557
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
558
		end
559
	end
560
end
561
function QuaternionToCFrame(px, py, pz, x, y, z, w)
562
	local xs, ys, zs = x + x, y + y, z + z
563
	local wx, wy, wz = w * xs, w * ys, w * zs
564
	local xx = x * xs
565
	local xy = x * ys
566
	local xz = x * zs
567
	local yy = y * ys
568
	local yz = y * zs
569
	local zz = z * zs
570
	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))
571
end
572
function QuaternionSlerp(a, b, t)
573
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
574
	local startInterp, finishInterp
575
	if cosTheta >= 1.0E-4 then
576
		if 1 - cosTheta > 1.0E-4 then
577
			local theta = ACOS(cosTheta)
578
			local invSinTheta = 1 / SIN(theta)
579
			startInterp = SIN((1 - t) * theta) * invSinTheta
580
			finishInterp = SIN(t * theta) * invSinTheta
581
		else
582
			startInterp = 1 - t
583
			finishInterp = t
584
		end
585
	elseif 1 + cosTheta > 1.0E-4 then
586
		local theta = ACOS(-cosTheta)
587
		local invSinTheta = 1 / SIN(theta)
588
		startInterp = SIN((t - 1) * theta) * invSinTheta
589
		finishInterp = SIN(t * theta) * invSinTheta
590
	else
591
		startInterp = t - 1
592
		finishInterp = t
593
	end
594
	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
595
end
596
function Clerp(a, b, t)
597
	local qa = {
598
		QuaternionFromCFrame(a)
599
	}
600
	local qb = {
601
		QuaternionFromCFrame(b)
602
	}
603
	local ax, ay, az = a.x, a.y, a.z
604
	local bx, by, bz = b.x, b.y, b.z
605
	local _t = 1 - t
606
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
607
end
608
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
609
	local frame = IT("Frame")
610
	frame.BackgroundTransparency = TRANSPARENCY
611
	frame.BorderSizePixel = BORDERSIZEPIXEL
612
	frame.Position = POSITION
613
	frame.Size = SIZE
614
	frame.BackgroundColor3 = COLOR
615
	frame.BorderColor3 = BORDERCOLOR
616
	frame.Name = NAME
617
	frame.Parent = PARENT
618
	return frame
619
end
620
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
621
	local label = IT("TextLabel")
622
	label.BackgroundTransparency = 1
623
	label.Size = UD2(1, 0, 1, 0)
624
	label.Position = UD2(0, 0, 0, 0)
625
	label.TextColor3 = TEXTCOLOR
626
	label.TextStrokeTransparency = STROKETRANSPARENCY
627
	label.TextTransparency = TRANSPARENCY
628
	label.FontSize = TEXTFONTSIZE
629
	label.Font = TEXTFONT
630
	label.BorderSizePixel = BORDERSIZEPIXEL
631
	label.TextScaled = false
632
	label.Text = TEXT
633
	label.Name = NAME
634
	label.Parent = PARENT
635
	return label
636
end
637
function NoOutlines(PART)
638
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
639
end
640
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
641
	local NEWWELD = IT(TYPE)
642
	NEWWELD.Part0 = PART0
643
	NEWWELD.Part1 = PART1
644
	NEWWELD.C0 = C0
645
	NEWWELD.C1 = C1
646
	NEWWELD.Parent = PARENT
647
	return NEWWELD
648
end
649
local S = IT("Sound")
650
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
651
	local NEWSOUND
652
	coroutine.resume(coroutine.create(function()
653
		NEWSOUND = S:Clone()
654
		NEWSOUND.Parent = PARENT
655
		NEWSOUND.Volume = VOLUME
656
		NEWSOUND.Pitch = PITCH
657
		NEWSOUND.EmitterSize = VOLUME * 3
658
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
659
		NEWSOUND:play()
660
		if DOESLOOP == true then
661
			NEWSOUND.Looped = true
662
		else
663
			repeat
664
				wait(1)
665
			until NEWSOUND.Playing == false
666
			NEWSOUND:remove()
667
		end
668
	end))
669
	return NEWSOUND
670
end
671
function CFrameFromTopBack(at, top, back)
672
	local right = top:Cross(back)
673
	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)
674
end
675
function WACKYEFFECT(Table)
676
	local TYPE = Table.EffectType or "Sphere"
677
	local SIZE = Table.Size or VT(1, 1, 1)
678
	local ENDSIZE = Table.Size2 or VT(0, 0, 0)
679
	local TRANSPARENCY = Table.Transparency or 0
680
	local ENDTRANSPARENCY = Table.Transparency2 or 1
681
	local CFRAME = Table.CFrame or Torso.CFrame
682
	local MOVEDIRECTION = Table.MoveToPos or nil
683
	local ROTATION1 = Table.RotationX or 0
684
	local ROTATION2 = Table.RotationY or 0
685
	local ROTATION3 = Table.RotationZ or 0
686
	local MATERIAL = Table.Material or "Neon"
687
	local COLOR = Table.Color or C3(1, 1, 1)
688
	local TIME = Table.Time or 45
689
	local SOUNDID = Table.SoundID or nil
690
	local SOUNDPITCH = Table.SoundPitch or nil
691
	local SOUNDVOLUME = Table.SoundVolume or nil
692
	local USEBOOMERANGMATH = Table.UseBoomerangMath or false
693
	local BOOMERANG = Table.Boomerang or 0
694
	local SIZEBOOMERANG = Table.SizeBoomerang or 0
695
	coroutine.resume(coroutine.create(function()
696
		local PLAYSSOUND = false
697
		local SOUND
698
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
699
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
700
			PLAYSSOUND = true
701
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
702
		end
703
		EFFECT.Color = COLOR
704
		local MSH
705
		if TYPE == "Sphere" then
706
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
707
		elseif TYPE == "Block" or TYPE == "Box" then
708
			MSH = IT("BlockMesh", EFFECT)
709
			MSH.Scale = SIZE
710
		elseif TYPE == "Wave" then
711
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
712
		elseif TYPE == "Ring" then
713
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
714
		elseif TYPE == "Slash" then
715
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
716
		elseif TYPE == "Round Slash" then
717
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
718
		elseif TYPE == "Swirl" then
719
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0, 0, 0))
720
		elseif TYPE == "Skull" then
721
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
722
		elseif TYPE == "Crystal" then
723
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "450656451", "", SIZE, VT(0, 0, 0))
724
		end
725
		coroutine.resume(coroutine.create(function()
726
			if MSH ~= nil then
727
				local BOOMR1 = 1 + BOOMERANG / 50
728
				local BOOMR2 = 1 + SIZEBOOMERANG / 50
729
				local MOVESPEED = nil
730
			if MOVEDIRECTION ~= nil then
731
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
732
			end
733
				local GROWTH
734
				if USEBOOMERANGMATH == true then
735
					GROWTH = (SIZE - ENDSIZE) * (BOOMR2 + 1)
736
				else
737
					GROWTH = SIZE - ENDSIZE
738
				end
739
				local TRANS = TRANSPARENCY - ENDTRANSPARENCY
740
				if TYPE == "Block" then
741
					EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
742
				else
743
					EFFECT.CFrame = CFRAME
744
				end
745
				if USEBOOMERANGMATH == true then
746
					for LOOP = 1, TIME + 1 do
747
						Swait()
748
						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
749
						if TYPE == "Wave" then
750
							MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
751
						end
752
						EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
753
						if TYPE == "Block" then
754
							EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
755
						else
756
							EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
757
						end
758
						if MOVEDIRECTION ~= nil then
759
							local ORI = EFFECT.Orientation
760
							EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED * (1 - LOOP / TIME * BOOMR1))
761
							EFFECT.Orientation = ORI
762
						end
763
					end
764
				else
765
					for LOOP = 1, TIME + 1 do
766
						Swait()
767
						MSH.Scale = MSH.Scale - GROWTH / TIME
768
						if TYPE == "Wave" then
769
							MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
770
						end
771
						EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
772
						if TYPE == "Block" then
773
							EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
774
						else
775
							EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
776
						end
777
						if MOVEDIRECTION ~= nil then
778
					local ORI = EFFECT.Orientation
779
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
780
					EFFECT.Orientation = ORI
781
				end
782
			end
783
				end
784
				EFFECT.Transparency = 1
785
				if PLAYSSOUND == false then
786
					EFFECT:remove()
787
				else
788
					repeat
789
						Swait()
790
					until EFFECT:FindFirstChildOfClass("Sound") == nil
791
					EFFECT:remove()
792
				end
793
			elseif PLAYSSOUND == false then
794
				EFFECT:remove()
795
			else
796
				repeat
797
					Swait()
798
				until EFFECT:FindFirstChildOfClass("Sound") == nil
799
				EFFECT:remove()
800
			end
801
		end))
802
		return EFFECT
803
	end))
804
end
805
function MakeForm(PART, TYPE)
806
	if TYPE == "Cyl" then
807
		local MSH = IT("CylinderMesh", PART)
808
	elseif TYPE == "Ball" then
809
		local MSH = IT("SpecialMesh", PART)
810
		MSH.MeshType = "Sphere"
811
	elseif TYPE == "Wedge" then
812
		local MSH = IT("SpecialMesh", PART)
813
		MSH.MeshType = "Wedge"
814
	end
815
end
816
Debris = game:GetService("Debris")
817
function CastProperRay(StartPos, EndPos, Distance, Ignore)
818
	local DIRECTION = CF(StartPos, EndPos).lookVector
819
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
820
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
821
end
822
823
824
function Debree(Table)
825
	local KindOf = Table.Variant or "Ring"
826
	local Position = Table.Location or Torso.Position
827
	local Coloration = Table.Color or C3(1, 1, 1)
828
	local Texture = Table.Material or "Slate"
829
	local Fling = Table.Scatter or 1
830
	local Number = Table.Amount or 1
831
	local Rocks = Table.DebreeCount or 1
832
	local Range = Table.Distance or 1
833
	local Scale = Table.Size or 1
834
	local Timer = Table.Delay or 1.5
835
	coroutine.resume(coroutine.create(function()
836
		local ScaleVector = VT(Scale, Scale, Scale)
837
		local Boulders = {}
838
		Position = CF(Position)
839
		if KindOf == "Ring" or KindOf == "Both" then
840
			for RockValue = 1, Number do
841
				local LOCATION = Position * ANGLES(RAD(0), RAD(360 / Number * RockValue), RAD(0)) * CF(0, MRANDOM(-math.ceil(Scale / 2), math.ceil(Scale / 2)), Range)
842
				local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
843
				BOULDER.CanCollide = true
844
				BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
845
				BOULDER.Color = Coloration
846
				table.insert(Boulders, BOULDER)
847
			end
848
		end
849
		if KindOf == "Loose" or KindOf == "Both" then
850
			for RockValue = 1, Rocks do
851
				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)
852
				local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
853
				BOULDER.CanCollide = true
854
				BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
855
				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)
856
				BOULDER.Color = Coloration
857
				table.insert(Boulders, BOULDER)
858
			end
859
		end
860
		if KindOf == "Random" then
861
			for RockValue = 1, Number do
862
				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))
863
				local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
864
				BOULDER.CanCollide = true
865
				BOULDER.CFrame = LOCATION * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
866
				BOULDER.Color = Coloration
867
				table.insert(Boulders, BOULDER)
868
			end
869
		end
870
		wait(Timer)
871
		for E = 1, 45 do
872
			Swait()
873
			for A = 1, #Boulders do
874
				Boulders[A].Transparency = Boulders[A].Transparency + 0.022222222222222223
875
			end
876
		end
877
		for A = 1, #Boulders do
878
			Boulders[A]:Destroy()
879
		end
880
	end))
881
end
882-
local CAMSHAKE = script.CamShake
882+
883-
CAMSHAKE.Parent = nil
883+
884-
function CamShake(POSITION, RANGE, INTENSITY, TIME)
884+
885-
	local CHILDREN = workspace:GetDescendants()
885+
886-
	for index, CHILD in pairs(CHILDREN) do
886+
887-
		if CHILD.ClassName == "Model" then
887+
888
		local GUI2 = IT("ImageLabel", GUI)
889
		GUI2.BackgroundTransparency = 1
890
		GUI2.BorderSizePixel = 0
891-
				 if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
891+
892-
					local CAMSHAKER = CAMSHAKE:Clone()
892+
893-
					CAMSHAKER.Shake.Value = INTENSITY
893+
894-
					CAMSHAKER.Timer.Value = TIME
894+
895-
					CAMSHAKER.Parent = CHILD
895+
896-
					CAMSHAKER.Disabled = false
896+
897
			GUI.Size = GUI.Size + UD2(SIZE / TIME, 0, SIZE / TIME, 0)
898
			GUI2.ImageTransparency = GUI2.ImageTransparency + 1 / TIME
899
		end
900
		PART:Remove()
901
	end))
902
end
903
function Vocal(ID)
904
	if Head:FindFirstChild("Speak up") then
905
		Head:FindFirstChild("Speak up").Playing = false
906
		Debris:AddItem(Head:FindFirstChild("Speak up"), 0.2)
907
	end
908
	local SOUND = CreateSound(ID, Head, 7, 1, false)
909
	SOUND.Name = "Speak up"
910
end
911
local BMUSIC = IT("Sound", RootPart)
912
local VOLUME = 2.5
913
local PITCH = 1
914
local SONGID = 513034340
915
local HALO = script.Halo
916
HALO.Anchored = false
917
local BASECOLOR = HALO.Color
918
local SKILLFONT = "Antique"
919
local SKILLTEXTSIZE = 6.5
920
local ATTACKS = {
921
	{
922
		"Temporal Temper",
923
		"Z"
924
	},
925
	{
926
		"Chronostasis",
927
		"X"
928
	},
929
	{
930
		"Fast Forward",
931
		"C"
932
	},
933
	{
934
		"Chronos Cannon",
935
		"V"
936
	},
937
	{
938
		"Temporalysis",
939
		"B"
940
	},
941
	{
942
		"Chronosyntax",
943
		"M"
944
	},
945
	{
946
		"Temporal Trap",
947
		"G"
948
	},
949
	{
950
		"Grandfather Time",
951
		"Q"
952
	}
953
}
954
for i = 1, #ATTACKS do
955
	local SKILLFRAME = CreateFrame(WEAPONGUI, 0.8, 2, UD2(0.87, 0, 1 - 0.04 * i, 0), UD2(0.13, 0, 0.03, 0), C3(0, 0, 0), C3(0.5, 0.5, 1), "Skill Frame")
956
	local SKILLTEXT = CreateLabel(SKILLFRAME, "[" .. ATTACKS[i][1] .. "]", BASECOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
957
	SKILLTEXT.TextXAlignment = "Right"
958
	local BUTTONDISPLAY = CreateLabel(SKILLFRAME, "[" .. ATTACKS[i][2] .. "]", BASECOLOR, SKILLTEXTSIZE - 1, SKILLFONT, 0, 2, 0, "Skill text")
959
	BUTTONDISPLAY.TextXAlignment = "Left"
960
end
961
local CLOCKLOOP = 0
962
local CLOCKSPEED = 1
963
HALO.Parent = Character
964
local HaloWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, HALO, CF(0, 0.65, 0) * ANGLES(RAD(-12), RAD(0), RAD(0)) * CF(0, 0.65, 0), CF(0, 0, 0))
965
local PRT = CreatePart(3, HALO, "Neon", 0, 0, "Mid gray", "Visor", VT(0.05, 0.1, 0.4) * (HALO.Size.Y * 10), false)
966
PRT.Color = HALO.Color
967
local WATCH1 = CreateWeldOrSnapOrMotor("Weld", PRT, HALO, PRT, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, -(PRT.Size.Z / 3 + 0.2)))
968
local PRT = CreatePart(3, HALO, "Neon", 0, 0, "Mid gray", "Visor", VT(0.05, 0.1, 0.26666666666666666) * (HALO.Size.Y * 10), false)
969
PRT.Color = HALO.Color
970
local WATCH2 = CreateWeldOrSnapOrMotor("Weld", PRT, HALO, PRT, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, -(PRT.Size.Z / 3 + 0.2)))
971
local PRT = CreatePart(3, HALO, "Neon", 0, 0, "Mid gray", "Visor", VT(0.15,0.1,0.15) * (HALO.Size.Y * 10), false)
972
PRT.Color = HALO.Color
973
MakeForm(PRT,"Cyl")
974
local ad = CreateWeldOrSnapOrMotor("Weld", PRT, HALO, PRT, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0,0))
975
coroutine.resume(coroutine.create(function()
976
	while true do
977
		Swait()
978
		CLOCKLOOP = CLOCKLOOP - 1 * CLOCKSPEED
979
		WATCH1.C0 = Clerp(WATCH1.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(CLOCKLOOP * 5), RAD(0)), 1 / Animation_Speed)
980
		WATCH2.C0 = Clerp(WATCH2.C0, CF(0, 0, 0) * ANGLES(RAD(0), RAD(CLOCKLOOP * 5 / 2), RAD(0)), 1 / Animation_Speed)
981
		if CLOCKLOOP <= -149 and VALUE1 == false then
982
			CLOCKLOOP = 0
983
		end
984
	end
985
end))
986
Neck.Name = "Weld"
987
RootJoint.Name = "Weld"
988
RightShoulder.Name = "Weld"
989
LeftShoulder.Name = "Weld"
990
RightHip.Name = "Weld"
991
LeftHip.Name = "Weld"
992
local DUST = script.Dust
993
DUST:Remove()
994
local PERMACHROME = script.Permachrome
995
PERMACHROME.Parent = nil
996
local GFC = script.GrandfatherClock
997
GFC.Parent = nil
998
local CLOCKPART = script.Clock
999
CLOCKPART.Parent = nil
1000
for _, v in next, Humanoid:GetPlayingAnimationTracks() do
1001
	v:Stop()
1002
end
1003
for _, c in pairs(Character:GetChildren()) do
1004
	if c and c.Parent and c.ClassName == "Accessory" then
1005
		local ACCESSORY = c
1006
		local HANDLE = c.Handle
1007
		HANDLE.Parent = Character
1008
		if c then
1009
			if HANDLE:FindFirstChild("HatAttachment") or HANDLE:FindFirstChild("FaceFrontAttachment") or HANDLE:FindFirstChild("HairAttachment") then
1010
				local WLD = weldBetween(Head, HANDLE)
1011
			else
1012
				local WLD = weldBetween(Torso, HANDLE)
1013
			end
1014
		end
1015
		HANDLE.Name = ACCESSORY.Name
1016
		ACCESSORY:remove()
1017
	end
1018
end
1019
local BODY = {}
1020
for _, c in pairs(Character:GetDescendants()) do
1021
	if c:IsA("BasePart") and c.Name ~= "Handle" then
1022
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
1023
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1024
		end
1025
		table.insert(BODY, {
1026
			c,
1027
			c.Parent,
1028
			c.Material,
1029
			c.Color,
1030
			c.Transparency,
1031
			c.Size,
1032
			c.Name
1033
		})
1034
	elseif c:IsA("JointInstance") or c:IsA("Shirt") or c:IsA("Pants") then
1035
		table.insert(BODY, {
1036
			c,
1037
			c.Parent,
1038
			nil,
1039
			nil,
1040
			nil,
1041
			nil,
1042
			nil
1043
		})
1044
	end
1045
end
1046
function refit()
1047
	Character.Parent = workspace
1048
	Effects.Parent = Character
1049
	for e = 1, #BODY do
1050
		if BODY[e] ~= nil then
1051
			local STUFF = BODY[e]
1052
			local PART = STUFF[1]
1053
			local PARENT = STUFF[2]
1054
			local MATERIAL = STUFF[3]
1055
			local COLOR = STUFF[4]
1056
			local TRANSPARENCY = STUFF[5]
1057
			local NAME = STUFF[7]
1058
			if PART.ClassName == "Part" and PART ~= RootPart then
1059
				PART.Material = MATERIAL
1060
				PART.Transparency = TRANSPARENCY
1061
				PART.Name = NAME
1062
			end
1063
			if PART.Parent ~= PARENT then
1064
				if PART.Name == "Head" or PART.Name == "Neck" or PART.Name == "Torso" then
1065
					Humanoid:remove()
1066
				end
1067
				PART.Parent = PARENT
1068
				if PART.Name == "Head" or PART.Name == "Neck" or PART.Name == "Torso" then
1069
					Humanoid = IT("Humanoid", Character)
1070
				end
1071
			end
1072
		end
1073
	end
1074
end
1075
Humanoid.Died:connect(function()
1076
	refit()
1077
end)
1078
function ApplyDamage(Humanoid, Damage)
1079
	if Damage > 0 then
1080
		Damage = Damage * DAMAGEMULTIPLIER
1081
		if Humanoid.Health < 2000 then
1082
			if 0 < Humanoid.Health - Damage then
1083
				Humanoid.Health = Humanoid.Health - Damage
1084
			else
1085
				Humanoid.Parent:BreakJoints()
1086
				local NIL = script.TotalNil:Clone()
1087
				NIL.Parent = Humanoid.Parent
1088
				NIL.Disabled = false
1089
			end
1090
		else
1091
			Humanoid.Parent:BreakJoints()
1092
			local NIL = script.TotalNil:Clone()
1093
			NIL.Parent = Humanoid.Parent
1094
			NIL.Disabled = false
1095
		end
1096
	end
1097
end
1098
function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
1099
	for index, CHILD in pairs(workspace:GetDescendants()) do
1100
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1101
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1102
			if HUM then
1103
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1104
				if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
1105
					if INSTAKILL == true then
1106
						CHILD:BreakJoints()
1107
						local NIL = script.TotalNil:Clone()
1108
						NIL.Parent = CHILD
1109
						NIL.Disabled = false
1110
					else
1111
						local DMG = MRANDOM(MINDMG, MAXDMG)
1112
						ApplyDamage(HUM, DMG)
1113
					end
1114
					if FLING ~= 0 then
1115
						for _, c in pairs(CHILD:GetChildren()) do
1116
							if c:IsA("BasePart") then
1117
								local bv = Instance.new("BodyVelocity")
1118
								bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1119
								bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
1120
								bv.Parent = c
1121
								Debris:AddItem(bv, 0.05)
1122
							end
1123
						end
1124
					end
1125
				end
1126
			end
1127
		end
1128
	end
1129
end
1130
function TemporalTemper()
1131
	ATTACK = true
1132
	Rooted = true
1133
	for e = 0, 0.1, 0.1 / Animation_Speed do
1134
		Swait()
1135
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.2, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(-35)), 0.3 / Animation_Speed)
1136
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.3 / Animation_Speed)
1137
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1138
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1139
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(100), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed)
1140
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.3 / Animation_Speed)
1141
	end
1142
	for i = 1, 3 do
1143
		for e = 0, 0.3, 0.1 / Animation_Speed do
1144
			Swait()
1145
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.2, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(-35)), 0.3 / Animation_Speed)
1146
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.3 / Animation_Speed)
1147
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
1148
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1149
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(100), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed)
1150
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.3 / Animation_Speed)
1151
		end
1152
		WACKYEFFECT({
1153
			Time = 75,
1154
			EffectType = "Wave",
1155
			Size = VT(1, 0, 1),
1156
			Size2 = VT(3, 3, 3) + VT(i, 0, i),
1157
			Transparency = 0.8,
1158
			Transparency2 = 1,
1159
			CFrame = RightArm.CFrame * CF(0, 1.2 + i, 0),
1160
			MoveToPos = nil,
1161
			RotationX = 0,
1162
			RotationY = 5,
1163
			RotationZ = 0,
1164
			Material = "Neon",
1165
			Color = BASECOLOR,
1166
			SoundID = 588738949,
1167
			SoundPitch = 1 - i / 10,
1168
			SoundVolume = 4,
1169
			UseBoomerangMath = true,
1170
			Boomerang = 0,
1171
			SizeBoomerang = 15
1172
		})
1173
	end
1174
	for i = 0, 0.1, 0.1 / Animation_Speed do
1175
		Swait()
1176
		WACKYEFFECT({
1177
			Time = 15,
1178
			EffectType = "Wave",
1179
			Size = VT(1, 2, 1),
1180
			Size2 = VT(2, 4, 2),
1181
			Transparency = 0.8,
1182
			Transparency2 = 1,
1183
			CFrame = RightArm.CFrame,
1184
			MoveToPos = nil,
1185
			RotationX = 0,
1186
			RotationY = 5,
1187
			RotationZ = 0,
1188
			Material = "Neon",
1189
			Color = BASECOLOR,
1190
			SoundID = nil,
1191
			SoundPitch = 0,
1192
			SoundVolume = 0,
1193
			UseBoomerangMath = true,
1194
			Boomerang = 0,
1195
			SizeBoomerang = 15
1196
		})
1197
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.65, -0.35 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
1198
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1199
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.4) * ANGLES(RAD(65), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1200
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1201
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1202
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1203
	end
1204
	for i = 0, 0.15, 0.1 / Animation_Speed do
1205
		Swait()
1206
		WACKYEFFECT({
1207
			Time = 15,
1208
			EffectType = "Wave",
1209
			Size = VT(1, 2, 1),
1210
			Size2 = VT(2, 4, 2),
1211
			Transparency = 0.8,
1212
			Transparency2 = 1,
1213
			CFrame = RightArm.CFrame,
1214
			MoveToPos = nil,
1215
			RotationX = 0,
1216
			RotationY = 5,
1217
			RotationZ = 0,
1218
			Material = "Neon",
1219
			Color = BASECOLOR,
1220
			SoundID = nil,
1221
			SoundPitch = 0,
1222
			SoundVolume = 0,
1223
			UseBoomerangMath = true,
1224
			Boomerang = 0,
1225
			SizeBoomerang = 15
1226
		})
1227
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.31, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
1228
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1229
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(65), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1230
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1231
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1232
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1233
	end
1234
	CreateSound(588694531, RightArm, 5, 1, false)
1235
	coroutine.resume(coroutine.create(function()
1236
		local DIST = 0
1237
		local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.CFrame * CF(0, -1, 0).p).lookVector, 4, Character)
1238
		if HITFLOOR then
1239
			repeat
1240
				Swait()
1241
				DIST = (RootPart.Position - HITPOS).Magnitude
1242
				ApplyAoE(HITPOS, 35, 0, 0, -15, false)
1243
			until DIST > 20
1244
			for i = 1, 5 do
1245
				WACKYEFFECT({
1246
					EffectType = "Wave",
1247
					Size = VT(0, 5, 0),
1248
					Size2 = VT(i * 5, 5, i * 5),
1249
					Transparency = 0.6,
1250
					Transparency2 = 1,
1251
					CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-5, 5))),
1252
					MoveToPos = nil,
1253
					RotationX = 0.1,
1254
					RotationY = 1,
1255
					RotationZ = -0.1,
1256
					Material = "Neon",
1257
					Color = BASECOLOR,
1258
					SoundID = 765590102,
1259
					SoundPitch = MRANDOM(5, 15) / 10,
1260
					SoundVolume = 5,
1261
					UseBoomerangMath = false,
1262
					Boomerang = 0,
1263
					SizeBoomerang = 0
1264
				})
1265
			end
1266
			
1267
			ApplyAoE(HITPOS, 15, 25, 35, 125, false)
1268
			Debree({
1269
				Delay = 4,
1270
				Variant = "Random",
1271
				Location = HITPOS,
1272
				Color = HITFLOOR.Color,
1273
				Size = 2,
1274
				Distance = 15,
1275
				Material = HITFLOOR.Material,
1276
				Scatter = 1,
1277
				Amount = MRANDOM(7, 12),
1278
				DebreeCount = 8
1279
			})
1280
			Debree({
1281
				Delay = 4,
1282
				Variant = "Both",
1283
				Location = HITPOS,
1284
				Color = HITFLOOR.Color,
1285
				Size = 3,
1286
				Distance = 15,
1287
				Material = HITFLOOR.Material,
1288
				Scatter = 35,
1289
				Amount = MRANDOM(35, 45),
1290
				DebreeCount = 7
1291
			})
1292
		end
1293
	end))
1294
	for i = 0, 0.5, 0.1 / Animation_Speed do
1295
		Swait()
1296
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.31, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
1297
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1298
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(65), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1299
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1300
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1301
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1302
	end
1303
	ATTACK = false
1304
	Rooted = false
1305
end
1306
function Chronostasis()
1307
	if Cam:FindFirstChild("ColorCorrection") == nil then
1308
		if TIMESPOT == nil then
1309
			local E = 0
1310
			repeat
1311
				wait()
1312
				E = E + 1
1313
			until KEYHOLD == false
1314
			TIMESPOT = RootPart.CFrame
1315
			TIMEVELOCITY = RootPart.Velocity
1316
			TIMESTAMP = IT("Model", Effects)
1317
			TIMESTAMP.Name = "STAMP"
1318
			for _, c in pairs(Character:GetChildren()) do
1319
				if c.ClassName == "Part" and (c.Name == "HumanoidRootPart" or c.Name == "Torso" or c.Name == "Right Arm" or c.Name == "Left Arm" or c.Name == "Right Leg" or c.Name == "Left Leg" or c.Name == "Head") then
1320
					do
1321
						local FADER = CreatePart(3, TIMESTAMP, "Neon", 0, 1, BRICKC("Pearl"), c.Name, c.Size, true)
1322
						FADER.CFrame = c.CFrame
1323
						FADER.Color = BASECOLOR
1324
						if FADER.Name == "Head" then
1325
							FADER.Size = VT(1, 1, 1)
1326
						elseif FADER.Name == "Torso" then
1327
							CreateSound(588738949, FADER, 5, 1, false)
1328
						elseif FADER.Name == "HumanoidRootPart" then
1329
							TIMESTAMP.PrimaryPart = FADER
1330
						end
1331
						if c ~= RootPart then
1332
							coroutine.resume(coroutine.create(function()
1333
								for i = 1, 15 do
1334
									Swait()
1335
									FADER.Transparency = FADER.Transparency - 0.013333333333333334
1336
								end
1337
							end))
1338
						end
1339
					end
1340
				end
1341
			end
1342
			if E > 8 then
1343
				local CFRAME = CF(Mouse.Hit.p + VT(0, 3.15, 0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
1344
				TIMESTAMP:SetPrimaryPartCFrame(CFRAME)
1345
				TIMESPOT = CFRAME
1346
			end
1347
		else
1348
			coroutine.resume(coroutine.create(function()
1349
				local FX = IT("ColorCorrectionEffect", Cam)
1350
				FX.Brightness = 1
1351
				FX.Saturation = -1
1352
				for i = 1, 4 do
1353
					Swait()
1354
					FX.Brightness = FX.Brightness - 0.25
1355
				end
1356
				for i = 1, 45 do
1357
					Swait()
1358
					FX.Saturation = FX.Saturation + 0.022222222222222223
1359
				end
1360
				FX:Remove()
1361
			end))
1362
			WACKYEFFECT({
1363
				EffectType = "Sphere",
1364
				Size = VT(4, 6, 4) / 1.1,
1365
				Size2 = VT(7, 7, 7) / 1.1,
1366
				Transparency = 0,
1367
				Transparency2 = 1,
1368
				CFrame = CF(RootPart.Position),
1369
				MoveToPos = nil,
1370
				RotationX = 0,
1371
				RotationY = 0,
1372
				RotationZ = 0,
1373
				Material = "Neon",
1374
				Color = C3(0, 0, 0),
1375
				SoundID = nil,
1376
				SoundPitch = nil,
1377
				SoundVolume = nil,
1378
				UseBoomerangMath = false,
1379
				Boomerang = 0,
1380
				SizeBoomerang = 0
1381
			})
1382
			WACKYEFFECT({
1383
				EffectType = "Sphere",
1384
				Size = VT(4, 6, 4),
1385
				Size2 = VT(7, 7, 7),
1386
				Transparency = 0.8,
1387
				Transparency2 = 1,
1388
				CFrame = CF(RootPart.Position),
1389
				MoveToPos = nil,
1390
				RotationX = 0,
1391
				RotationY = 0,
1392
				RotationZ = 0,
1393
				Material = "Neon",
1394
				Color = BASECOLOR,
1395
				SoundID = 782199941,
1396
				SoundPitch = 1,
1397
				SoundVolume = 4,
1398
				UseBoomerangMath = false,
1399
				Boomerang = 0,
1400
				SizeBoomerang = 0
1401
			})
1402
			CreateSound(782202168, Torso, 5, 1, false)
1403
			RootPart.CFrame = TIMESPOT
1404
			TIMESPOT = nil
1405
			TIMESTAMP:Remove()
1406
			TIMESTAMP = nil
1407
			Swait()
1408
			RootPart.Velocity = TIMEVELOCITY
1409
		end
1410
	end
1411
end
1412
function FastForward()
1413
	ATTACK = true
1414
	Rooted = true
1415
	for i = 0, 0.12, 0.1 / Animation_Speed do
1416
		Swait()
1417
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
1418
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
1419
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1420
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1.8 / Animation_Speed)
1421
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1422
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1423
	end
1424
	for i = 0, 0.1, 0.1 / Animation_Speed do
1425
		Swait()
1426
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(5), RAD(25)), 1 / Animation_Speed)
1427
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
1428
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-35), RAD(6)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1429
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1430
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(-15)), 1 / Animation_Speed)
1431
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.03, -0.97 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1432
	end
1433
	local BUILDUP = true
1434
	local NEWCLOCK = HALO:Clone()
1435
	NEWCLOCK:ClearAllChildren()
1436
	NEWCLOCK.Size = NEWCLOCK.Size * 1.5
1437
	NEWCLOCK.Anchored = true
1438
	NEWCLOCK.Parent = Effects
1439
	NEWCLOCK.Transparency = 1
1440
	local TICKTOCK = CreateSound(447682521, NEWCLOCK, 0, 0.7, true)
1441
	TICKTOCK.EmitterSize = 70
1442
	coroutine.resume(coroutine.create(function()
1443
		repeat
1444
			NEWCLOCK.CFrame = RightArm.CFrame * CF(0, -6, 0) * ANGLES(RAD(90), RAD(0), RAD(0))
1445
			Swait()
1446
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
1447
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
1448
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(-45), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1449
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1450
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1451
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1452
		until BUILDUP == false
1453
	end))
1454
	local PRT = CreatePart(3, NEWCLOCK, "Neon", 0, 1, "Mid gray", "Visor", VT(0.05, 0.1, 0.4) * (NEWCLOCK.Size.Y * 10), true)
1455
	PRT.Color = HALO.Color
1456
	local PRT1 = CreatePart(3, NEWCLOCK, "Neon", 0, 1, "Mid gray", "Visor", VT(0.05, 0.1, 0.26666666666666666) * (NEWCLOCK.Size.Y * 10), true)
1457
	PRT1.Color = HALO.Color
1458
	local PRT2 = CreatePart(3, NEWCLOCK, "Neon", 0, 0, "Mid gray", "Visor", VT(0.15,0.1,0.15) * (NEWCLOCK.Size.Y * 10), false)
1459
PRT2.Color = HALO.Color
1460
MakeForm(PRT2,"Cyl")
1461
	local SPIN = true
1462
	local SPEED = 1
1463
	local LOOP = 0
1464
	coroutine.resume(coroutine.create(function()
1465
		repeat
1466
			Swait()
1467
			LOOP = LOOP - 1 * SPEED
1468
			PRT.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5), RAD(0)) * CF(0, 0, -(PRT.Size.Z / 3 + 0.2))
1469
			PRT1.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5 / 2), RAD(0)) * CF(0, 0, -(PRT1.Size.Z / 3 + 0.2))
1470
			PRT2.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0, 0, 0)
1471
			if LOOP <= -149 and VALUE1 == false then
1472
				LOOP = 0
1473
			end
1474
		until SPIN == false
1475
		NEWCLOCK:Destroy()
1476
	end))
1477
	for i = 1, 25 do
1478
		Swait()
1479
		NEWCLOCK.Transparency = NEWCLOCK.Transparency - 0.04
1480
		PRT.Transparency = NEWCLOCK.Transparency
1481
		PRT1.Transparency = NEWCLOCK.Transparency
1482
		PRT2.Transparency = NEWCLOCK.Transparency
1483
		TICKTOCK.Volume = TICKTOCK.Volume + 0.4
1484
	end
1485
	wait(0.5)
1486
	for i = 1, 120 do
1487
		Swait()
1488
		SPEED = SPEED + 0.04285714285714286
1489
		TICKTOCK.Pitch = 0.7 * (0.5 + SPEED / 2)
1490
	end
1491
	BUILDUP = false
1492
	for i = 0, 0.5, 0.1 / Animation_Speed do
1493
		Swait()
1494
		NEWCLOCK.CFrame = RightArm.CFrame * CF(0, -6, 0) * ANGLES(RAD(90), RAD(0), RAD(0))
1495
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(5), RAD(25)), 1 / Animation_Speed)
1496
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
1497
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-35), RAD(6)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1498
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1499
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(-15)), 1 / Animation_Speed)
1500
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1501
	end
1502
		WACKYEFFECT({
1503
			Time = 25,
1504
			EffectType = "Sphere",
1505
			Size = VT(0, 0, 0),
1506
			Size2 = VT(SCALE * i, SCALE * i, SCALE * i),
1507
			Transparency = 0.8,
1508
			Transparency2 = 1,
1509
			CFrame = CF(NEWCLOCK.Position),
1510
			MoveToPos = nil,
1511
			RotationX = 0,
1512
			RotationY = 0,
1513
			RotationZ = 0,
1514
			Material = "Neon",
1515
			Color = BASECOLOR,
1516
			SoundID = nil,
1517
			SoundPitch = nil,
1518
			SoundVolume = nil,
1519
			UseBoomerangMath = false,
1520
			Boomerang = 0,
1521
			SizeBoomerang = 0
1522-
	CamShake(NEWCLOCK.Position, 125, 7, 35)
1522+
1523-
	CreateSound(743521450, Effects, 10, 1, false)
1523+
1524-
	local SCALE = 50
1524+
1525
	ClockEffect(CF(NEWCLOCK.Position), 150, 45)
1526
	local AFFECTEDPARTS = {}
1527
	for index, CHILD in pairs(workspace:GetDescendants()) do
1528
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1529
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1530
			if HUM then
1531
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1532
				
1533
			    if TORSO and 65 >= (TORSO.Position - NEWCLOCK.Position).Magnitude then
1534
					CHILD:BreakJoints()
1535
					local NIL = script.TotalNil:Clone()
1536
					NIL.Parent = CHILD
1537
					NIL.Disabled = false
1538
					for index, PART in pairs(CHILD:GetChildren()) do
1539
						if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
1540
							PART.Color = C3(PART.Color.r / 1.2, PART.Color.g / 1.2, PART.Color.b / 1.2)
1541
							table.insert(AFFECTEDPARTS, PART)
1542
						elseif PART:IsA("Accessory") then
1543
							PART:Remove()
1544
						end
1545
					end
1546
				end
1547
			end
1548
		end
1549
	end
1550
	
1551
	if #AFFECTEDPARTS > 0 then
1552
		coroutine.resume(coroutine.create(function()
1553
			wait(1)
1554
			local PARTICLES = {}
1555
			for E = 1, #AFFECTEDPARTS do
1556
				local PARTICLE = DUST:Clone()
1557
				PARTICLE.Parent = AFFECTEDPARTS[E]
1558
				PARTICLE.Color = ColorSequence.new(AFFECTEDPARTS[E].Color)
1559
				PARTICLE.Enabled = true
1560
				table.insert(PARTICLES, PARTICLE)
1561
			end
1562
			for i = 1, 120 do
1563
				Swait()
1564
				for E = 1, #AFFECTEDPARTS do
1565
					AFFECTEDPARTS[E].Transparency = AFFECTEDPARTS[E].Transparency + 0.008333333333333333
1566
					for index, CHILD in pairs(AFFECTEDPARTS[E]:GetChildren()) do
1567
						if CHILD:IsA("Texture") or CHILD:IsA("Decal") then
1568
							CHILD.Transparency = AFFECTEDPARTS[E].Transparency
1569
						end
1570
					end
1571
				end
1572
			end
1573
			for E = 1, #PARTICLES do
1574
				PARTICLES[E].Enabled = false
1575
			end
1576
			for E = 1, #AFFECTEDPARTS do
1577
				Debris:AddItem(AFFECTEDPARTS[E], 1.75)
1578
			end
1579
		end))
1580
	end
1581
	coroutine.resume(coroutine.create(function()
1582
		for i = 1, 25 do
1583
			Swait()
1584
			NEWCLOCK.Transparency = NEWCLOCK.Transparency + 0.04
1585
			PRT.Transparency = NEWCLOCK.Transparency
1586
			PRT1.Transparency = NEWCLOCK.Transparency
1587
			PRT2.Transparency = NEWCLOCK.Transparency
1588
			TICKTOCK.Volume = TICKTOCK.Volume - 0.4
1589
		end
1590
		SPIN = false
1591
	end))
1592
	for i = 0, 0.12, 0.1 / Animation_Speed do
1593
		Swait()
1594
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
1595
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
1596
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1597
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1.8 / Animation_Speed)
1598
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1599
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1600
	end
1601
	ATTACK = false
1602
	Rooted = false
1603
end
1604
function ChronosCannon()
1605
	ATTACK = true
1606
	Rooted = false
1607
	local CHROMES = {}
1608
	local AFFECTEDPEOPLE = {}
1609
	coroutine.resume(coroutine.create(function()
1610
		Humanoid.PlatformStand = true
1611
		local GYRO = IT("BodyGyro")
1612
		GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
1613
		GYRO.Parent = RootPart
1614
		GYRO.D = 270
1615
		GYRO.P = 4000
1616
		GYRO.MaxTorque = VT(40000, 40000, 40000)
1617
		local POSITION = IT("BodyPosition", RootPart)
1618
		POSITION.Position = RootPart.Position + VT(0, 2, 0)
1619
		POSITION.D = 450
1620
		POSITION.P = 40000
1621
		POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1622
		repeat
1623
			Swait()
1624
			GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
1625
		until ATTACK == false
1626
		Humanoid.PlatformStand = false
1627
		GYRO:Remove()
1628
		POSITION:Remove()
1629
	end))
1630
	CLOCKSPEED = 2
1631
	for i = 0, 1, 0.1 / Animation_Speed do
1632
		Swait()
1633
		WACKYEFFECT({
1634
			Time = 15,
1635
			EffectType = "Wave",
1636
			Size = VT(1, 2, 1),
1637
			Size2 = VT(2, 4, 2),
1638
			Transparency = 0.8,
1639
			Transparency2 = 1,
1640
			CFrame = RightArm.CFrame,
1641
			MoveToPos = nil,
1642
			RotationX = 0,
1643
			RotationY = 5,
1644
			RotationZ = 0,
1645
			Material = "Neon",
1646
			Color = BASECOLOR,
1647
			SoundID = nil,
1648
			SoundPitch = 0,
1649
			SoundVolume = 0,
1650
			UseBoomerangMath = true,
1651
			Boomerang = 0,
1652
			SizeBoomerang = 15
1653
		})
1654
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(45)), 1 / Animation_Speed)
1655
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
1656
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1657
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1658
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1659
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1660
	end
1661
	CreateSound(743521450, RightArm, 6, 0.8, false)
1662
	CLOCKSPEED = 0
1663
	coroutine.resume(coroutine.create(function()
1664
		local CFRAME = RootPart.CFrame * CF(0, 0, -2)
1665
		local COLISSION = false
1666
		local POSN
1667
		local function AoE(POS, RANGE)
1668
			for index, CHILD in pairs(workspace:GetDescendants()) do
1669
				if CHILD.ClassName == "Model" and CHILD ~= Character then
1670
					local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1671
					if HUM then
1672
						local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1673
						if TORSO and RANGE >= (TORSO.Position - POS).Magnitude then
1674
							local PASS = true
1675
							for E = 1, #AFFECTEDPEOPLE do
1676
								if AFFECTEDPEOPLE[E][1] == CHILD then
1677
									PASS = false
1678
								end
1679
							end
1680
							if PASS == true then
1681
								local CHROME = PERMACHROME:Clone()
1682
								CHROME.Parent = CHILD
1683
								CHROME.Disabled = false
1684
								local UNDO = IT("BoolValue", CHROME)
1685
								UNDO.Name = "Undo"
1686
								table.insert(CHROMES, CHROME)
1687
								local TIMESTOPPED = false
1688
								if CHILD:FindFirstChild("TimeStopMark") then
1689
									TIMESTOPPED = true
1690
								end
1691
								table.insert(AFFECTEDPEOPLE, {CHILD, TIMESTOPPED})
1692
								local MARK = IT("Folder", CHILD)
1693
								MARK.Name = "TimeStopMark"
1694
								for index, PART in pairs(CHILD:GetChildren()) do
1695
									if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" and TIMESTOPPED == false then
1696
										PART.Anchored = true
1697
										local POSITION = IT("BodyPosition", PART)
1698
										POSITION.Position = PART.Position
1699
										POSITION.D = 450
1700
										POSITION.P = 4000
1701
										POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1702
										POSITION.Name = "TimeStopPosition"
1703
									end
1704
								end
1705
							end
1706
						end
1707
					end
1708
				end
1709
			end
1710
		end
1711
		for i = 1, 25 do
1712
			for E = 1, 4 do
1713
				CFRAME = CFRAME * CF(0, 0, -7)
1714
				local HIT, POS, NORMAL = Raycast(CFRAME.p, CFRAME.lookVector, 23, Character)
1715
				if HIT then
1716
					POSN = POS
1717
					WACKYEFFECT({
1718
						Time = 35,
1719
						EffectType = "Ring",
1720
						Size = VT(12, 12, 0) / 3,
1721
						Size2 = VT(15, 15, 0) / 3,
1722
						Transparency = 0.5,
1723
						Transparency2 = 1,
1724
						CFrame = CFRAME * ANGLES(RAD(0), RAD(0), RAD(0)),
1725
						MoveToPos = nil,
1726
						RotationX = 0,
1727
						RotationY = 0,
1728
						RotationZ = 0,
1729
						Material = "Neon",
1730
						Color = C3(1, 1, 1),
1731
						SoundID = 743521450,
1732
						SoundPitch = 1,
1733
						SoundVolume = 7,
1734
						UseBoomerangMath = false,
1735
						Boomerang = 0,
1736
						SizeBoomerang = 0
1737
					})
1738
					COLISSION = true
1739
					break
1740
				else
1741
					WACKYEFFECT({
1742
						Time = 50,
1743
						EffectType = "Sphere",
1744
						Size = VT(6, 6, 6) + VT(E, E, E),
1745
						Size2 = VT(5, 5, 5) + VT(E, E, E),
1746
						Transparency = 0,
1747
						Transparency2 = 1,
1748
						CFrame = CF(CFRAME.p),
1749
						MoveToPos = nil,
1750
						RotationX = 0,
1751
						RotationY = 0,
1752
						RotationZ = 0,
1753
						Material = "Neon",
1754
						Color = BASECOLOR,
1755
						SoundID = nil,
1756
						SoundPitch = 1,
1757
						SoundVolume = 6,
1758
						UseBoomerangMath = false,
1759
						Boomerang = 0,
1760
						SizeBoomerang = 0
1761
					})
1762
					for i = 1, 5 do
1763
						WACKYEFFECT({
1764
							Time = 25,
1765
							EffectType = "Wave",
1766
							Size = VT(0, 5, 0),
1767
							Size2 = (VT(i * 5, 8, i * 5) + VT(E * 8, 0, E * 8)) / 2,
1768
							Transparency = 0.8,
1769
							Transparency2 = 1,
1770
							CFrame = CFRAME * ANGLES(RAD(90), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-5, 5))),
1771
							MoveToPos = nil,
1772
							RotationX = MRANDOM(-1, 1),
1773
							RotationY = MRANDOM(-1, 1),
1774
							RotationZ = MRANDOM(-1, 1),
1775
							Material = "Neon",
1776
							Color = BASECOLOR,
1777
							SoundID = nil,
1778
							SoundPitch = MRANDOM(5, 15) / 10,
1779
							SoundVolume = 5,
1780
							UseBoomerangMath = true,
1781
							Boomerang = 0,
1782
							SizeBoomerang = 25
1783
						})
1784
					end
1785
				end
1786
			end
1787
			if COLISSION == true then
1788
				break
1789
			else
1790
				AoE(CFRAME.p, 5)
1791
				local LOCATION = CFRAME * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(0, 360))) * CF(0, MRANDOM(5, 15), 0)
1792
				ClockEffect(LOCATION, 22, 32)
1793
				
1794
			end
1795
			Swait()
1796
		end
1797
		if COLISSION == true then
1798
			local HITFLOOR, HITPOS = Raycast(POSN + VT(0, 1, 0), CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
1799
			if HITFLOOR and HITFLOOR.Anchored == true then
1800
				Debree({
1801
					Delay = 5,
1802
					Variant = "Ring",
1803
					Location = HITPOS,
1804
					Color = HITFLOOR.Color,
1805
					Size = 5,
1806
					Distance = 25,
1807
					Material = HITFLOOR.Material,
1808
					Scatter = 1,
1809
					Amount = MRANDOM(35, 45),
1810
					DebreeCount = 8
1811
				})
1812
			end
1813
			WACKYEFFECT({
1814
				Time = 100,
1815
				EffectType = "Crystal",
1816
				Size = VT(50, 50, 50) / 190,
1817
				Size2 = VT(45, 45, 45) / 190,
1818
				Transparency = 0.15,
1819
				Transparency2 = 1,
1820
				CFrame = CF(POSN),
1821
				MoveToPos = nil,
1822
				RotationX = 0,
1823
				RotationY = 4,
1824
				RotationZ = 4,
1825
				Material = "Neon",
1826
				Color = BASECOLOR,
1827
				SoundID = 588736245,
1828
				SoundPitch = 1,
1829
				SoundVolume = 6,
1830
				UseBoomerangMath = false,
1831
				Boomerang = 0,
1832
				SizeBoomerang = 0
1833
			})
1834
			WACKYEFFECT({
1835
				Time = 100,
1836
				EffectType = "Sphere",
1837
				Size = VT(50, 50, 50),
1838
				Size2 = VT(45, 45, 45),
1839
				Transparency = 0.5,
1840
				Transparency2 = 1,
1841
				CFrame = CF(POSN),
1842
				MoveToPos = nil,
1843
				RotationX = 0,
1844
				RotationY = 0,
1845
				RotationZ = 0,
1846
				Material = "Neon",
1847
				Color = BASECOLOR,
1848
				SoundID = 588736245,
1849
				SoundPitch = 1,
1850
				SoundVolume = 6,
1851
				UseBoomerangMath = false,
1852
				Boomerang = 0,
1853
				SizeBoomerang = 0
1854
			})
1855
		if #AFFECTEDPEOPLE > 0 then
1856
			wait(1)
1857
			CreateSound(908895929, Effects, 2, 1.5, false)
1858
			for E = 1, #CHROMES do
1859
				CHROMES[E].Undo.Value = true
1860
			end
1861
			for E = 1, #AFFECTEDPEOPLE do
1862
				for index, PART in pairs(AFFECTEDPEOPLE[E][1]:GetChildren()) do
1863
					if PART:IsA("BasePart") then
1864
						if AFFECTEDPEOPLE[E][2] == false then
1865
							PART.Anchored = false
1866
						end
1867
						if PART.Name == "Torso" or PART.Name == "UpperTorso" then
1868
							CreateSound(588694531, PART, 2, MRANDOM(8, 12) / 10, false)
1869
						end
1870
						if PART:FindFirstChild("TimeStopPosition") and AFFECTEDPEOPLE[E][2] == false then
1871
							PART:FindFirstChild("TimeStopPosition"):Remove()
1872
						end
1873
					elseif PART:IsA("Humanoid") then
1874
						ApplyDamage(PART, 600000)
1875
					elseif PART.Name == "TimeStopMark" and AFFECTEDPEOPLE[E][2] == false then
1876
						PART:Remove()
1877
					end
1878
				end
1879-
			ClockEffect(CF(POSN), 70, 25)
1879+
1880-
			CamShake(POSN, 140, 8, 25)
1880+
1881-
			for i = 1, 70 do
1881+
1882
	for i = 0, 1, 0.1 / Animation_Speed do
1883-
				AoE(POSN, 25)
1883+
1884
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(-45)), 1 / Animation_Speed)
1885
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
1886
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1887
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1888
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1889
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1890
	end
1891
	CLOCKSPEED = 1
1892
	ATTACK = false
1893
	Rooted = false
1894
end
1895
function Temporalysis()
1896
	if ANIM == "Walk" or ANIM == "Idle" then
1897
		ATTACK = true
1898
		Rooted = true
1899
		UNANCHOR = false
1900
		coroutine.resume(coroutine.create(function()
1901
			for i = 1, 15 do
1902
				Swait()
1903
				RootPart.CFrame = RootPart.CFrame * CF(0, (15 - i) / 15, 0)
1904
			end
1905
		end))
1906
		do
1907
			local NEWCLOCK = HALO:Clone()
1908
			NEWCLOCK:ClearAllChildren()
1909
			NEWCLOCK.Size = NEWCLOCK.Size * 22
1910
			NEWCLOCK.Anchored = true
1911
			NEWCLOCK.Parent = Effects
1912
			NEWCLOCK.Transparency = 1
1913
			NEWCLOCK.CFrame = RootPart.CFrame * CF(0, -4.25, 0)
1914
			local TICKTOCK = CreateSound(447682521, NEWCLOCK, 0, 0.7, true)
1915
			TICKTOCK.EmitterSize = 70
1916
			local PRT = CreatePart(3, NEWCLOCK, "Neon", 0, 1, "Mid gray", "Visor", VT(0.05, 0.1, 0.4) * (NEWCLOCK.Size.Y * 10), true)
1917
			PRT.Color = HALO.Color
1918
			local PRT1 = CreatePart(3, NEWCLOCK, "Neon", 0, 1, "Mid gray", "Visor", VT(0.05, 0.1, 0.26666666666666666) * (NEWCLOCK.Size.Y * 10), true)
1919
			PRT1.Color = HALO.Color
1920
local PRT2 = CreatePart(3, NEWCLOCK, "Neon", 0, 1, "Mid gray", "Visor", VT(0.15,0.1,0.15) * (NEWCLOCK.Size.Y * 10), false)
1921
PRT2.Color = HALO.Color
1922
MakeForm(PRT2,"Cyl")
1923
			local SPIN = true
1924
			local SPEED = 1
1925
			local LOOP = 0
1926
			coroutine.resume(coroutine.create(function()
1927
				repeat
1928
					Swait()
1929
					LOOP = LOOP - 1 * SPEED
1930
					PRT.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5), RAD(0)) * CF(0, 0, -(PRT.Size.Z / 3 + 2.5))
1931
					PRT1.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5 / 2), RAD(0)) * CF(0, 0, -(PRT1.Size.Z / 3 + 2.5))
1932
					PRT2.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(0), RAD(0)) * CF(0, 0, 0)
1933
					if LOOP <= -149 and VALUE1 == false then
1934
						LOOP = 0
1935
					end
1936
				until SPIN == false
1937
				for i = 1, 45 do
1938
					Swait()
1939
					NEWCLOCK.Transparency = NEWCLOCK.Transparency + 0.022222222222222223
1940
					PRT.Transparency = NEWCLOCK.Transparency
1941
					PRT1.Transparency = NEWCLOCK.Transparency
1942
					PRT2.Transparency = NEWCLOCK.Transparency
1943
				end
1944
				NEWCLOCK:Destroy()
1945
			end))
1946
			for i = 1, 45 do
1947
				Swait()
1948
				NEWCLOCK.Transparency = NEWCLOCK.Transparency - 0.022222222222222223
1949
				PRT.Transparency = NEWCLOCK.Transparency
1950
				PRT1.Transparency = NEWCLOCK.Transparency
1951
				PRT2.Transparency = NEWCLOCK.Transparency
1952
				TICKTOCK.Volume = TICKTOCK.Volume + 0.2222222222222222
1953
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.1 * COS(SINE * 1.2), 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1954
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
1955
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.65, 0.3 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1956
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.65, 0.15 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1957
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-15)), 2 / Animation_Speed)
1958
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(15)), 2 / Animation_Speed)
1959
			end
1960
			coroutine.resume(coroutine.create(function()
1961
				ClockEffect(NEWCLOCK.CFrame, NEWCLOCK.Size.X, 65)
1962
				for i = 1, 75 do
1963
					Swait()
1964
					SPEED = SPEED - 0.006666666666666667
1965
					TICKTOCK.Pitch = 0.7 * SPEED
1966
				end
1967
				coroutine.resume(coroutine.create(function()
1968
					local FX = IT("ColorCorrectionEffect", Cam)
1969
					FX.Brightness = 1
1970
					FX.Saturation = -1
1971
					for i = 1, 15 do
1972
						Swait()
1973
						FX.Brightness = FX.Brightness - 0.06666666666666667
1974
					end
1975
					for i = 1, 125 do
1976
						Swait()
1977
						FX.Saturation = FX.Saturation + 0.008
1978
					end
1979
					FX:Remove()
1980
				end))
1981
				coroutine.resume(coroutine.create(function()
1982
					for i = 1, 75 do
1983
						Swait()
1984
						SPEED = SPEED - 0.006666666666666667
1985
						TICKTOCK.Pitch = 0.7 * SPEED
1986
					end
1987
				end))
1988
				local AFFECTEDPEOPLE = {}
1989
				local CHROMES = {}
1990
				for index, CHILD in pairs(workspace:GetDescendants()) do
1991
					if CHILD.ClassName == "Model" and CHILD ~= Character then
1992
						local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1993
						if HUM then
1994
							local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1995
							if TORSO and (TORSO.Position - NEWCLOCK.Position).Magnitude <= NEWCLOCK.Size.X / 2 then
1996
								local PASS = true
1997
								if CHILD:FindFirstChild("TimeStopMark") then
1998
									PASS = false
1999
								end
2000
								if PASS == true then
2001
									local CHROME = PERMACHROME:Clone()
2002
									CHROME.Parent = CHILD
2003
									CHROME.Disabled = false
2004
									local UNDO = IT("BoolValue", CHROME)
2005
									UNDO.Name = "Undo"
2006
									table.insert(CHROMES, CHROME)
2007
									table.insert(AFFECTEDPEOPLE, CHILD)
2008
									local MARK = IT("Folder", CHILD)
2009
									MARK.Name = "TimeStopMark"
2010
									for index, PART in pairs(CHILD:GetChildren()) do
2011
										if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
2012
											PART.Anchored = true
2013
											local POSITION = IT("BodyPosition", PART)
2014
											POSITION.Position = PART.Position
2015
											POSITION.D = 450
2016
											POSITION.P = 4000
2017
											POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2018
											POSITION.Name = "TimeStopPosition"
2019
										end
2020
									end
2021
								end
2022
							end
2023
						end
2024
					end
2025
				end
2026
				if #AFFECTEDPEOPLE > 0 then
2027
					wait(7)
2028
				end
2029
				SPIN = false
2030
				if #AFFECTEDPEOPLE > 0 then
2031
					CreateSound(743521450, NEWCLOCK, 2, 3, false)
2032
					for E = 1, #CHROMES do
2033
						CHROMES[E].Undo.Value = true
2034
					end
2035
					for E = 1, #AFFECTEDPEOPLE do
2036
						for index, PART in pairs(AFFECTEDPEOPLE[E]:GetChildren()) do
2037
							if PART:IsA("BasePart") then
2038
								PART.Anchored = false
2039
								if PART:FindFirstChild("TimeStopPosition") then
2040
									PART:FindFirstChild("TimeStopPosition"):Remove()
2041
								end
2042
							elseif PART.Name == "TimeStopMark" then
2043
								PART:Remove()
2044
							end
2045
						end
2046
					end
2047
				end
2048
			end))
2049
			for i = 0, 0.7, 0.1 / Animation_Speed do
2050
				Swait()
2051
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 2 / Animation_Speed)
2052
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
2053
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2054
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2055
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 2 / Animation_Speed)
2056
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 2 / Animation_Speed)
2057
			end
2058
			UNANCHOR = true
2059
			ATTACK = false
2060
			Rooted = false
2061
		end
2062
	end
2063
end
2064
function TemporalTrap()
2065
	ATTACK = true
2066
	Rooted = true
2067
	for i = 0, 1, 0.1 / Animation_Speed do
2068
		Swait()
2069
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
2070
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
2071
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(160), RAD(-45), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2072
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2073
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2074
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2075
	end
2076
	coroutine.resume(coroutine.create(function()
2077
		local CFRAME = CF(Mouse.Hit.p) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
2078
		local CFRAME2 = CF(Mouse.Hit.p) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
2079
		local CLOCK = CLOCKPART:Clone()
2080
		CLOCK.Parent = Effects
2081
		CLOCK.Transparency = 1
2082
		CLOCK.Anchored = true
2083
		local PRT = CreatePart(3, CLOCK, "Metal", 0, 1, "Really black", "Visor", VT(0.02, 0.05, 0.4) * (CLOCK.Size.Y * 10), true)
2084
		local PRT1 = CreatePart(3, CLOCK, "Metal", 0, 1, "Really black", "Visor", VT(0.02, 0.05, 0.26666666666666666) * (CLOCK.Size.Y * 10), true)
2085
		PRT.CFrame = CLOCK.CFrame * CF(0, 0, PRT.Size.Z / 2)
2086
		PRT1.CFrame = CLOCK.CFrame * CF(0, 0, PRT1.Size.Z / 2)
2087
		WACKYEFFECT({
2088
			Time = 25,
2089
			EffectType = "Sphere",
2090
			Size = VT(0, 0, 0),
2091
			Size2 = VT(150, 0.2, 150),
2092
			Transparency = 0.5,
2093
			Transparency2 = 1,
2094
			CFrame = CFRAME2,
2095
			MoveToPos = nil,
2096
			RotationX = 0,
2097
			RotationY = 0,
2098
			RotationZ = 0,
2099
			Material = "Neon",
2100
			Color = BASECOLOR,
2101
			SoundID = 743521450,
2102
			SoundPitch = 1.5,
2103
			SoundVolume = 6,
2104
			UseBoomerangMath = false,
2105
			Boomerang = 0,
2106
			SizeBoomerang = 0
2107
		})
2108
		for index, PART in pairs(CLOCK:GetDescendants()) do
2109
			if PART:IsA("Decal") then
2110
				PART.Transparency = 1
2111
			end
2112
		end
2113
		for i = 1, 61 do
2114
			CLOCK.CFrame = CFRAME * ANGLES(RAD(90), RAD(0), RAD(0))
2115
			CLOCK.Transparency = CLOCK.Transparency - 0.016666666666666666
2116
			for index, PART in pairs(CLOCK:GetDescendants()) do
2117
				if PART:IsA("Decal") then
2118
					PART.Transparency = PART.Transparency - 0.016666666666666666
2119
				elseif PART:IsA("BasePart") then
2120
					PART.Transparency = CLOCK.Transparency
2121
				end
2122
			end
2123
			PRT.CFrame = CLOCK.CFrame * CF(0, 0, PRT.Size.Z / 2)
2124
			PRT1.CFrame = CLOCK.CFrame * CF(0, 0, PRT1.Size.Z / 2)
2125
			CFRAME = CFRAME * CF(0, (60 - i) / 55, 0)
2126
			Swait()
2127
		end
2128
		wait(0.1)
2129
		ClockEffect(CLOCK.CFrame, 45, 35)
2130
		local TICKTOCK = CreateSound(447682521, CLOCK, 0, 0.7, true)
2131
		TICKTOCK.EmitterSize = 45
2132
		coroutine.resume(coroutine.create(function()
2133
			for i = 1, 35 do
2134
				Swait()
2135
				TICKTOCK.Volume = TICKTOCK.Volume + 0.17142857142857143
2136
			end
2137
		end))
2138
		local LOOP = 1
2139
		local SPINNING = true
2140
		local ACTIVE = false
2141
		local LOOPED = 0
2142
		local AFFECTEDENTITIES = {}
2143
		repeat
2144
			Swait()
2145
			LOOP = LOOP - 1
2146
			PRT.CFrame = CLOCK.CFrame * ANGLES(RAD(0), RAD(-LOOP * 5), RAD(0)) * CF(0, 0, PRT.Size.Z / 2)
2147
			PRT1.CFrame = CLOCK.CFrame * ANGLES(RAD(0), RAD(-LOOP * 5 / 2), RAD(0)) * CF(0, 0, PRT1.Size.Z / 2)
2148
			if LOOP <= -145 then
2149
				LOOP = 0
2150
				if ACTIVE == false then
2151
					ClockEffect(CLOCK.CFrame, 45, 35)
2152
					WACKYEFFECT({
2153
						Time = 25,
2154
						EffectType = "Sphere",
2155
						Size = VT(0, 0, 0),
2156
						Size2 = VT(150, 0.2, 150),
2157
						Transparency = 0.5,
2158
						Transparency2 = 1,
2159
						CFrame = CFRAME2,
2160
						MoveToPos = nil,
2161
						RotationX = 0,
2162
						RotationY = 0,
2163
						RotationZ = 0,
2164
						Material = "Neon",
2165
						Color = BASECOLOR,
2166
						SoundID = 743521450,
2167
						SoundPitch = 1.5,
2168
						SoundVolume = 6,
2169
						UseBoomerangMath = false,
2170
						Boomerang = 0,
2171
						SizeBoomerang = 0
2172
					})
2173
					for index, CHILD in pairs(workspace:GetDescendants()) do
2174
						if CHILD.ClassName == "Model" and CHILD ~= Character then
2175
							local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2176
							if HUM then
2177
								local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2178
								if TORSO and 0 < HUM.Health and (TORSO.Position - CFRAME2.p).Magnitude <= 75 then
2179
									ApplyDamage(HUM, 15)
2180
									table.insert(AFFECTEDENTITIES, CHILD)
2181
									ACTIVE = true
2182
								end
2183
							end
2184
						end
2185
					end
2186
					if ACTIVE == true then
2187
						ClockEffect(CLOCK.CFrame, 80, 65)
2188
						
2189
						local CLOCKER = WACKYEFFECT({
2190
							Time = 500,
2191
							EffectType = "Crystal",
2192
							Size = VT(150, 150, 150) / 190,
2193
							Size2 = VT(145, 145, 145) / 190,
2194
							Transparency = 0.5,
2195
							Transparency2 = 1,
2196
							CFrame = CFRAME2,
2197
							MoveToPos = nil,
2198
							RotationX = 0,
2199
							RotationY = 4,
2200
							RotationZ = 4,
2201
							Material = "Neon",
2202
							Color = BASECOLOR,
2203
							SoundID = 588697034,
2204
							SoundPitch = 0.8,
2205
							SoundVolume = 6,
2206
							UseBoomerangMath = false,
2207
							Boomerang = 0,
2208
							SizeBoomerang = 0
2209
						})
2210
						WACKYEFFECT({
2211
							Time = 500,
2212
							EffectType = "Sphere",
2213
							Size = VT(150, 150, 150),
2214
							Size2 = VT(145, 145, 145),
2215
							Transparency = 0.85,
2216
							Transparency2 = 1,
2217
							CFrame = CFRAME2,
2218
							MoveToPos = nil,
2219
							RotationX = 0,
2220
							RotationY = 0,
2221
							RotationZ = 0,
2222
							Material = "Neon",
2223
							Color = BASECOLOR,
2224
							SoundID = 908895929,
2225
							SoundPitch = 1,
2226
							SoundVolume = 10,
2227
							UseBoomerangMath = true,
2228
							Boomerang = 3,
2229
							SizeBoomerang = 3
2230
						})
2231
						coroutine.resume(coroutine.create(function()
2232
							for i = 1, 495 do
2233
								Swait()
2234
								for E = 1, #AFFECTEDENTITIES do
2235
									local CHILD = AFFECTEDENTITIES[E]
2236
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2237
									local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2238
									if HUM and TORSO and HUM.Health > 0 and (TORSO.Position - CFRAME2.p).Magnitude > 75 then
2239
										TORSO.CFrame = CF(CFRAME2.p) * ANGLES(RAD(0), RAD(TORSO.Orientation.Y), RAD(0))
2240
										ApplyDamage(HUM, 65)
2241
										CreateSound(782199941, TORSO, 6, 1.5, false)
2242
									end
2243
								end
2244
							end
2245
							SPINNING = false
2246
						end))
2247
					end
2248
				end
2249
				LOOPED = LOOPED + 1
2250
				if LOOPED >= 3 and ACTIVE == false then
2251
					SPINNING = false
2252
				end
2253
			end
2254
		until SPINNING == false
2255
		WACKYEFFECT({
2256
			Time = 35,
2257
			EffectType = "Sphere",
2258
			Size = VT(150, 0.2, 150),
2259
			Size2 = VT(0, 0, 0),
2260
			Transparency = 1,
2261
			Transparency2 = 0,
2262
			CFrame = CFRAME2,
2263
			MoveToPos = nil,
2264
			RotationX = 0,
2265
			RotationY = 0,
2266
			RotationZ = 0,
2267
			Material = "Neon",
2268
			Color = BASECOLOR,
2269
			SoundID = 743521450,
2270
			SoundPitch = 1.5,
2271
			SoundVolume = 6,
2272
			UseBoomerangMath = false,
2273
			Boomerang = 0,
2274
			SizeBoomerang = 0
2275
		})
2276
		for i = 1, 61 do
2277
			CLOCK.CFrame = CFRAME * ANGLES(RAD(-90), RAD(0), RAD(0))
2278
			CLOCK.Transparency = CLOCK.Transparency + 0.016666666666666666
2279
			for index, PART in pairs(CLOCK:GetDescendants()) do
2280
				if PART:IsA("Decal") then
2281
					PART.Transparency = PART.Transparency + 0.016666666666666666
2282
				elseif PART:IsA("BasePart") then
2283
					PART.Transparency = CLOCK.Transparency
2284
				end
2285
			end
2286
			LOOP = LOOP - 1
2287
			PRT.CFrame = CLOCK.CFrame * ANGLES(RAD(0), RAD(-LOOP * 5), RAD(0)) * CF(0, 0, PRT.Size.Z / 2)
2288
			PRT1.CFrame = CLOCK.CFrame * ANGLES(RAD(0), RAD(-LOOP * 5 / 2), RAD(0)) * CF(0, 0, PRT1.Size.Z / 2)
2289
			CFRAME = CFRAME * CF(0, -(60 - i) / 35, 0)
2290
			TICKTOCK.Volume = TICKTOCK.Volume - 0.1
2291
			Swait()
2292
		end
2293
		CLOCK:Remove()
2294
	end))
2295
	for i = 0, 1, 0.1 / Animation_Speed do
2296
		Swait()
2297
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(5), RAD(25)), 1 / Animation_Speed)
2298
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
2299
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-35), RAD(6)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2300
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2301
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(-15)), 1 / Animation_Speed)
2302
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.03, -0.97 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2303
	end
2304
	ATTACK = false
2305
	Rooted = false
2306
end
2307
function GrandfatherTime()
2308
	GFT = true
2309
	ATTACK = true
2310
	Rooted = true
2311
	UNANCHOR = false
2312
	local BUILDUP = true
2313
	coroutine.resume(coroutine.create(function()
2314
		local FX = IT("ColorCorrectionEffect", Cam)
2315
		FX.Brightness = 1
2316
		FX.Saturation = -1
2317
		for i = 1, 4 do
2318
			Swait()
2319
			FX.Brightness = FX.Brightness - 0.25
2320
		end
2321
		for i = 1, 45 do
2322
			Swait()
2323
			FX.Saturation = FX.Saturation + 0.022222222222222223
2324
		end
2325
		FX:Remove()
2326
	end))
2327
	WACKYEFFECT({
2328
		EffectType = "Sphere",
2329
		Size = VT(4, 6, 4) / 1.1,
2330
		Size2 = VT(7, 7, 7) / 1.1,
2331
		Transparency = 0,
2332
		Transparency2 = 1,
2333
		CFrame = CF(RootPart.Position),
2334
		MoveToPos = nil,
2335
		RotationX = 0,
2336
		RotationY = 0,
2337
		RotationZ = 0,
2338
		Material = "Neon",
2339
		Color = C3(0, 0, 0),
2340
		SoundID = nil,
2341
		SoundPitch = nil,
2342
		SoundVolume = nil,
2343
		UseBoomerangMath = false,
2344
		Boomerang = 0,
2345
		SizeBoomerang = 0
2346
	})
2347
	WACKYEFFECT({
2348
		EffectType = "Sphere",
2349
		Size = VT(4, 6, 4),
2350
		Size2 = VT(7, 7, 7),
2351
		Transparency = 0.8,
2352
		Transparency2 = 1,
2353
		CFrame = CF(RootPart.Position),
2354
		MoveToPos = nil,
2355
		RotationX = 0,
2356
		RotationY = 0,
2357
		RotationZ = 0,
2358
		Material = "Neon",
2359
		Color = BASECOLOR,
2360
		SoundID = 782199941,
2361
		SoundPitch = 1,
2362
		SoundVolume = 4,
2363
		UseBoomerangMath = false,
2364
		Boomerang = 0,
2365
		SizeBoomerang = 0
2366
	})
2367
	RootPart.CFrame = RootPart.CFrame * CF(0, 200, 0)
2368
	local E = 0
2369
	local RANGE = 250
2370
	coroutine.resume(coroutine.create(function()
2371
		repeat
2372
			Swait()
2373
			E = E + 1
2374
		until KEYHOLD == false or E > 25
2375
		if E > 25 then
2376
			RANGE = 200
2377
		end
2378
	end))
2379
	coroutine.resume(coroutine.create(function()
2380
		coroutine.resume(coroutine.create(function()
2381
			wait(1.5)
2382
			if E > 25 then
2383
				Vocal(819312817)
2384
			end
2385
		end))
2386
		repeat
2387
			Swait()
2388
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(5), RAD(25)), 1 / Animation_Speed)
2389
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
2390
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(170), RAD(-35), RAD(6)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2391
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2392
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(-15)), 1 / Animation_Speed)
2393
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2394
		until BUILDUP == false
2395
	end))
2396
	local CLOCK = GFC:Clone()
2397
	local NEWCLOCK = CLOCK.Face
2398
	local SWAY = CLOCK.Sway
2399
	local PRT = CreatePart(3, CLOCK, "Metal", 0, 0, "Really black", "Visor", VT(0.05, 0.1, 0.6) * (NEWCLOCK.Size.Y * 10), true)
2400
	local PRT1 = CreatePart(3, CLOCK, "Metal", 0, 0, "Really black", "Visor", VT(0.05, 0.1, 0.39999999999999997) * (NEWCLOCK.Size.Y * 10), true)
2401
	PRT.CFrame = NEWCLOCK.CFrame * CF(0, 0, -(PRT.Size.Z / 2))
2402
	PRT1.CFrame = NEWCLOCK.CFrame * CF(0, 0, -(PRT1.Size.Z / 2))
2403
	local SPINNING = true
2404
	local BODIES = {}
2405
	CLOCK.Parent = Character
2406
	for index, PART in pairs(CLOCK:GetDescendants()) do
2407
		if PART:IsA("BasePart") then
2408
			PART.Transparency = PART.Transparency + 1
2409
			PART.CanCollide = true
2410
			PART.Locked = true
2411
		elseif PART:IsA("Decal") then
2412
			PART.Transparency = 1
2413
		end
2414
	end
2415
	CLOCK:SetPrimaryPartCFrame(RootPart.CFrame * CF(0, -45.327777777777776, 0) * ANGLES(RAD(0), RAD(0), RAD(180)))
2416
	ClockEffect(CF(CLOCK.PrimaryPart.Position), 550, 150)
2417
	local SPIN = 18.1
2418
	local DELAY = SPIN / 180
2419
	CreateSound(1208650519, Effects, 8, 1, false)
2420
	for i = 1, 181 do
2421
		Swait()
2422
		CLOCK:SetPrimaryPartCFrame(CLOCK.PrimaryPart.CFrame * ANGLES(RAD(0), RAD(0), RAD(SPIN - DELAY * i)))
2423
		for index, PART in pairs(CLOCK:GetDescendants()) do
2424
			if PART:IsA("BasePart") then
2425
				PART.Transparency = PART.Transparency - 0.005555555555555556
2426
				PART.CanCollide = true
2427
				PART.Locked = true
2428
			elseif PART:IsA("Decal") then
2429
				PART.Transparency = PART.Transparency - 0.005555555555555556
2430
			end
2431
		end
2432
	end
2433
	for i = 1, 20 do
2434
		Swait()
2435
		CLOCK:SetPrimaryPartCFrame(Clerp(CLOCK.PrimaryPart.CFrame, RootPart.CFrame * CF(0, -45.327777777777776, 0), 0.22))
2436
	end
2437
	BUILDUP = false
2438
	for i = 0, 1, 0.1 / Animation_Speed do
2439
		Swait()
2440
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(55), RAD(0), RAD(-35)), 0.5 / Animation_Speed)
2441
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(35)), 1 / Animation_Speed)
2442
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.51, 0.6) * ANGLES(RAD(90), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2443
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2444
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2445
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2446
	end
2447
	for i = 0, 0.2, 0.1 / Animation_Speed do
2448
		Swait()
2449
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(65)), 1 / Animation_Speed)
2450
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-65)), 1 / Animation_Speed)
2451
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.51, -0.5) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2452
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2453
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2454
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2455
	end
2456
	for i = 1, 8 do
2457
		WACKYEFFECT({
2458
			Time = 5 + i * 5,
2459
			EffectType = "Wave",
2460
			Size = VT(3, 0, 3),
2461
			Size2 = VT(45, 1, 45),
2462
			Transparency = 0.6,
2463
			Transparency2 = 1,
2464
			CFrame = CF(CLOCK.PrimaryPart.CFrame * CF(0, 40.795, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15, 15)), RAD(MRANDOM(0, 360)), RAD(0)),
2465
			MoveToPos = nil,
2466
			RotationX = 0.2,
2467
			RotationY = 0,
2468
			RotationZ = 0,
2469
			Material = "Neon",
2470
			Color = BASECOLOR,
2471
			SoundID = nil,
2472
			SoundPitch = MRANDOM(9, 11) / 10,
2473
			SoundVolume = MRANDOM(9, 11) / 2,
2474
			UseBoomerangMath = true,
2475
			Boomerang = 0,
2476
			SizeBoomerang = 22
2477
		})
2478
	end
2479
	CreateSound(198360470, RightArm, 10, 1.5, false)
2480
	coroutine.resume(coroutine.create(function()
2481
		local AFFECTEDPEOPLE = {}
2482
		local CHROMES = {}
2483
		local HITFLOOR, HITPOS = Raycast(CLOCK.PrimaryPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 1500, Character)
2484
		if HITFLOOR then
2485
			do
2486
				for i = 1, 7 do
2487
					Swait()
2488
					CLOCK:SetPrimaryPartCFrame(CLOCK.PrimaryPart.CFrame * CF(0, -19, 0))
2489
				end
2490
				CreateSound(233856097, Effects, 6, 0.8, false)
2491
				CreateSound(231917744, Effects, 6, 1, false)
2492
				CreateSound(765590102, Effects, 7, 0.6, false)
2493
				for i = 1, 12 do
2494
					WACKYEFFECT({
2495
						Time = 20 + i * 15,
2496
						EffectType = "Wave",
2497
						Size = VT(15, 0, 15),
2498
						Size2 = VT(120, 15, 120),
2499
						Transparency = 0.6,
2500
						Transparency2 = 1,
2501
						CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15, 15)), RAD(MRANDOM(0, 360)), RAD(0)),
2502
						MoveToPos = nil,
2503
						RotationX = 0.2,
2504
						RotationY = 0,
2505
						RotationZ = 0,
2506
						Material = "Neon",
2507
						Color = BASECOLOR,
2508
						SoundID = nil,
2509
						SoundPitch = MRANDOM(9, 11) / 10,
2510
						SoundVolume = MRANDOM(9, 11) / 2,
2511
						UseBoomerangMath = true,
2512
						Boomerang = 0,
2513
						SizeBoomerang = 22
2514
					})
2515
				end
2516
				local TICKTOCK = CreateSound(447682521, NEWCLOCK, 10, 0.7, true)
2517
				TICKTOCK.EmitterSize = 150
2518
				local TICKTOCK2 = CreateSound(850256806, NEWCLOCK, 10, 1, true)
2519
				TICKTOCK2.EmitterSize = 150
2520
				local LOOP = 0
2521
				local LOOP2 = 0
2522
				local SPEED = 1
2523
				local PRIMARYPARTCFRAME = SWAY.PrimaryPart.CFrame
2524-
				CamShake(HITPOS, 8.888888888888888E30, 8, 25)
2524+
2525
					Delay = 12,
2526
					Variant = "Random",
2527
					Location = HITPOS,
2528
					Color = HITFLOOR.Color,
2529
					Size = 7,
2530
					Distance = 75,
2531
					Material = HITFLOOR.Material,
2532
					Scatter = 1,
2533
					Amount = MRANDOM(15, 18),
2534
					DebreeCount = 8
2535
				})
2536
				Debree({
2537
					Delay = 12,
2538
					Variant = "Random",
2539
					Location = HITPOS,
2540
					Color = HITFLOOR.Color,
2541
					Size = 6,
2542
					Distance = 125,
2543
					Material = HITFLOOR.Material,
2544
					Scatter = 1,
2545
					Amount = MRANDOM(35, 45),
2546
					DebreeCount = 8
2547
				})
2548
				wait(0.5)
2549
				coroutine.resume(coroutine.create(function()
2550
					
2551
					ClockEffect(CF(NEWCLOCK.Position), 350, 150)
2552
					CreateSound(743521450, Effects, 10, 1, false)
2553
					coroutine.resume(coroutine.create(function()
2554
						repeat
2555
							wait(0.2)
2556
							WACKYEFFECT({
2557
								Time = 55,
2558
								EffectType = "Sphere",
2559
								Size = VT(0, 0.2, 0),
2560
								Size2 = VT(45, 0, 45),
2561
								Transparency = 0.6,
2562
								Transparency2 = 1,
2563
								CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
2564
								MoveToPos = nil,
2565
								RotationX = 0,
2566
								RotationY = 0,
2567
								RotationZ = 0,
2568
								Material = "Neon",
2569
								Color = BASECOLOR,
2570
								SoundID = 743521450,
2571
								SoundPitch = 1.5,
2572
								SoundVolume = 6,
2573
								UseBoomerangMath = false,
2574
								Boomerang = 0,
2575
								SizeBoomerang = 0
2576
							})
2577
						until SPINNING == false
2578
					end))
2579
					repeat
2580
						Swait()
2581
						LOOP = LOOP - 1 * SPEED
2582
						LOOP2 = LOOP2 + 4
2583
						PRT.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5), RAD(0)) * CF(0, 0, -(PRT.Size.Z / 2))
2584
						PRT1.CFrame = NEWCLOCK.CFrame * ANGLES(RAD(0), RAD(LOOP * 5 / 2), RAD(0)) * CF(0, 0, -(PRT1.Size.Z / 2))
2585
						SWAY:SetPrimaryPartCFrame(PRIMARYPARTCFRAME * ANGLES(RAD(0), RAD(2 * COS(LOOP / 12)), RAD(0 * COS(LOOP / 12))))
2586
						if LOOP <= -149 then
2587
							LOOP = 0
2588
						end
2589
						local CFRAME = CF(HITPOS) * ANGLES(RAD(0), RAD(LOOP2), RAD(0)) * CF(0, 0, RANGE)
2590
						WACKYEFFECT({
2591
							Time = 35,
2592
							EffectType = "Box",
2593
							Size = VT(22, 5, 0.1),
2594
							Size2 = VT(22, 65, 0.1),
2595
							Transparency = 0.6,
2596
							Transparency2 = 1,
2597
							CFrame = CFRAME,
2598
							MoveToPos = CFRAME * CF(0, 150, 0).p,
2599
							RotationX = 0,
2600
							RotationY = 0,
2601
							RotationZ = 0,
2602
							Material = "Neon",
2603
							Color = BASECOLOR,
2604
							SoundID = nil,
2605
							SoundPitch = 1,
2606
							SoundVolume = 6,
2607
							UseBoomerangMath = false,
2608
							Boomerang = 0,
2609
							SizeBoomerang = 0
2610
						})
2611
					until SPINNING == false
2612
					TICKTOCK:Remove()
2613
					TICKTOCK2:Remove()
2614
				end))
2615
				wait(1.5)
2616
				if E <= 25 then
2617
					for i = 1, 75 do
2618
						Swait()
2619
						SPEED = SPEED - 0.013333333333333334
2620
						TICKTOCK.Pitch = 0.7 * SPEED
2621
						TICKTOCK2.Pitch = 1 * SPEED
2622
					end
2623
					CreateSound(782353117, Effects, 6, 1.8, false)
2624
					do
2625
						local LOOPSOUND = CreateSound(228343433, NEWCLOCK, 0, 0.5, true)
2626
						LOOPSOUND.EmitterSize = 180
2627
						coroutine.resume(coroutine.create(function()
2628
							for i = 1, 35 do
2629
								Swait()
2630
								LOOPSOUND.Volume = LOOPSOUND.Volume + 0.17142857142857143
2631
							end
2632
						end))
2633
						for i = 1, 700 do
2634
							Swait()
2635
							for index, CHILD in pairs(workspace:GetDescendants()) do
2636
								if CHILD.ClassName == "Model" and CHILD ~= Character then
2637
									local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2638
									if HUM then
2639
										local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2640
										 if TORSO and 75 >= (TORSO.Position - NEWCLOCK.Position).Magnitude then
2641
											HUM.Health = HUM.Health - 0.09285714285714286
2642
											local PASS = true
2643
											if CHILD:FindFirstChild("TimeStopMark") then
2644
												PASS = false
2645
											end
2646
											if PASS == true then
2647
												local CHROME = PERMACHROME:Clone()
2648
												CHROME.Parent = CHILD
2649
												CHROME.Disabled = false
2650
												local UNDO = IT("BoolValue", CHROME)
2651
												UNDO.Name = "Undo"
2652
												table.insert(CHROMES, CHROME)
2653
												table.insert(AFFECTEDPEOPLE, CHILD)
2654
												local MARK = IT("Folder", CHILD)
2655
												MARK.Name = "TimeStopMark"
2656
												for index, PART in pairs(CHILD:GetChildren()) do
2657
													if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
2658
														PART.Anchored = true
2659
														local POSITION = IT("BodyPosition", PART)
2660
														POSITION.Position = PART.Position
2661
														POSITION.D = 450
2662
														POSITION.P = 4000
2663
														POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2664
														POSITION.Name = "TimeStopPosition"
2665
													end
2666
												end
2667
											end
2668
										end
2669
									end
2670
								end
2671
							end
2672
						end
2673
						coroutine.resume(coroutine.create(function()
2674
							for i = 1, 35 do
2675
								Swait()
2676
								LOOPSOUND.Volume = LOOPSOUND.Volume - 0.17142857142857143
2677
							end
2678
							LOOPSOUND:Remove()
2679
						end))
2680
					end
2681
				else
2682
					for i = 1, 120 do
2683
						Swait()
2684
						SPEED = SPEED + 0.06666666666666667
2685
						TICKTOCK.Pitch = 0.7 * (0.5 + SPEED / 2)
2686
						TICKTOCK2.Pitch = 1 * SPEED
2687
					end
2688
					CreateSound(782353117, Effects, 6, 1.8, false)
2689
					for i = 1, 550 do
2690
						Swait()
2691
						for index, CHILD in pairs(workspace:GetDescendants()) do
2692
							if CHILD.ClassName == "Model" and CHILD ~= Character then
2693
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2694
								if HUM then
2695
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2696
								if TORSO and HUM.Health > 0 and 75 >= (TORSO.Position - NEWCLOCK.Position).Magnitude then
2697
									
2698
										HUM.Health = 0
2699
										CHILD:BreakJoints()
2700
										do
2701
											local NIL = script.TotalNil:Clone()
2702
											NIL.Parent = CHILD
2703
											NIL.Disabled = false
2704
											local AFFECTEDPARTS = {}
2705
											for index, PART in pairs(CHILD:GetChildren()) do
2706
												if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
2707
													PART.Color = C3(PART.Color.r / 1.4, PART.Color.g / 1.4, PART.Color.b / 1.4)
2708
													table.insert(AFFECTEDPARTS, PART)
2709
												elseif PART:IsA("Accessory") then
2710
													PART:Remove()
2711
												end
2712
											end
2713
											coroutine.resume(coroutine.create(function()
2714
												wait(0.3)
2715
												local PARTICLES = {}
2716
												for E = 1, #AFFECTEDPARTS do
2717
													local PARTICLE = DUST:Clone()
2718
													PARTICLE.Parent = AFFECTEDPARTS[E]
2719
													PARTICLE.Color = ColorSequence.new(AFFECTEDPARTS[E].Color)
2720
													PARTICLE.Enabled = true
2721
													table.insert(PARTICLES, PARTICLE)
2722
												end
2723
												for i = 1, 60 do
2724
													Swait()
2725
													for E = 1, #AFFECTEDPARTS do
2726
														AFFECTEDPARTS[E].Transparency = AFFECTEDPARTS[E].Transparency + 0.016666666666666666
2727
														for index, CHILD in pairs(AFFECTEDPARTS[E]:GetChildren()) do
2728
															if CHILD:IsA("Texture") or CHILD:IsA("Decal") then
2729
																CHILD.Transparency = AFFECTEDPARTS[E].Transparency
2730
															end
2731
														end
2732
													end
2733
												end
2734
												for E = 1, #PARTICLES do
2735
													PARTICLES[E].Enabled = false
2736
												end
2737
												for E = 1, #AFFECTEDPARTS do
2738
													Debris:AddItem(AFFECTEDPARTS[E], 1.75)
2739
												end
2740
											end))
2741
										end
2742
									end
2743
								end
2744
							end
2745
						end
2746
					end
2747
				end
2748
				SPINNING = false
2749
			end
2750
		else
2751
			wait(5)
2752
		end
2753
		wait(0.5)
2754
		if #AFFECTEDPEOPLE > 0 then
2755
			CreateSound(743521450, Effects, 2, 3, false)
2756
			for E = 1, #CHROMES do
2757
				if CHROMES[E]:FindFirstChild("Undo") then
2758
					CHROMES[E].Undo.Value = true
2759
				end
2760
			end
2761
			for E = 1, #AFFECTEDPEOPLE do
2762
				for index, PART in pairs(AFFECTEDPEOPLE[E]:GetChildren()) do
2763
					if PART:IsA("BasePart") then
2764
						PART.Anchored = false
2765
						if PART:FindFirstChild("TimeStopPosition") then
2766
							PART:FindFirstChild("TimeStopPosition"):Remove()
2767
						end
2768
					elseif PART.Name == "TimeStopMark" then
2769
						PART:Remove()
2770
					end
2771
				end
2772
			end
2773
		end
2774
		CreateSound(588694531, Effects, 5, 0.6, false)
2775
		local CFRAME = CLOCK.PrimaryPart.CFrame
2776
		local SPINNER = 0
2777
		GFT = false
2778
		for i = 1, 120 do
2779
			Swait()
2780
			if SPINNER < 35 then
2781
				SPINNER = SPINNER + 1.5
2782
			end
2783
			CLOCK:SetPrimaryPartCFrame(CFRAME * CF(0, i / 10, 0) * ANGLES(RAD(SPINNER * COS(i / 6)), RAD(0), RAD(-(i * i) / 8)))
2784
			for index, PART in pairs(CLOCK:GetDescendants()) do
2785
				if PART:IsA("BasePart") then
2786
					PART.Transparency = PART.Transparency + 0.008333333333333333
2787
					PART.CanCollide = false
2788
					PART.Locked = true
2789
				elseif PART:IsA("Decal") then
2790
					PART.Transparency = PART.Transparency + 0.008333333333333333
2791
				end
2792
			end
2793
		end
2794
		CamShake(CLOCK.PrimaryPart.Position, 100, 8, 25)
2795
		WACKYEFFECT({
2796
			Time = 12,
2797
			EffectType = "Sphere",
2798
			Size = VT(0, 0, 0),
2799
			Size2 = VT(150, 150, 150),
2800
			Transparency = 0.15,
2801
			Transparency2 = 1,
2802
			CFrame = CF(CLOCK.PrimaryPart.Position),
2803
			MoveToPos = nil,
2804
			RotationX = 0,
2805
			RotationY = 0,
2806
			RotationZ = 0,
2807
			Material = "Neon",
2808
			Color = BASECOLOR,
2809
			SoundID = 782199941,
2810
			SoundPitch = 1,
2811
			SoundVolume = 6,
2812
			UseBoomerangMath = false,
2813
			Boomerang = 0,
2814
			SizeBoomerang = 0
2815
		})
2816
		CLOCK:Remove()
2817
	end))
2818
	for i = 0, 0.3, 0.1 / Animation_Speed do
2819
		Swait()
2820
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(65)), 0.5 / Animation_Speed)
2821
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-65)), 1 / Animation_Speed)
2822
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.51, -0.5) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2823
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2824
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2825
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2826
	end
2827
	UNANCHOR = true
2828
	ATTACK = false
2829
	Rooted = false
2830
end
2831
function Taunt()
2832
	ATTACK = true
2833
	Rooted = true
2834
	for i = 0, 0.1, 0.1 / Animation_Speed do
2835
		Swait()
2836
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
2837
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
2838
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), 0.7) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(-95)) * ANGLES(RAD(-5), RAD(-90 + 2.5 * COS(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2839
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), 0.6) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2840
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2841
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2842
	end
2843
	Vocal(819373088)
2844
	for i = 1, 65 do
2845
		Swait()
2846
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
2847
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(5), RAD(20 + 12 * SIN(i / 3))), 1 / Animation_Speed)
2848
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.35, 0.05) * ANGLES(RAD(6), RAD(0), RAD(140)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2849
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.35, 0.05) * ANGLES(RAD(6), RAD(0), RAD(-140)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2850
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2851
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2852
	end
2853
	for i = 0, 1, 0.1 / Animation_Speed do
2854
		Swait()
2855
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
2856
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, -0.10000000000000009) * ANGLES(RAD(15), RAD(5), RAD(-20)), 1 / Animation_Speed)
2857
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.45, 0.05) * ANGLES(RAD(6), RAD(0), RAD(140)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2858
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.45, 0.05) * ANGLES(RAD(6), RAD(0), RAD(-140)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2859
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
2860
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2861
	end
2862
	ATTACK = false
2863
	Rooted = false
2864
end
2865
function KeyDown(Key)
2866
	KEYHOLD = true
2867
	if Key == "m" and ATTACK == false then
2868
		if Speed == 16 then
2869
			SPEDUP = true
2870
			Speed = 48
2871
			CHANGE = 6 / Animation_Speed
2872
			ClockEffect(CF(RootPart.Position), 12, 12)
2873
			CreateSound(743521450, RootPart, 6, 1.5, false)
2874
			CLOCKSPEED = 3
2875
		elseif Speed == 48 then
2876
			SPEDUP = false
2877
			Speed = 16
2878
			CHANGE = 2 / Animation_Speed
2879
			ClockEffect(CF(RootPart.Position), 12, 12)
2880
			CreateSound(743521450, RootPart, 6, 1.5, false)
2881
			CLOCKSPEED = 1
2882
		end
2883
	end
2884
	if SPEDUP == false then
2885
		if Key == "z" and ATTACK == false then
2886
			TemporalTemper()
2887
		end
2888
		if Key == "x" and ATTACK == false then
2889
			Chronostasis()
2890
		end
2891
		if Key == "c" and ATTACK == false then
2892
			FastForward()
2893
		end
2894
		if Key == "v" and ATTACK == false then
2895
			ChronosCannon()
2896
		end
2897
		if Key == "b" and ATTACK == false then
2898
			Temporalysis()
2899
		end
2900
		if Key == "g" and ATTACK == false then
2901
			TemporalTrap()
2902
		end
2903
		if Key == "q" and ATTACK == false and GFT == false then
2904
			GrandfatherTime()
2905
		end
2906
		if Key == "t" and ATTACK == false then
2907
			Taunt()
2908
		end
2909
	end
2910
end
2911
function KeyUp(Key)
2912
	KEYHOLD = false
2913
end
2914
Mouse.KeyDown:connect(function(NEWKEY)
2915
	KeyDown(NEWKEY)
2916
end)
2917
Mouse.KeyUp:connect(function(NEWKEY)
2918
	KeyUp(NEWKEY)
2919
end)
2920
function unanchor()
2921
	for _, c in pairs(Character:GetChildren()) do
2922
		if c:IsA("BasePart") and c ~= RootPart then
2923
			c.Anchored = false
2924
		end
2925
	end
2926
	for _, c in pairs(HALO:GetChildren()) do
2927
		if c:IsA("BasePart") and c ~= RootPart then
2928
			c.Anchored = false
2929
		end
2930
	end
2931
	if UNANCHOR == true then
2932
		RootPart.Anchored = false
2933
	else
2934
		RootPart.Anchored = true
2935
	end
2936
end
2937
Humanoid.Changed:connect(function(Jump)
2938
	if Jump == "Jump" and Disable_Jump == true then
2939
		Humanoid.Jump = false
2940
	end
2941
end)
2942
local TIMESTAMP = 0
2943
while true do
2944
	Swait()
2945
	script.Parent = WEAPONGUI
2946
	ANIMATE.Parent = nil
2947
	for _, v in next, Humanoid:GetPlayingAnimationTracks() do
2948
		v:Stop()
2949
	end
2950
	if Humanoid.Parent ~= Character then
2951
		Humanoid = IT("Humanoid", Character)
2952
	end
2953
	SINE = SINE + CHANGE
2954
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2955
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2956
	HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
2957
	local HITFLOOR = CastProperRay(RootPart.Position, RootPart.Position - VT(0, 1, 0), 4, {
2958
		Torso,
2959
		RightArm,
2960
		LeftArm,
2961
		LeftLeg,
2962
		RightLeg,
2963
		Head,
2964
		HALO,
2965
		Effects
2966
	})
2967
	local WALKSPEEDVALUE = 6
2968
	
2969
	
2970
	
2971
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2972
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
2973
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.5 / Animation_Speed)
2974
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10 + (35 + 15 * (Humanoid.WalkSpeed / 16)) * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
2975
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10 + (35 + 15 * (Humanoid.WalkSpeed / 16)) * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
2976
	elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
2977
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2978
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2979
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
2980
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
2981
	end
2982
	HaloWeld.C1 = Clerp(HaloWeld.C1, CF(0, 0, 0) * ANGLES(RAD(3 * COS(SINE / 12)), RAD(0), RAD(3 * SIN(SINE / 12))), 0.1)
2983
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2984
		ANIM = "Jump"
2985
		if ATTACK == false then
2986
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2987
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
2988
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2989
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
2990
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2991
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
2992
		end
2993
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2994
		ANIM = "Fall"
2995
		if ATTACK == false then
2996
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2997
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2998
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2999
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3000
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3001
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3002
		end
3003
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
3004
		ANIM = "Idle"
3005
		if ATTACK == false then
3006
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
3007
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(-2.5 * COS(SINE / 12)), RAD(-25)), 1 / Animation_Speed)
3008
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -1) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(-95)) * ANGLES(RAD(-5), RAD(-90 + 2.5 * COS(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3009
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12),-0.9) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / 12)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3010
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
3011
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
3012
		end
3013
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
3014
		ANIM = "Walk"
3015
		if ATTACK == false then
3016
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.08) * ANGLES(RAD(8), RAD(0), RAD(25 - 7 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
3017
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(-25 + 7 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
3018
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.1 * SIN(SINE / (WALKSPEEDVALUE / 2)), -1) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-95)) * ANGLES(RAD(-5), RAD(-90 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3019
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.1 * SIN(SINE / (WALKSPEEDVALUE / 2)), -0.9) * ANGLES(RAD(1.5 - 1.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(90 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3020
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.96, 0) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
3021
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
3022
		end
3023
	end
3024
	unanchor()
3025
	Humanoid.MaxHealth = 1000
3026
	Humanoid.Health = 1000
3027
	if Rooted == false then
3028
		Disable_Jump = false
3029
		Humanoid.WalkSpeed = Speed
3030
	elseif Rooted == true then
3031
		Disable_Jump = true
3032
		Humanoid.WalkSpeed = 0
3033
	end
3034
	BMUSIC.SoundId = "rbxassetid://" .. SONGID
3035
	BMUSIC.Looped = true
3036
	BMUSIC.Pitch = PITCH
3037
	BMUSIC.Volume = VOLUME
3038
	BMUSIC.Playing = true
3039
	BMUSIC.EmitterSize = 35
3040
	if BMUSIC.Parent ~= RootPart then
3041
		print("Fixing music")
3042
		BMUSIC = IT("Sound", RootPart)
3043
		BMUSIC.SoundId = "rbxassetid://" .. SONGID
3044
		BMUSIC.Looped = true
3045
		BMUSIC.Pitch = PITCH
3046
		BMUSIC.Volume = VOLUME
3047
		BMUSIC.Playing = true
3048
		BMUSIC.EmitterSize = 25
3049
		BMUSIC.TimePosition = TIMESTAMP
3050
		FIXING = true
3051
	elseif FIXING == false then
3052
		TIMESTAMP = BMUSIC.TimePosition
3053
	else
3054
		FIXING = false
3055
	end
3056
	Humanoid.Name = "CHRONOS_SENTINEL"
3057
	if SPEDUP == true then
3058
		for index, CHILD in pairs(workspace:GetDescendants()) do
3059
			if CHILD.ClassName == "Model" and CHILD ~= Character then
3060
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
3061
				if HUM then
3062
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
3063
					if TORSO and HUM.health > 0 and (TORSO.Position - Torso.Position).Magnitude <= 8 then
3064
						HUM.Health = 0
3065
						CHILD:BreakJoints()
3066
						do
3067
							local NIL = script.TotalNil:Clone()
3068
							NIL.Parent = CHILD
3069
							NIL.Disabled = false
3070
							local AFFECTEDPARTS = {}
3071
							for index, PART in pairs(CHILD:GetChildren()) do
3072
								if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
3073
									PART.Color = C3(PART.Color.r / 1.1, PART.Color.g / 1.1, PART.Color.b / 1.1)
3074
									table.insert(AFFECTEDPARTS, PART)
3075
								elseif PART:IsA("Accessory") then
3076
									PART:Remove()
3077
								end
3078
							end
3079
							coroutine.resume(coroutine.create(function()
3080
								wait(0.3)
3081
								local PARTICLES = {}
3082
								for E = 1, #AFFECTEDPARTS do
3083
									local PARTICLE = DUST:Clone()
3084
									PARTICLE.Parent = AFFECTEDPARTS[E]
3085
									PARTICLE.Color = ColorSequence.new(AFFECTEDPARTS[E].Color)
3086
									PARTICLE.Enabled = true
3087
									table.insert(PARTICLES, PARTICLE)
3088
								end
3089
								for i = 1, 180 do
3090
									Swait()
3091
									for E = 1, #AFFECTEDPARTS do
3092
										AFFECTEDPARTS[E].Transparency = AFFECTEDPARTS[E].Transparency + 0.005555555555555556
3093
										for index, CHILD in pairs(AFFECTEDPARTS[E]:GetChildren()) do
3094
											if CHILD:IsA("Texture") or CHILD:IsA("Decal") then
3095
												CHILD.Transparency = AFFECTEDPARTS[E].Transparency
3096
											end
3097
										end
3098
									end
3099
								end
3100
								for E = 1, #PARTICLES do
3101
									PARTICLES[E].Enabled = false
3102
								end
3103
								for E = 1, #AFFECTEDPARTS do
3104
									Debris:AddItem(AFFECTEDPARTS[E], 1.75)
3105
								end
3106
							end))
3107
						end
3108
					end
3109
				end
3110
			end
3111
		end
3112
	end
3113
	refit()
3114
	HALO.Transparency = 0
3115
end