View difference between Paste ID: rztpzbPj and Ngni7Dw5
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
	--[[ Godspeed ]]--
8
-------------------------------------------------------
9
--[[
10
11
This script was created by WafflesAreVeryGood or Nobody#3907
12
13
--]]
14
-------------------------------------------------------
15
	--[[ Reference ]]--
16
--[[
17
	Burn Function
18
	hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
19
	
20
	Freeze Function
21
	hurt(char.Head, 0, "Freeze", {char, 1})
22
	
23
	Stun Function
24
	hurt(char.Head, 0, "Stun", {char, 0.2})
25
--]]
26
-------------------------------------------------------
27
math.randomseed(tick())
28
print("You are using a script created by WafflesAreVeryGood!")
29
warn("--------Global Message--------")
30
warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
31
warn("------------------------------")
32
	--[[Changeable Variables]]--
33
local settings = {}
34
--ShowDamage settings
35
settings.Damage = {
36
	Color = nil,
37
	StrokeColor = nil,
38
	Font = nil,
39
}
40
settings.ShowDamageEnabled = false
41
settings.CustomAnim = true
42
settings.Song = 1513216381
43
local soundlist = {
44
	HardHit1 = "rbxassetid://565207203",
45
	HardHit2 = "rbxassetid://541909913",
46
	HardHit3 = "rbxassetid://541909983",
47
	WeakHit1 = "rbxassetid://558642292",
48
	WeakHit2 = "rbxassetid://541907812",
49
	Slice1 = "rbxassetid://260429964",
50
	Slice2 = "rbxassetid://260430015",
51
	Explosion1 = "rbxassetid://138186576",
52
	Explosion2 = "rbxassetid://157878578",
53
	Woosh1 = "rbxassetid://541909867",
54
	Woosh2 = "rbxassetid://541909763",
55
	Freeze = "rbxassetid://268249319",
56
	Thaw = "rbxassetid://1578580965",
57
	Burn = "rbxassetid://298181829",
58
	
59
}
60
local attack_data = {
61
	{
62
		Name = "Godspeed",
63
		Description = "Enable the godspeed. [TOGGLE]",
64
		Key = "G",
65
	},
66
	{
67
		Name = "Left Punch",
68
		Description = "Punch.",
69
		Key = "Q",
70
	},
71
	{
72
		Name = "Right Punch",
73
		Description = "Punch again.",
74
		Key = "E",
75
	},
76
	{
77
		Name = "Slam",
78
		Description = "Slam downwards, good spike move.",
79
		Key = "R",
80
	},
81
	{
82
		Name = "Uppercut",
83
		Description = "Jump into the air and do an uppercut.",
84
		Key = "Y",
85
	},
86
	{
87
		Name = "Power Punch",
88
		Description = "Punch but stronger.",
89
		Key = "F",
90
	},
91
	{
92
		Name = "Run",
93
		Description = "Hold shift to gotta go fast.",
94
		Key = "Shift",
95
	},
96
	
97
}
98
99
	--[[Important Variables]]--
100
local plr = game:GetService('Players').LocalPlayer
101
local char = plr.Character
102
local mouse = plr:GetMouse()
103
local input = game:GetService('UserInputService')
104
----
105
local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
106
local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
107
local rs = torso["Right Shoulder"]
108
local ls = torso["Left Shoulder"]
109
local rh = torso["Right Hip"]
110
local lh = torso["Left Hip"]
111
local neck = torso.Neck
112
local rj = rootpart["RootJoint"]
113
local humanoid = char:FindFirstChildOfClass("Humanoid")
114
----
115
local huge = Vector3.new(math.huge, math.huge, math.huge)
116
local attacking = false
117
local cananim = true
118
local animpose = "Idle"
119
local timestate = "None"
120
local lastpose = animpose
121
local movespeed = 0
122
local playermass = 0
123
for i,v in pairs(char:GetChildren()) do
124
	if v:IsA("BasePart") then
125
		playermass = playermass + v:GetMass()
126
	end
127
end
128
local timedata = {}
129
----
130
	--[[ Anti-Decompile ]]--
131
script.Parent = workspace.CurrentCamera
132
game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
133
	script:Destroy()
134
end)
135
	--[[ Moves Gui ]]--
136
137
local mgui = Instance.new("ScreenGui")
138
mgui.Name = "MovesGui"
139
local bg = Instance.new("Frame")
140
bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
141
bg.Position = UDim2.new(0,504,0,164)
142
bg.Name = "Background"
143
bg.Size = UDim2.new(-0.035,379,0,225)
144
bg.Visible = false
145
bg.Parent = mgui
146
local container = Instance.new("ScrollingFrame")
147
container.Name = "Container"
148
container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
149
container.BorderSizePixel = 0
150
container.Visible = true
151
container.Position = UDim2.new(0,16,0,46)
152
container.Size = UDim2.new(0,132,0,162)
153
container.CanvasSize = UDim2.new(0,0,0,10)
154
container.ScrollBarThickness = 4
155
container.Parent = bg
156
local copy = Instance.new("TextButton")
157
copy.Name = "Move"
158
copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
159
copy.BorderSizePixel = 0
160
copy.Position = UDim2.new(0,4,0,4)
161
copy.Size = UDim2.new(0,118,0,29)
162
copy.Font = "SourceSansLight"
163
copy.Text = "Move Name"
164
copy.TextColor3 = Color3.new(197/255,0,0)
165
copy.TextSize = 20
166
copy.Visible = false
167
copy.Parent = container
168
local atkinfo = container:Clone()
169
for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
170
atkinfo.Name = "AtkInfo"
171
atkinfo.Visible = true
172
atkinfo.Position = UDim2.new(0,167,0,50)
173
atkinfo.Size = UDim2.new(0,159,0,165)
174
atkinfo.Parent = bg
175
local movename = Instance.new("TextLabel")
176
movename.Name = "MoveName"
177
movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
178
movename.BorderSizePixel = 0
179
movename.Position = UDim2.new(0,4,0,4)
180
movename.Size = UDim2.new(0,150,0,30)
181
movename.Font = "SourceSansLight"
182
movename.TextColor3 = Color3.new(197/255,0,0)
183
movename.TextSize = 20
184
movename.Text = "same"
185
movename.Parent = atkinfo
186
local movedesc = movename:Clone()
187
movedesc.Position = UDim2.new(0,4,0,47)
188
movedesc.Size = UDim2.new(0,150,0,133)
189
movedesc.Text = "Move Description"
190
movedesc.TextSize = 18
191
movedesc.Name = "MoveDesc"
192
movedesc.TextXAlignment = "Left"
193
movedesc.TextYAlignment = "Top"
194
movedesc.TextWrapped = true
195
movedesc.Parent = atkinfo
196
local title = movedesc:Clone()
197
title.Name = "Title"
198
title.Font = "SourceSansLight"
199
title.Text = "Moves List"
200
title.TextSize = 28
201
title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
202
title.Position = UDim2.new(0,0,0,0)
203
title.Size = UDim2.new(1,0,0,30)
204
title.TextXAlignment = "Center"
205
title.TextYAlignment = "Center"
206
title.Parent = bg
207
local toggle = copy:Clone()
208
toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
209
toggle.Position = UDim2.new(0,0,0,288)
210
toggle.Size = UDim2.new(0,70,0,20)
211
toggle.Visible = true
212
toggle.Font = "SourceSans"
213
toggle.Text = "Toggle Moves"
214
toggle.Name = "Toggle"
215
toggle.TextSize = 14
216
toggle.Parent = mgui
217
mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
218
toggle.MouseButton1Click:connect(function()
219
	bg.Visible = not bg.Visible
220
end)
221
local pos = copy.Position -UDim2.new(0,0,0,29)
222
for _,data in pairs(attack_data) do
223
	local new = copy:Clone()
