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