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