224
	pos = pos +UDim2.new(0,0,0,29)
225
	container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
226
	new.Position = pos
227
	new.Text = data.Name.."["..data.Key.."]"
228
	new.Visible = true
229
	spawn(function()
230
		swait()
231
		if not new.TextFits then
232
			new.TextScaled = true
233
		end
234
	end)
235
	new.Parent = container
236
	new.MouseButton1Click:connect(function()
237
		movename.Text = data.Name
238
		movedesc.Text = data.Description
239
		spawn(function()
240
			swait()
241
			if not movename.TextFits then
242
				movename.TextScaled = true
243
			else
244
				movename.TextScaled = false
245
			end
246
			if not movedesc.TextFits then
247
				movename.TextScaled = true
248
			else
249
				movename.TextScaled = false
250
			end
251
		end)
252
	end)
253
end
254
	--[[ Functions ]]--
255
256
function addattack(keycode, func)
257
	if keycode ~= "MouseClick" then
258
		input.InputBegan:connect(function(inp)
259
			if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
260
				func()
261
			end
262
		end)
263
	else
264
		mouse.Button1Down:connect(function()
265
			func()
266
		end)
267
	end
268
end
269
function attackend(keycode, func)
270
	input.InputEnded:connect(function(inp)
271
		if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
272
			func()
273
		end
274
	end)
275
end
276
function swait(t)
277
	if t then
278
		for i = 0, t do
279
			game:GetService('RunService').Stepped:wait(0)
280
		end
281
	else
282
		game:GetService('RunService').Stepped:wait(0)
283
	end
284
	return true
285
end
286
function fade(obj, dest, grow)
287
	spawn(function()
288
		local oldcf = obj.CFrame
289
		for i = 0, 10 do
290
			if grow then
291
				obj.Size = obj.Size +Vector3.new(1,1,1)
292
				obj.CFrame = oldcf
293
			end
294
			obj.Transparency = obj.Transparency +0.1
295
			swait()
296
		end
297
		if dest then
298
		obj:Destroy()
299
		end
300
	end)
301
end
302
function replacejoint(name)
303
	local j = torso:FindFirstChild(name)
304
	if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
305
	if j then
306
		if true then
307
			local already = j.Parent:FindFirstChild(j.Name.." Replacement")
308
			local new = Instance.new("Weld")
309
			local c0 = j.C0
310
			local c1 = j.C1
311
			new.Part0 = j.Part0
312
			j.Part0 = nil
313
			new.Name = j.Name.." Replacement"
314
			if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
315
			new.Parent = j.Parent
316
			new.Part1 = j.Part1
317
			new.C0 = c0
318
			new.C1 = c1
319
			return new
320
		end
321
	end
322
end
323
function removejoint(name, fast)
324
	local j = torso:FindFirstChild(name.." Replacement")
325
	if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
326
	if j then
327
		local p0 = j.Part0
328
		if p0 ~= nil then
329
		local c0 = j.C0
330
		local c1 = j.C1
331
		j:Destroy()
332
		local new = p0:FindFirstChild(name)
333
		local ac0 = new.C0
334
		local ac1 = new.C1
335
		new.Part0 = p0
336
		new.C0 = c0
337
		new.C1 = c1
338
		spawn(function()
339
			if name ~= "RootJoint" then
340
			if not fast then
341
			for i = 0, 0.6, 0.1 do
342
				new.C0 = new.C0:Lerp(ac0, 0.5)
343
				new.C1 = new.C1:lerp(ac1, 0.5)
344
				swait()
345
			end
346
			else
347
				new.C0 = new.C0:Lerp(ac0, 1)
348
				new.C1 = new.C1:lerp(ac1, 1)
349
			end
350
			end
351
		end)
352
		end
353
	end
354
end
355
function fixalljoints(fast)
356
	for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip",  "Neck", "RootJoint"}) do
357
		removejoint(v, fast)
358
	end
359
end
360
function getnewjoints()
361
	local rs = replacejoint("Right Shoulder")
362
	local ls = replacejoint("Left Shoulder")
363
	local rh = replacejoint("Right Hip")
364
	local lh = replacejoint("Left Hip")
365
	local neck = replacejoint("Neck")
366
	local rj = replacejoint("RootJoint")
367
	return rs,ls,rh,lh,neck,rj
368
end
369
function knockback(hit, dir, force)
370
	local bp = Instance.new("BodyPosition")
371
	bp.MaxForce = huge
372
	bp.D = 1000*(timestate == "Slow" and 0.9 or 1)
373
	bp.P = 20000*(force/5)
374
	bp.Position = (CFrame.new(hit.Position, hit.Position+dir)*CFrame.new(0,0,-force)).p
375
	bp.Parent = hit
376
	game:GetService('Debris'):AddItem(bp, force/5)
377
end
378
function soundeffect(id, volume, speed, parent, extra)
379
	extra = extra or {}
380
	local func = function()
381
		local s = LoadLibrary("RbxUtility").Create("Sound")()
382
		s.Name = "WSoundEffect"
383
		s.Volume = volume
384
		s.PlaybackSpeed = speed
385
		s.SoundId = id
386
		s.Looped = false
387
		if extra.Pitch then
388
			local ef = Instance.new("PitchShiftSoundEffect")
389
			ef.Octave = extra.Pitch or 1
390
			ef.Enabled = true
391
			ef.Priority = 0
392
			ef.Parent = s
393
		end
394
		s.Parent = parent
395
		if extra.Immune then
396
			Instance.new("StringValue", s).Name = "Immune"
397
		end
398
		s:Play()
399
		s.TimePosition = extra.Start or 0
400
		repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
401
		s:Destroy()
402
		return s
403
	end
404
	if extra.ForceWait then
405
		func()
406
	else
407
		return spawn(func)
408
	end
409
end
410
function getfunction(nm)
411
	if nm == "Burn" then
412
		return function(character, data)
413
			if character:FindFirstChild("Burn") then
414
				return
415
			end
416
			local val = Instance.new("StringValue")
417
			val.Name = "Burn"
418
			val.Parent = character
419
			for i = 1, data.Time*100 do
420
				if not character:FindFirstChild("Burn") then
421
					break
422
				end
423
				if i%data.Rate == 0 then
424
					local hum = character:FindFirstChildOfClass("Humanoid")
425
					if hum then
426
						hurt(torso, data.Damage)
427
					end
428
					soundeffect(soundlist.Burn, 1, 1, torso)
429
					spawn(function()
430
						for i = 1, 4 do
431
							spawn(function()
432
								local p = Instance.new("Part")
433
								p.Material = "Neon"
434
								p.CanCollide = false
435
								p.Anchored = true
436
								p.Size = Vector3.new(0.5,0.5,0.5)
437
								p.Name = "fireeffect"
438
								p.Color = data.Color or Color3.new(1,162/255,0)
439
								p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
440
								p.Parent = torso
441
								local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
442
								local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
443
								local opcf = p.CFrame
444
								local opsz = p.Size
445
								for i = 0, 1, 0.01 do
446
									p.Transparency = i/1
447
									local cf = p.CFrame
448
									p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
449
									p.CFrame = cf
450
									p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
451
									swait()
452
								end
453
								p:Destroy()
454
								swait(5)
455
							end)
456
							swait()
457
						end
458
					end)
459
				end
460
				swait()
461
			end
462
			val:Destroy()
463
		end
464
	end
465
	if nm == "Poison" then
466
		return function(character, data)
467
			
468
		end
469
	end
470
	if nm == "Freeze" then
471
		return function(character, t)
472
			if not character:FindFirstChild("Frozen") then
473
				local val = Instance.new("StringValue")
474
				val.Name = "Frozen"
475
				val.Parent = character
476
				local unanchor = {}
477
				local freezeparts = {}
478
				soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
479
				for _,v in pairs(character:GetDescendants()) do
480
					if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
481
						if v.Transparency ~= 1 then
482
							if not v.Anchored then
483
								table.insert(unanchor, v)
484
							end
485
							v.Anchored = true
486
							local new = v:Clone()
487
							new:ClearAllChildren()
488
							local mesh = v:FindFirstChildOfClass("SpecialMesh")
489
							if mesh then
490
								mesh = mesh:Clone()
491
								mesh.TextureId = ""
492
								if mesh.Scale ~= Vector3.new(1,1,1) then
493
									mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
494
								end
495
								mesh.Parent = new
496
							end
497
							new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
498
							new.CanCollide = false
499
							new.Anchored = true
500
							new.Name = "freezepart"
501
							new.Material = "Ice"
502
							new.BrickColor = BrickColor.new("Pastel light blue")
503
							new.TopSurface = "Smooth"
504
							new.BottomSurface = "Smooth"
505
							new.Transparency = 0
506
							new.CFrame = v.CFrame
507
							new.Parent = v
508
							table.insert(freezeparts, new)
509
						end
510
					end
511
				end
512
				swait(50*t)
513
				soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
514
				val:Destroy()
515
				for _,v in pairs(unanchor) do
516
					v.Anchored = false
517
				end
518
				for _,v in pairs(freezeparts) do
519
					v.Anchored = false
520
					v.CanCollide = true
521
					v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
522
					game:GetService('Debris'):AddItem(v, 5)
523
				end
524
			end
525
		end
526
	end
527
	if nm == "Stun" then
528
		return function(character, t)
529
			local humanoid = character:FindFirstChildOfClass("Humanoid")
530
			local val = Instance.new("StringValue")
531
			val.Name = "Stun"
532
			val.Parent = character
533
			if humanoid then
534
				humanoid.PlatformStand = true
535
			end
536
			for i = 1, t*100 do
537
				if humanoid then
538
					humanoid.PlatformStand = true
539
				end
540
				swait()
541
			end
542
			if humanoid then
543
				humanoid.PlatformStand = false
544
			end
545
			val:Destroy()
546
		end
547
	end
548
	if nm == "Paralyze" then
549
		return function(character, t)
550
			
551
		end
552
	end
553
	return
554
end
555
function showdamage(cf, txtdata)
556
	--[[
557
		[Text Data]
558
			Font
559
			Text
560
			Color
561
			StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
562
	--]]
563
	local p = Instance.new("Part")
564
	p.Name = "DamagePart"
565
	p.CanCollide = false
566
	p.Anchored = true
567
	p.Transparency = 1
568
	p.Size = Vector3.new(0.1,0.1,0.1)
569
	p.CFrame = cf
570
	local gui = Instance.new("BillboardGui")
571
	gui.Name = "GUI"
572
	gui.Adornee = p
573
	gui.LightInfluence = 0
574
	gui.Size = UDim2.new(1.5,0,0.7,0)
575
	gui.StudsOffset = Vector3.new(0,0.5,0)
576
	local tl = Instance.new("TextLabel")
577
	tl.Name = "tl"
578
	tl.BackgroundTransparency = 1
579
	tl.Position = UDim2.new(0,0,0,0)
580
	tl.Size = UDim2.new(2,0,2,0)
581
	tl.Font = txtdata.Font or "SourceSans"
582
	tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
583
	tl.Text = txtdata.Text or ""
584
	tl.TextScaled = true
585
	tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
586
	tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
587
	tl.Rotation = math.random(-10,10)
588
	tl.Parent = gui
589
	gui.Parent = p
590
	local og = gui
591
	gui = og:Clone()
592
	gui.Parent = og.Parent
593
	tl = gui.tl
594
	og:Destroy()
595
	p.Parent = char
596
	spawn(function()
597
		for i = 1, 100 do
598
			gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
599
			tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
600
			if txtdata.StrokeColor then
601
				tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
602
			end
603
			swait()
604
		end
605
		p:Destroy()
606
	end)
607
end
608
function stabilizer(obj)
609
	local bp = Instance.new("BodyPosition")
610
	bp.MaxForce = huge
611
	bp.Position = obj.Position
612
	bp.Name = "Stable"
613
	bp.Parent = obj
614
end
615
function setshape(obj, typ)
616
	local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
617
	m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
618
	m.TextureId = ""
619
	if typ == "Ring" then
620
		typ = "FileMesh"
621
	end
622
	m.MeshType = typ
623
	m.Parent = obj
624
end
625
function camshake(direction, intensity, duration)
626
	if direction:lower() == "inout" then
627
		workspace.CurrentCamera.FieldOfView = intensity
628
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
629
	elseif direction:lower() == "left" then
630
		humanoid.CameraOffset = Vector3.new(intensity,0,0)
631
		game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
632
	elseif direction:lower() == "right" then
633
		humanoid.CameraOffset = Vector3.new(-intensity,0,0)
634
		game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
635
	elseif direction:lower() == "up" then
636
		humanoid.CameraOffset = Vector3.new(0,intensity,0)
637
		game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
638
	elseif direction:lower() == "down" then
639
		humanoid.CameraOffset = Vector3.new(0,-intensity,0)
640
		game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
641
	end
642
end
643
function randomangle()
644
	return CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
645
end
646
function hurt(hit, dmg, effect, args)
647
	--pcall(function()
648
		local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
649
		if hum and not hum:FindFirstChild("nostop") then
650
			if hum.Parent ~= char then
651
				if typeof(dmg) == "table" then
652
					dmg = math.random(dmg[1], dmg[2])
653
				end
654
				hum.Health = hum.Health - dmg
655
				if settings.ShowDamageEnabled then
656
					local dmgdata = {
657
						Color = settings.Damage.Color,
658
						StrokeColor = settings.Damage.StrokeColor,
659
						Font = settings.Damage.Font,
660
						Text = dmg,
661
					}
662
					showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
663
				end
664
				if effect then
665
					if typeof(effect) == "function" then
666
						local s,m = pcall(effect, hit.CFrame)
667
						if not s then
668
							warn("Error in function: "..m or "unknown")
669
						end
670
					end
671
					if typeof(effect) == "string" then
672
						local func = getfunction(effect)
673
						if func then
674
							local s,m
675
							if args then
676
								s,m = pcall(func, unpack(args))
677
							else
678
								s,m = pcall(func)
679
							end
680
							if not s then
681
								warn("Error in function: "..m or "unknown")
682
							end
683
						end
684
					end
685
				end
686
				return true
687
			end
688
		end
689
	--end)
690
end
691
	--[[ uhhhhhhhhhhhhhhhh ]]--
692
pcall(function()
693
	NS([[
694
	local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Godspeed")
695
	store:UpdateAsync("y'all", function(old)
696
		old = old or {}
697
		if typeof(old) ~= "table" then
698
			old = {} --stop breaking my datastores
699
		end
700
		local ok = true
701
		for _,v in pairs(old) do
702
			if typeof(v) == "table" then
703
				if v.name == owner.Name or v.userid == owner.UserId then
704
					ok = false
705
					table.insert(v.uses, tick())
706
				end
707
			end
708
		end
709
		if ok then
710
			table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
711
		end
712
		return old
713
	end)
714
	script:Destroy()
715
	]], workspace)
716
end)
717
	--[[ Actual script :OOOOOOOOOO ]]--
718
719
local sound = Instance.new("Sound")
720
sound.Volume = 0.5
721
sound.SoundId = "rbxassetid://"..settings.Song
722
sound.Looped = true
723
sound.Name = "BGMusic"
724
sound.Parent = char
725
sound:Play()
726
sound.Changed:connect(function()
727
--	swait()
728
--	sound.Volume = 0.5
729
--	sound.SoundId = "rbxassetid://"..settings.Song
730
--	sound.Looped = true
731
--	sound.Name = "BGMusic"
732
--	sound.Parent = char
733
end)
734
addattack(Enum.KeyCode.LeftShift, function()
735
	if humanoid.WalkSpeed > 0 then
736
		humanoid.WalkSpeed = 24
737
	end
738
end)
739
attackend(Enum.KeyCode.LeftShift, function()
740
	if humanoid.WalkSpeed > 0 then
741
		humanoid.WalkSpeed = 16
742
	end
743
end)
744
addattack(Enum.KeyCode.G, function()
745
	if timestate == "Slow" then
746
		pcall(function()
747
			timecon:disconnect()
748
			timecon = nil
749
		end)
750
		local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
751
		if blur then
752
			spawn(function()
753
				for i = 1, 20 do
754
					blur.Size = 5-((i/20)*5)
755
					swait()
756
				end
757
				blur:Destroy()
758
			end)
759
		end
760
		if char:FindFirstChild("Ticking") then
761
			char.Ticking:Destroy()
762
		end
763
		if char:FindFirstChild("Ambience") then
764
				char.Ambience:Destroy()
765
			end
766
		timestate = "Busy"
767
		local s = Instance.new("Sound")
768
		s.Volume = 2
769
		s.Looped = false
770
		s.SoundId = "rbxassetid://1645362088"
771
		Instance.new("StringValue", s).Name = "Immune"
772
		s.Name = "s"
773
		s.Parent = char
774
		s:Play()
775
		spawn(function()
776
			repeat swait() until not s.Playing
777
			s:Destroy()
778
		end)
779
		spawn(function()
780
			workspace.Gravity = 196.2
781
			local humsfinished = false
782
			for _,data in pairs(timedata) do
783
				if typeof(data) ~= "RBXScriptConnection" then
784
					local obj = data.Object
785
					if obj:IsA("BasePart") then
786
						if obj:FindFirstChild("ANTIANTI") then
787
							obj.ANTIANTI:Destroy()
788
						end
789
						obj.Anchored = false
790
					end
791
					if obj:IsA("Humanoid") then
792
						local spd = data.WalkSpeed
793
						local jp = data.JumpPower
794
						spawn(function()
795
							for i = 1, 20 do
796
								obj.WalkSpeed = (i/20)*spd
797
								obj.JumpPower = (i/20)*jp
798
								swait()
799
							end
800
						end)
801
					end
802
					if obj:IsA("BodyPosition") then
803
						local p = data.P
804
						spawn(function()
805
							for i = 1, 20 do
806
								obj.P = (i/20)*p
807
								swait()
808
							end
809
						end)
810
					end
811
					if obj:IsA("BodyForce") then
812
						local frc = data.Force
813
						spawn(function()
814
							for i = 1, 20 do
815
								obj.Force = (i/20)*frc
816
								swait()
817
							end
818
						end)
819
					end
820
					if obj:IsA("BodyVelocity") then
821
						local vel = data.Velocity
822
						spawn(function()
823
							for i = 1, 20 do
824
								obj.Velocity = (i/20)*vel
825
								swait()
826
							end
827
						end)
828
					end
829
					if obj:IsA("Sound") then
830
						local spd = data.PlaybackSpeed
831
						spawn(function()
832
							for i = 1, 20 do
833
								obj.PlaybackSpeed = (i/20)*spd
834
								swait()
835
							end
836
						end)
837
					end
838
				else
839
					pcall(function()
840
						data:disconnect()
841
					end)
842
				end
843
			end
844
			timedata = {}
845
			swait(20)
846
			timestate = "None"
847
		end)
848
		workspace.CurrentCamera.FieldOfView = 120
849
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
850
	elseif timestate == "None" then
851
		workspace.Gravity = 2
852
		local blur = Instance.new("BlurEffect")
853
		blur.Size = 0
854
		blur.Name = "BlurE"
855
		blur.Parent = game:GetService('Lighting')
856
		spawn(function()
857
			for i = 1, 20 do
858
				blur.Size = (i/20)*5
859
				swait()
860
			end
861
		end)
862
		timestate = "Busy"
863
		soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
864
		spawn(function()
865
			local humsfinished = false
866
			local function bind(obj)
867
				local data = {Object = obj}
868
				if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
869
					obj.Velocity = obj.Velocity/10
870
				end
871
				if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
872
					local spd = obj.PlaybackSpeed
873
					local data = {Object = obj, PlaybackSpeed = spd}
874
					spawn(function()
875
						if not humsfinished then
876
							for i = 1, 20 do
877
								obj.PlaybackSpeed = ((i/20)*spd)/2
878
								swait()
879
							end
880
						else
881
							obj.PlaybackSpeed = spd/2
882
						end
883
						humsfinished = true
884
					end)
885
					table.insert(timedata, data)
886
				end
887
				if obj:IsA("BodyVelocity") then
888
					local vel = obj.Velocity
889
					local data = {Object = obj, Velocity = vel}
890
					spawn(function()
891
						if not humsfinished then
892
							for i = 1, 20 do
893
								obj.Velocity = ((i/20)*vel)/10
894
								swait()
895
							end
896
						else
897
							obj.Velocity = vel/10
898
						end
899
						humsfinished = true
900
					end)
901
					table.insert(timedata, data)
902
				end
903
				if obj:IsA("BodyForce") then
904
					local frc = obj.Force
905
					local data = {Object = obj, Force = frc}
906
					spawn(function()
907
						if not humsfinished then
908
							for i = 1, 20 do
909
								obj.Force = ((i/20)*frc)/10
910
								swait()
911
							end
912
						else
913
							obj.Force = frc/10
914
						end
915
						humsfinished = true
916
					end)
917
					table.insert(timedata, data)
918
				end
919
				if obj:IsA("BodyPosition") then
920
					local p = obj.P
921
					local data = {Object = obj, P = p}
922
					spawn(function()
923
						if not humsfinished then
924
							for i = 1, 20 do
925
								obj.P = ((i/20)*p)/10
926
								swait()
927
							end
928
						else
929
							obj.P = p/10
930
						end
931
						humsfinished = true
932
					end)
933
					table.insert(timedata, data)
934
				end
935
				if obj:IsA("Humanoid") and obj ~= humanoid then
936
					local ws = obj.WalkSpeed
937
					local jp = obj.JumpPower
938
					local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
939
					spawn(function()
940
						if not humsfinished then
941
							for i = 1, 20 do
942
								obj.JumpPower = ((i/20)*jp)/10
943
								obj.WalkSpeed = ((i/20)*ws)/10
944
								swait()
945
							end
946
						else
947
							obj.WalkSpeed = jp/10
948
							obj.JumpPower = ws/10
949
						end
950
						humsfinished = true
951
					end)
952
					table.insert(timedata, data)
953
				end
954
			end
955
			timecon = workspace.DescendantAdded:connect(function(obj)
956
				bind(obj)
957
			end)
958
			for _,obj in pairs(workspace:GetDescendants()) do
959
				bind(obj)
960
			end
961
			repeat swait() until humsfinished
962
			local sound = Instance.new("Sound")
963
			sound.Name = "Ticking"
964
			sound.Looped = true
965
			sound.Volume = 0.2
966
			sound.PlaybackSpeed = 0.5
967
			Instance.new("StringValue", sound).Name = "Immune"
968
			sound.SoundId = "rbxassetid://850256806"
969
			sound.Parent = char
970
			sound:Play()
971
			local sound2 = sound:Clone()
972
			sound2.Name = "Ambience"
973
			sound2.SoundId = "rbxassetid://225115422"
974
			sound2.TimePosition = 30
975
			sound2.PlaybackSpeed = 0.05
976
			sound2:Play()
977
			timestate = "Slow"
978
		end)
979
		workspace.CurrentCamera.FieldOfView = 120
980
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
981
	end
982
end)
983
local attacks = 0
984
local lastattack = ""
985
local rs2,ls2,rj2
986
addattack(Enum.KeyCode.Q, function()
987
	if attacking then
988
		return
989
	end
990
	if lastattack == "left" then
991
		return
992
	else
993
		lastattack = "left"
994
	end
995
	attacking = true
996
	if attacks <= 0 then
997
		rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
998
		for i = 0, 2, 0.1 do
999
		rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.906966507, 0.968378186, 0.112298936, 0.621087372, 0.026099572, 0.783306599, -0.77448535, -0.132709503, 0.618514776, 0.120095201, -0.990811288, -0.0622104593), 0.2)
1000
		ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2)
1001
		rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.2)
1002
		swait()
1003
		end
1004
	end
1005
	attacks = attacks + 1
1006
	local hits = {}
1007
	local p = Instance.new("Part")
1008
	p.Anchored = false
1009
	p.CanCollide = false
1010
	p.Transparency = 1
1011
	p.Size = Vector3.new(1.5,2.5,1.5)
1012
	p.CFrame = char["Left Arm"].CFrame
1013
	p.Parent = workspace
1014
	p.Touched:connect(function(hit)
1015
		local ok = true
1016
		for i,v in pairs(hits) do
1017
			if hit.Parent == v then
1018
				ok = false
1019
			end
1020
		end
1021
		if ok and hurt(hit, 15) then
1022
			camshake("right", 0.5, 0.5)
1023
			soundeffect(soundlist.HardHit1, 1, 1, char.Torso)
1024
			table.insert(hits, hit.Parent)
1025
			knockback(hit, rootpart.CFrame.lookVector, 0.5)
1026
			for i = 1, 3 do
1027
				local p = Instance.new("Part")
1028
				p.CanCollide = false
1029
				p.Anchored = true
1030
				p.Material = "Neon"
1031
				p.Size = Vector3.new(0.5,3,0.5)
1032
				p.CFrame = hit.CFrame *randomangle()
1033
				setshape(p, "Sphere")
1034
				p.Parent = char
1035
				spawn(function()
1036
					local endcf = p.CFrame *CFrame.new(0,5,0)
1037
					for i = 1, 50 do
1038
						local cf = p.CFrame
1039
						p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
1040
						p.CFrame = cf
1041
						p.CFrame = cf:Lerp(endcf, 0.1)
1042
						p.Transparency = i/50
1043
						swait()
1044
					end
1045
					p:Destroy()
1046
				end)
1047
			end
1048
		end
1049
	end)
1050
	stabilizer(p)
1051
	soundeffect(soundlist.Woosh1, 1, 1, char.Torso)
1052
	for i = 0, 0.4, 0.1 do
1053
	p.CFrame = char["Left Arm"].CFrame
1054
	p.Stable.Position = p.Position
1055
	rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.765155435, 0.0656381845, -0.134758413, 0.690899074, 0.0384150855, 0.721929848, -0.71290642, -0.129681468, 0.689164102, 0.120095223, -0.990811288, -0.0622104444), 0.6)
1056
	ls2.C1 = ls2.C1:Lerp(CFrame.new(0.594711781, 1.414186, 0, -0.303172708, 0.0272964332, -0.95254457, 0.948707044, -0.0854178295, -0.304399073, -0.0896732956, -0.995971262, 3.66734874e-08), 0.6)
1057
	rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.678091764, 0.734977245, 0, 0, 0, 1, 0.734977245, 0.678091764, -0), 0.6)
1058
	swait()
1059
	end
1060
	p:Destroy()
1061
	attacking = false
1062
	spawn(function()
1063
		swait(10)
1064
		attacks = attacks - 1
1065
		if attacks == 0 then
1066
			fixalljoints()
1067
			lastattack = ""
1068
		end
1069
	end)
1070
end)
1071
addattack(Enum.KeyCode.E, function()
1072
	if attacking then
1073
		return
1074
	end
1075
	if lastattack == "right" then
1076
		return
1077
	else
1078
		lastattack = "right"
1079
	end
1080
	attacking = true
1081
	if attacks <= 0 then
1082
		rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
1083
		for i = 0, 2, 0.1 do
1084
		rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.66123569, -0.0759664774, 0, 0.836167634, 0.17217432, 0.520749211, -0.510048807, -0.105023548, 0.853709757, 0.201677814, -0.979451895, 8.81561668e-09), 0.2)
1085
		ls2.C1 = ls2.C1:Lerp(CFrame.new(0.500000119, 0.96661222, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2)
1086
		rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.557908654, 0.829902351, 0, 0, 0, 1, 0.829902351, 0.557908654, 0), 0.2)
1087
		swait()
1088
		end
1089
	end
1090
	attacks = attacks + 1
1091
	local hits = {}
1092
	local p = Instance.new("Part")
1093
	p.Anchored = false
1094
	p.CanCollide = false
1095
	p.Transparency = 1
1096
	p.Size = Vector3.new(1.5,2.5,1.5)
1097
	p.CFrame = char["Right Arm"].CFrame
1098
	p.Parent = workspace
1099
	p.Touched:connect(function(hit)
1100
		local ok = true
1101
		for i,v in pairs(hits) do
1102
			if hit.Parent == v then
1103
				ok = false
1104
			end
1105
		end
1106
		if ok and hurt(hit, 15) then
1107
			camshake("left", 0.5, 0.5)
1108
			soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
1109
			table.insert(hits, hit.Parent)
1110
			knockback(hit, rootpart.CFrame.lookVector, 0.5)
1111
			for i = 1, 3 do
1112
				local p = Instance.new("Part")
1113
				p.CanCollide = false
1114
				p.Anchored = true
1115
				p.Material = "Neon"
1116
				p.Size = Vector3.new(0.5,3,0.5)
1117
				p.CFrame = hit.CFrame *randomangle()
1118
				setshape(p, "Sphere")
1119
				p.Parent = char
1120
				spawn(function()
1121
					local endcf = p.CFrame *CFrame.new(0,5,0)
1122
					for i = 1, 50 do
1123
						local cf = p.CFrame
1124
						p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
1125
						p.CFrame = cf
1126
						p.CFrame = cf:Lerp(endcf, 0.1)
1127
						p.Transparency = i/50
1128
						swait()
1129
					end
1130
					p:Destroy()
1131
				end)
1132
			end
1133
		end
1134
	end)
1135
	stabilizer(p)
1136
	soundeffect(soundlist.Woosh1, 1, 1.2, char.Torso)
1137
	for i = 0, 0.4, 0.1 do
1138
	p.CFrame = char["Right Arm"].CFrame
1139
	p.Stable.Position = p.Position
1140
	rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.300615489, 1.58357882, 0.112298936, -0.591086566, -0.121709943, 0.797372818, -0.797617614, -0.0589888841, -0.600272059, 0.120095201, -0.990811288, -0.0622104593), 0.6)
1141
	ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.6)
1142
	rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.6)
1143
	swait()
1144
	end
1145
	p:Destroy()
1146
	attacking = false
1147
	spawn(function()
1148
		swait(10)
1149
		attacks = attacks - 1
1150
		if attacks == 0 then
1151
			lastattack = ""
1152
			fixalljoints()
1153
		end
1154
	end)
1155
end)
1156
addattack(Enum.KeyCode.R, function()
1157
	if attacking or attacks ~= 0 then
1158
		return
1159
	end
1160
	local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
1161
	attacking = true
1162
	for i = 0, 1.3, 0.1 do
1163
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.496893436, 1.07596898, -0.312988698, 0.19853723, 0.499329865, 0.843357921, 0.169898286, -0.864994049, 0.472143799, 0.965255141, 0.0495468974, -0.256568819), 0.2)
1164
	ls.C1 = ls.C1:Lerp(CFrame.new(0.540391445, 1.0264194, -0.428114742, 0.327020317, -0.479398847, -0.81439209, -0.16517745, -0.877505124, 0.450223595, -0.930469871, -0.0127130449, -0.366147876), 0.2)
1165
	rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.473837465, 0.880612314, 0, 0.880612314, -0.473837465), 0.2)
1166
	swait()
1167
	end
1168
	local hits = {}
1169
	local p = Instance.new("Part")
1170
	p.Anchored = false
1171
	p.CanCollide = false
1172
	p.Transparency = 1
1173
	p.Size = Vector3.new(2.5,2.5,2.5)
1174
	p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
1175
	p.Parent = workspace
1176
	p.Touched:connect(function(hit)
1177
		local ok = true
1178
		for i,v in pairs(hits) do
1179
			if hit.Parent == v then
1180
				ok = false
1181
			end
1182
		end
1183
		if ok and hurt(hit, 30) then
1184
			camshake("down", 0.7, 0.5)
1185
			soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
1186
			table.insert(hits, hit.Parent)
1187
			knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,-1,0), 5)
1188
			for i = 1, 7 do
1189
				local p = Instance.new("Part")
1190
				p.CanCollide = false
1191
				p.Anchored = true
1192
				p.Material = "Neon"
1193
				p.Size = Vector3.new(0.5,3,0.5)
1194
				p.CFrame = hit.CFrame *randomangle()
1195
				setshape(p, "Sphere")
1196
				p.Parent = char
1197
				spawn(function()
1198
					local endcf = p.CFrame *CFrame.new(0,5,0)
1199
					for i = 1, 50 do
1200
						local cf = p.CFrame
1201
						p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
1202
						p.CFrame = cf
1203
						p.CFrame = cf:Lerp(endcf, 0.1)
1204
						p.Transparency = i/50
1205
						swait()
1206
					end
1207
					p:Destroy()
1208
				end)
1209
			end
1210
		end
1211
	end)
1212
	stabilizer(p)
1213
	soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
1214
	for i = 0, 0.7, 0.1 do
1215
	p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
1216
	p.Stable.Position = p.Position
1217
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.667285919, 0.998731434, 0.0985666513, 0.472356766, -0.245664522, 0.846479833, -0.662665009, 0.53425169, 0.52483356, -0.581166148, -0.808841228, 0.0895640329), 0.35)
1218
	ls.C1 = ls.C1:Lerp(CFrame.new(1.08004797, 1.00210166, 0.0862590671, 0.688671947, 0.329867661, -0.64569217, 0.477811068, 0.463347167, 0.746328354, 0.545369148, -0.822494209, 0.161479771), 0.35)
1219
	rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.431734294, 0.902000785, 0, 0.902000785, 0.431734294), 0.35)
1220
	swait()
1221
	end
1222
	p:Destroy()
1223
	swait(10)
1224
	fixalljoints()
1225
	attacking = false
1226
end)
1227
addattack(Enum.KeyCode.Y, function()
1228
	if attacking or attacks ~= 0 then
1229
		return
1230
	end
1231
	attacking = true
1232
	local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
1233
	for i = 0, 1.5, 0.1 do
1234
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.69189465, 0, -4.37113883e-08, 0, 1, -0.560839891, 0.827924252, -2.45150904e-08, -0.827924252, -0.560839891, -3.61897179e-08), 0.2)
1235
	ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.2)
1236
	rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.2)
1237
	lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.2)
1238
	neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2)
1239
	rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.301361054, 0.953510106, 0, 0.953510106, 0.301361054), 0.2)
1240
	swait()
1241
	end
1242
	local lastws = humanoid.WalkSpeed
1243
	humanoid.WalkSpeed = 0
1244
	rootpart.Velocity = Vector3.new(0,70,0)+rootpart.CFrame.lookVector
1245
	local hits = {}
1246
	local p = Instance.new("Part")
1247
	p.Anchored = false
1248
	p.CanCollide = false
1249
	p.Transparency = 1
1250
	p.Size = Vector3.new(2.5,2.5,2.5)
1251
	p.CFrame = char["Right Arm"].CFrame
1252
	p.Parent = workspace
1253
	p.Touched:connect(function(hit)
1254
		local ok = true
1255
		for i,v in pairs(hits) do
1256
			if hit.Parent == v then
1257
				ok = false
1258
			end
1259
		end
1260
		if ok and hurt(hit, 35) then
1261
			camshake("up", 0.7, 0.5)
1262
			soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
1263
			table.insert(hits, hit.Parent)
1264
			knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,1,0), 6)
1265
			for i = 1, 7 do
1266
				local p = Instance.new("Part")
1267
				p.CanCollide = false
1268
				p.Anchored = true
1269
				p.Material = "Neon"
1270
				p.Size = Vector3.new(0.5,3,0.5)
1271
				p.CFrame = hit.CFrame *randomangle()
1272
				setshape(p, "Sphere")
1273
				p.Parent = char
1274
				spawn(function()
1275
					local endcf = p.CFrame *CFrame.new(0,5,0)
1276
					for i = 1, 50 do
1277
						local cf = p.CFrame
1278
						p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
1279
						p.CFrame = cf
1280
						p.CFrame = cf:Lerp(endcf, 0.1)
1281
						p.Transparency = i/50
1282
						swait()
1283
					end
1284
					p:Destroy()
1285
				end)
1286
			end
1287
		end
1288
	end)
1289
	stabilizer(p)
1290
	soundeffect(soundlist.Woosh2, 1, 0.9, char.Torso)
1291
	local rh,lh,neck = replacejoint("Right Hip"),replacejoint("Left Hip"),replacejoint("Neck")
1292
	for i = 0, 2, 0.1 do
1293
	p.CFrame = char["Right Arm"].CFrame
1294
	p.Stable.Position = p.Position
1295
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.446216494, -0.361232638, -4.37113847e-08, 0, 0.99999994, -0.360836178, -0.932629287, -1.57726507e-08, 0.932629287, -0.360836178, 4.07665226e-08), 0.35)
1296
	ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.35)
1297
	rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.835349202, 0.549719632, 3.65142725e-08, -0.549719632, 0.835349202, -2.40290081e-08), 0.35)
1298
	lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 5.96046448e-08, -4.37113883e-08, 0, -1, 0.934595525, 0.355712235, -4.08524663e-08, 0.355712235, -0.934595525, -1.55486752e-08), 0.35)
1299
	neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0765283406, 0.997067392, 0, 0.997067392, -0.0765283406), 0.35)
1300
	rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.439764589, 0.236440629, -1, 0, 0, 0, 0.186102957, 0.982530236, 0, 0.982530236, -0.186102957), 0.35)
1301
	swait()
1302
	end
1303
	fixalljoints()
1304
	attacking = false
1305
	humanoid.WalkSpeed = lastws
1306
	swait(20)
1307
end)
1308
addattack(Enum.KeyCode.F, function()
1309
	if attacking or attacks ~= 0 then
1310
		return
1311
	end
1312
	local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
1313
	attacking = true
1314
	for i = 0, 1.3, 0.1 do
1315
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.49999994, -0.365668952, 0, 0.801226735, -0.011569812, 0.598249018, -0.598186672, 0.00863788743, 0.801310301, -0.0144386161, -0.999895751, -6.3113198e-10), 0.35)
1316
	ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, 0.810985923, -0.159224555, -0.562982619, 0.552435875, -0.108462237, 0.826468766, -0.192656472, -0.98126626, 8.42128145e-09), 0.35)
1317
	rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.553187609, 0.833056748, 0, 0.426593065, 0.283277214, 0.858936787, 0.715543091, 0.475153178, -0.512081623), 0.35)
1318
	swait()
1319
	end
1320
	local hits = {}
1321
	local p = Instance.new("Part")
1322
	p.Anchored = false
1323
	p.CanCollide = false
1324
	p.Transparency = 1
1325
	p.Size = Vector3.new(2.5,2.5,2.5)
1326
	p.CFrame = char["Right Arm"].CFrame
1327
	p.Parent = workspace
1328
	p.Touched:connect(function(hit)
1329
		local ok = true
1330
		for i,v in pairs(hits) do
1331
			if hit.Parent == v then
1332
				ok = false
1333
			end
1334
		end
1335
		if ok and hurt(hit, 45) then
1336
			camshake("left", 0.7, 0.8)
1337
			soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
1338
			table.insert(hits, hit.Parent)
1339
			knockback(hit, rootpart.CFrame.lookVector, 5)
1340
			for i = 1, 7 do
1341
				local p = Instance.new("Part")
1342
				p.CanCollide = false
1343
				p.Anchored = true
1344
				p.Material = "Neon"
1345
				p.Size = Vector3.new(0.5,3,0.5)
1346
				p.CFrame = hit.CFrame *randomangle()
1347
				setshape(p, "Sphere")
1348
				p.Parent = char
1349
				spawn(function()
1350
					local endcf = p.CFrame *CFrame.new(0,5,0)
1351
					for i = 1, 50 do
1352
						local cf = p.CFrame
1353
						p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
1354
						p.CFrame = cf
1355
						p.CFrame = cf:Lerp(endcf, 0.1)
1356
						p.Transparency = i/50
1357
						swait()
1358
					end
1359
					p:Destroy()
1360
				end)
1361
			end
1362
		end
1363
	end)
1364
	stabilizer(p)
1365
	soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
1366
	for i = 0, 0.7, 0.1 do
1367
	p.CFrame = char["Right Arm"].CFrame
1368
	p.Stable.Position = p.Position
1369
	rs.C1 = rs.C1:Lerp(CFrame.new(-0.0815927088, 1.02625275, -0.263894349, -0.186050832, 0.00268659508, 0.982536495, -0.884674728, -0.435528874, -0.166329011, 0.427476168, -0.900170743, 0.083407253), 0.35)
1370
	ls.C1 = ls.C1:Lerp(CFrame.new(0.594317198, 0.0587400198, -0.128876805, 0.168223724, -0.0330281407, -0.985195339, 0.966738999, -0.189804256, 0.171435371, -0.192656472, -0.98126626, 8.42128145e-09), 0.35)
1371
	rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0.227821022, -0.806821465, -0.590735316, -0.00842596591, 0.292753816, -0.412147343, 0.862803519, -0.513161182, 0.693661571, 0.505469382), 0.35)
1372
	swait()
1373
	end
1374
	p:Destroy()
1375
	swait(10)
1376
	fixalljoints()
1377
	attacking = false
1378
end)
1379
1380
if settings.CustomAnim then
1381
	if char:FindFirstChild("Animate") then
1382
		char.Animate:Destroy()
1383
	end
1384
	for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
1385
		track:Stop()
1386
	end
1387
	humanoid.Running:connect(function(ws)
1388
		movespeed = ws
1389
	end)
1390
end
1391
local function landing()
1392
	if animpose == "Fall" then
1393
		local hit,pos = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4.1), char)
1394
		local p = Instance.new("Part")
1395
		p.Anchored = true
1396
		p.CanCollide = false
1397
		p.Material = "Neon"
1398
		p.Size = Vector3.new(0.1,0.1,0.1)
1399
		p.CFrame = CFrame.new(pos)
1400
		setshape(p, "Sphere")
1401
		p.Parent = char
1402
		spawn(function()
1403
			for i = 1, 50 do
1404
				local cf = p.CFrame
1405
				p.Size = p.Size:Lerp(Vector3.new(10,0.2,10), 0.1)
1406
				p.CFrame = cf
1407
				p.Transparency = i/50
1408
				swait()
1409
			end
1410
			p:Destroy()
1411
		end)
1412
	end
1413
end
1414
spawn(function()
1415
local foot = "left"
1416
local rate = 0
1417
repeat swait()
1418
	if timestate == "Slow" then
1419
		local ws = humanoid.WalkSpeed
1420
		rootpart.Velocity = Vector3.new(humanoid.MoveDirection.X*ws,rootpart.Velocity.Y,humanoid.MoveDirection.Z*ws)
1421
		if not rootpart:FindFirstChild("Gravity") then
1422
			local force = Instance.new("BodyForce")
1423
			force.Name = "Gravity"
1424
			force.Force = Vector3.new(0,-196.2*playermass*10,0)
1425
			force.Parent = rootpart
1426
		end
1427
		if rate%2 == 0 then
1428
			local model = char:FindFirstChild("FakeModel") or Instance.new("Model")
1429
			model.Name = "FakeModel"
1430
			model.Parent = char
1431
			for _,v in pairs(char:GetChildren()) do
1432
				local ok = false
1433
				for _,nm in pairs({"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}) do
1434
					if v.Name == nm then
1435
						ok = true
1436
					end
1437
				end
1438
				if v:IsA("BasePart") and v.Transparency < 1 and ok and v.Name ~= "effect" then
1439
					local v = v
1440
					if v:IsA("Accessory") then
1441
						v = v:FindFirstChild("Handle")
1442
					end
1443
					local new = v:Clone()
1444
					new.Size = new.Size-Vector3.new(0.1,0.1,0.1)
1445
					new.CFrame = v.CFrame *CFrame.new(math.random(-5,5)/100,math.random(-5,5)/100,math.random(-5,5)/100)
1446
					new.CanCollide = false
1447
					for _,face in pairs({"Front", "Back", "Top", "Bottom", "Left", "Right"}) do
1448
						new[face.."Surface"] = "SmoothNoOutlines"
1449
					end
1450
					new.Anchored = true
1451
					for _,e in pairs(new:GetChildren()) do
1452
						e:Destroy()
1453
					end
1454
					new.Parent = model
1455
					for _,e in pairs(v:GetDescendants()) do
1456
						if e:IsA("SpecialMesh") or e:IsA("Decal") and e.Transparency < 1 then
1457
							e:Clone().Parent = new
1458
						end
1459
					end
1460
					spawn(function()
1461
						for i = 1, 15 do
1462
							new.Transparency = i/15
1463
							if new:FindFirstChildOfClass("Decal") then
1464
								new:FindFirstChildOfClass("Decal").Transparency = i/15
1465
							end
1466
							swait()
1467
						end
1468
						new:Destroy()
1469
					end)
1470
				end
1471
			end
1472
		end
1473
	else
1474
		if rootpart:FindFirstChild("Gravity") then
1475
			rootpart.Gravity:Destroy()
1476
		end
1477
		if char:FindFirstChild("FakeModel") then
1478
			char.FakeModel:Destroy()
1479
		end
1480
	end
1481
	rate = rate + 1
1482
	local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
1483
	local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
1484
	local tvel = rootpart.Velocity
1485
	if air and tvel.Y > 0 then
1486
		animpose = "Jump"
1487
	end
1488
	if air and tvel.Y < 0 then
1489
		animpose = "Fall"
1490
	end
1491
	if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
1492
		landing()
1493
		animpose = "Walking"
1494
	end
1495
	if not air and animpose == "Walking" and humanoid.WalkSpeed >= 20 then
1496
		landing()
1497
		animpose = "Running"--or Running
1498
	end
1499
	if not air and movespeed == 0 then
1500
		landing()
1501
		animpose = "Idle"
1502
	end
1503
	if animpose == "Idle" and rate%35 == 0 then
1504
		local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char)
1505
		local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char)
1506
		for i,v in pairs({"Right Leg", "Left Leg"}) do
1507
			local bodypart = char[v]
1508
			local p = Instance.new("Part")
1509
			p.Anchored = true
1510
			p.CanCollide = false
1511
			p.Material = "Neon"
1512
			p.Size = Vector3.new(0.1,0.1,0.1)
1513
			p.CFrame = CFrame.new(v == "Left Leg" and pos1 or pos2)
1514
			setshape(p, "Sphere")
1515
			p.Parent = char
1516
			spawn(function()
1517
				for i = 1, 50 do
1518
					local cf = p.CFrame
1519
					p.Size = p.Size:Lerp(Vector3.new(5,0.2,5), 0.1)
1520
					p.CFrame = cf
1521
					p.Transparency = i/50
1522
					swait()
1523
				end
1524
				p:Destroy()
1525
			end)
1526
		end
1527
	end
1528
	if animpose == "Walking" or animpose == "Running" then
1529
		local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char)
1530
		local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char)
1531
		if left and foot == "right" then
1532
			foot = "left"
1533
			local p = Instance.new("Part")
1534
			p.Anchored = true
1535
			p.CanCollide = false
1536
			p.Material = "Neon"
1537
			p.Size = Vector3.new(0.2,0.2,0.2)
1538
			p.CFrame = CFrame.new(pos1)
1539
			setshape(p, "Sphere")
1540
			p.Parent = char
1541
			spawn(function()
1542
				for i = 1, 50 do
1543
					local cf = p.CFrame
1544
					p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
1545
					p.CFrame = cf
1546
					p.Transparency = i/50
1547
					swait()
1548
				end
1549
				p:Destroy()
1550
			end)
1551
		end
1552
		if right and foot == "left" then
1553
			foot = "right"
1554
			local p = Instance.new("Part")
1555
			p.Anchored = true
1556
			p.CanCollide = false
1557
			p.Material = "Neon"
1558
			p.Size = Vector3.new(0.2,0.2,0.2)
1559
			p.CFrame = CFrame.new(pos2)
1560
			setshape(p, "Sphere")
1561
			p.Parent = char
1562
			spawn(function()
1563
				for i = 1, 50 do
1564
					local cf = p.CFrame
1565
					p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
1566
					p.CFrame = cf
1567
					p.Transparency = i/50
1568
					swait()
1569
				end
1570
				p:Destroy()
1571
			end)
1572
		end
1573
	end 
1574
until not settings.CustomAnim
1575
end)
1576
local change = 5
1577
local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
1578
while swait() and settings.CustomAnim do
1579
	local num = tick()*change
1580
	if animpose == "Walking" and cananim then
1581
		change = (humanoid.WalkSpeed/16)*9
1582
		ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35)
1583
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35)
1584
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 55 + -15)), 0.35)
1585
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
1586
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 55 + 15)), 0.35)
1587
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35)
1588
	end
1589
	if animpose == "Running" and cananim then
1590
		change = (humanoid.WalkSpeed/24)*10
1591
		ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35)
1592
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -20), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35)
1593
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 65 + -10)), 0.35)
1594
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
1595
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 65 + 10)), 0.35)
1596
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35)
1597
	end
1598
	if animpose == "Fall" and cananim then
1599
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.499999911, -2.98023224e-08, -4.37113847e-08, 0, 0.99999994, -0.848737478, 0.528814375, -3.70994933e-08, -0.528814375, -0.848737478, -2.31152111e-08), 0.03)
1600
		ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 2.98023224e-08, -4.37113883e-08, 0, -1, 0.751466334, 0.659771562, -3.28476375e-08, 0.659771562, -0.751466334, -2.88395317e-08), 0.03)
1601
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.9062047, 0.422839224, 3.96114643e-08, -0.422839224, 0.9062047, -1.84828899e-08), 0.03)
1602
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, -2.98023224e-08, -4.37113883e-08, 0, -1, 0.321224481, 0.947003067, -1.40411682e-08, 0.947003067, -0.321224481, -4.139482e-08), 0.03)
1603
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.385730505, 0.922611475, 0, 0.922611475, 0.385730505), 0.03)
1604
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.394207865, -0.0643720552, -1, 0, 0, 0, -0.191213459, 0.981548548, 0, 0.981548548, 0.191213459), 0.03)
1605
	end
1606
	if animpose == "Idle" and cananim then
1607
		change = 3
1608
		ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * -5 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
1609
		rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0.10000000149012 + 0.20000000298023) *ang(math.rad(cos(num * 1 + 0) * 1 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 10)), 0.35)
1610
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *-0.10100000351667 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * -2 + -2)), 0.35)
1611
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -3), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + -5)), 0.35)
1612
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + -0.10100000351667, cos(num * 1 + 0) *-0.10100000351667 + -0.10199999809265, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 2 + 0)), 0.35)
1613
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * 5 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
1614
	end
1615
	if animpose == "Jump" and cananim then
1616
		rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, -0.665773153, -0.746154189, -2.91018694e-08, 0.746154189, -0.665773153, 3.26154357e-08), 0.25)
1617
		ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0.757894218, -0.652377486, -3.31286074e-08, -0.652377486, -0.757894218, 2.85163253e-08), 0.25)
1618
		rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.751373947, 0.659876645, 3.28435981e-08, -0.659876645, 0.751373947, -2.88441235e-08), 0.25)
1619
		lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0.429746985, 0.902949333, -1.87848368e-08, 0.902949333, -0.429746985, -3.94691675e-08), 0.25)
1620
		neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.201922834, 0.97940141, 0, 0.97940141, 0.201922834), 0.25)
1621
		rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.318411648, 0.10930454, -1, 0, 0, 0, 0.324682653, 0.945823014, 0, 0.945823014, -0.324682653), 0.25)
1622
	end
1623
end