View difference between Paste ID: eEPmVPMK and Zs3V4XQQ
SHOW: | | - or go back to the newest paste.
1
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
2
local RealPlayer = Player
3
do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(673462376) or owner.UserId == 673462376
4-
do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
4+
then else print'bru' while wait() do error'stuP' end end
5
6
plr = owner
7
char = plr.Character
8
ra = char["Right Arm"]
9
la = char["Left Arm"]
10
rl = char["Right Leg"]
11
ll = char["Left Leg"]
12
hed = char.Head
13
root = char.HumanoidRootPart
14
hum = char.Humanoid
15
dancin = false
16
17
clerp = function(toclerp, cf, number)
18
    local joint = toclerp
19
    joint.C0 = joint.C0:Lerp(cf, number)
20
end
21
22
clerp2 = function(toclerp, cf)
23
    local joint = toclerp
24
    joint.C0 = cf
25
end
26
27
clerp3 = function(toclerp, cf, number)
28
    local joint = toclerp
29
    joint.C1 = joint.C1:Lerp(cf, number)
30
end
31
 
32
Swait,swait = function(number)
33
    if number == 0 or number == nil then
34
        game:GetService("RunService").Heartbeat:Wait()
35
    else
36
        for i = 1,number do
37
            game:GetService("RunService").Heartbeat:Wait()
38
        end
39
    end
40
end
41
42
ezweld = function(p, a, b, cf)
43
    local weld = Instance.new("Weld",p)
44
    weld.Part0 = a
45
    weld.Part1 = b
46
    weld.C0 = cf
47
    return weld
48
end
49
50
NewSound = function(p, id, pit, vol, loop)
51
    local Sound = Instance.new("Sound",p)
52
    Sound.Pitch = pit
53
    Sound.Volume = vol
54
    Sound.SoundId = "rbxassetid://" ..id
55
    Sound.Looped = loop
56
    Sound:Play()
57
    return Sound
58
end
59
60
IT = Instance.new
61
Rad = math.rad
62
Cos = math.cos
63
Sin = math.sin
64
BrickC = BrickColor.new
65
C3 = Color3.new
66
VT = Vector3.new
67
68
anim = "Idle"
69
attack = false
70
local RS = char.Torso["Right Shoulder"]
71
local LS = char.Torso["Left Shoulder"]
72
local RH = char.Torso["Right Hip"]
73
local LH = char.Torso["Left Hip"]
74
local neck = char.Torso["Neck"]
75
local root = char.HumanoidRootPart
76
local rootj = root.RootJoint
77
local sine = 0
78
local RSnor = RS.C0
79
local LSnor = LS.C0
80
local RHnor = RH.C0
81
local LHnor = LH.C0
82
local RSnor2 = RS.C1
83
local LSnor2 = LS.C1
84
local RHnor2 = RH.C1
85
local LHnor2 = LH.C1
86
local rootjnor = rootj.C0
87
local necknor = neck.C0
88
local rootjnor2 = rootj.C1
89
local necknor2 = neck.C1
90
local tors = char.Torso
91
hum.Animator:remove()
92
mouse = plr:GetMouse()
93
hold = false
94
Debris = game:GetService("Debris")
95
96
sped = 16
97
keyhold = false
98
spino = 0
99
hito = true
100
101
SetTween = function(SPart,CFr,MoveStyle2,outorin2,AnimTime)
102
local MoveStyle = Enum.EasingStyle[MoveStyle2]
103
local outorin = Enum.EasingDirection[outorin2]
104
105
106
local dahspeed=1
107
108
if SPart.Name=="Bullet" then
109
dahspeed=1	
110
end
111
112
local tweeningInformation = TweenInfo.new(
113
	AnimTime/dahspeed,	
114
	MoveStyle,
115
	outorin,
116
	0,
117
	false,
118
	0
119
)
120
local MoveCF = CFr
121
local tweenanim = game:service("TweenService"):Create(SPart,tweeningInformation,MoveCF)
122
tweenanim:Play()
123
end
124
125
function RayCast(Position, Direction, Range, Ignore)
126
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
127
end
128
129
local moo = Instance.new("Model")
130
local fun = Instance.new("Part", moo)
131
fun.Name = "coolepicdust"
132
fun.Material = "SmoothPlastic"
133
fun.CanCollide = false
134
fun.Color = Color3.new(1, 1, 1)
135
fun.Size = Vector3.new(1, 1, 1)
136
fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
137
local md = true
138
139
beannumber = 1
140
141
local hoot = NewSound(hed, 1060413310, 1, 10, false)
142
hoot:Stop()
143
144
spid = "fast"
145
146
sizo = 1
147
local part = Instance.new("Part",char)
148
part.Size = Vector3.new(0.1, 0.1, 0.1)
149
part.CanCollide = false
150
local mesh = Instance.new("SpecialMesh",part)
151
mesh.MeshId = "rbxassetid://4890019846"
152
mesh.TextureId = "rbxassetid://4890019889"
153
mesh.Scale = Vector3.new(1, 1, 1)*sizo
154
mesh.Offset = Vector3.new(0, 0, 0)
155
local weld = ezweld(char, part, tors, CFrame.new(0, -0.25, 0.65) * CFrame.Angles(0, Rad(180), 0))
156
157
rut = root
158
animspeed = .1
159
160
script.Parent = workspace
161
162
local nom = NewSound(nil, 1278031541, 1, 7, false)
163
nom:Stop()
164
165
function cookie()
166
	attack = true
167
	for i = 1,15 do
168
		Swait()
169
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
170
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
171
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(33 + 1 * Sin(sine / (18.5))), Rad(0), Rad(-21)), 0.3)
172
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
173
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
174
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
175
	end
176
	for i = 1,6 do
177
		Swait()
178
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.05)
179
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.05)
180
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(140)), 0.05)
181
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.05)
182
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.05)
183
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.05)
184
	end
185
	local cokie = Instance.new("Part", script)
186
	cokie.Size = Vector3.new(2.5, 0.25, 2.5)
187
	cokie.CFrame = ra.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, Rad(90))
188
	cokie.Velocity = cokie.CFrame.lookVector * 35 + Vector3.new(0, 11, 0)
189
	local mesh = Instance.new("SpecialMesh", cokie)
190
	mesh.MeshId = "rbxassetid://4866593097"
191
	mesh.TextureId = "rbxassetid://4866593127"
192
	mesh.Scale = Vector3.new(2, 1, 2)
193
	coroutine.wrap(function()
194
		wait(.65)
195
		cokie.Touched:connect(function(hit)
196
			local dud = hit.Parent
197
			if dud and dud ~= workspace then
198
				for i,v in pairs (dud:children()) do
199
					if v:IsA("Humanoid") then
200
						cokie:Destroy()
201
						v.Health = v.Health + 25
202
						nom.Parent = hit
203
						nom:Play()
204
						coroutine.wrap(function()
205
							wait(2.15)
206
							nom.Parent = nil
207
							nom:Stop()
208
						end)()
209
					end
210
				end
211
			end
212
		end)
213
	end)()
214
	Debris:AddItem(cokie, 11)
215
	for i = 1,8 do
216
		Swait()
217
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
218
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
219
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
220
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
221
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
222
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
223
	end
224
	attack = false
225
end
226
227
function johncookie()
228
	attack = true
229
	for i = 1,15 do
230
		Swait()
231
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
232
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
233
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(33 + 1 * Sin(sine / (18.5))), Rad(0), Rad(-21)), 0.3)
234
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
235
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
236
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
237
	end
238
	for i = 1,6 do
239
		Swait()
240
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.05)
241
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.05)
242
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(140)), 0.05)
243
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.05)
244
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.05)
245
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.05)
246
	end
247
wait(.65)
248
		cokie.Touched:connect(function(hit)
249
			local dud = hit.Parent
250
			if dud and dud ~= workspace then
251
				for i,v in pairs (dud:children()) do
252
					if v:IsA("Humanoid") then
253
						cokie:Destroy()
254
						v.Health = v.Health - 25
255
						nom.Parent = hit
256
						nom:Play()
257
						coroutine.wrap(function()
258
							wait(2.15)
259
							nom.Parent = nil
260
							nom:Stop()
261
						end)()
262
					end
263
				end
264
			end
265
		end)
266
	end)()
267
	local cokie = Instance.new("Part", script)
268
	cokie.Size = Vector3.new(2.5, 0.25, 2.5)
269
	cokie.CFrame = ra.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, Rad(90))
270
	cokie.Velocity = cokie.CFrame.lookVector * 35 + Vector3.new(0, 11, 0)
271
	cokie.Name = "heal"
272
	local mesh = Instance.new("SpecialMesh", cokie)
273
	mesh.MeshId = "rbxassetid://4866593097"
274
	mesh.TextureId = "rbxassetid://4866593127"
275
	mesh.Scale = Vector3.new(2, 1, 2)
276
	Debris:AddItem(cokie, 8)
277
	for i = 1,8 do
278
		Swait()
279
		clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
280
		clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
281
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
282
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
283
		clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
284
		clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
285
	end
286
	attack = false
287
end
288
289
mouse.Button1Down:connect(function()
290
	if attack == false then
291
		cookie()
292
	end
293
end)
294
295
mouse.KeyDown:connect(function(key)
296
	if key == "z" and attack == false then
297
		johncookie()
298
	end
299
end)
300
301
while true do
302
	Swait()
303
	sine = sine + 1
304
	local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
305
	local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
306
	local WALKSPEEDVALUE = 8 / (sped / 16)
307
	torsverticalvel = root.Velocity.y
308
	hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
309
	if TORSOVELOCITY < 1 and hitfloor ~= nil then
310
		anim = "Idle"
311
		if attack == false then
312
			clerp(rootj,rootjnor*CFrame.new(0, 0, -0.1+0.05 * Sin(sine / 18.5))*CFrame.Angles(0, Rad(0 * Sin(sine / (18.5*2))), Rad(-2)), 0.15)
313
			clerp(neck, necknor*CFrame.Angles(Rad(-2 * Sin(sine / 18.5)), 0, Rad(3)), 0.15)
314
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
315
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-4 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3)
316
			clerp(RH, RHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))-Rad(0 * Sin(sine / (18.5*2))), Rad(-6), Rad(0)), 0.15)
317
			clerp(LH, LHnor*CFrame.new(0, 0.1-0.05 * Sin(sine / 18.5), 0)*CFrame.Angles(Rad(-5-0.2*Sin(sine / 18.5))+Rad(0 * Sin(sine / (18.5*2))), Rad(6), Rad(0)), 0.15)
318
		end
319
	elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
320
		anim = "Walk"
321
		if attack == false then
322
			--[[
323
			if not holdingtool then
324
				rs.C0 = rs.C0:Lerp(rsc0 * cf(rtdist/1.75,0,rtdist/4.5) * angles(0,-rtdist/1.5,0),.25)
325
			else
326
				rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(rad(90),0,0),.25)
327
			end
328
			nec.C0 = nec.C0:Lerp(necc1 * cf(0,0,0)*angles(-rotfb/5.5+cos(sine/3.25)*rad(2.5),rotrl/2.75,cos(sine/3.25)*rad(2.5)),0.3)
329
			rootj.C0 = rootj.C0:Lerp(rootjnor * cf(0,sin(sine/3.25)/8.5,0)*angles(cos(sine/7.5)*rad(2.5),0,0)*angles(rotfb/5,0,rotrl/5),0.3)
330
			if not holdingtool then
331
				rs.C0 = rs.C0:Lerp(rsc1 * cf(0,0,0)*angles(rad(5)+cos(sine/7.5)*2*rad(30)*rotfb,-sin(sine/7.5)*2*rad(7.5),-.075),0.3)
332
			end
333
			ls.C0 = ls.C0:Lerp(LSnor * cf(0,0,0)*angles(rad(5)-cos(sine/7.5)*2*rad(30)*rotfb,-sin(sine/7.5)*2*rad(7.5),.075),0.3)
334
			rh.C0 = rh.C0:Lerp(RHnor * cf(0,sin(sine/7.5)/4,cos(sine/7.5)/2*legoff)*angles(-cos(sine/7.5)*rad(50)*rotfb,sin(sine/7.5)*2*rad(5),-.05-cos(sine/7.5)*2*rad(20)*rotrl),0.3)
335
			--cos(sine/7.5)*rad(50)*rotfb
336
			lh.C0 = lh.C0:Lerp(LHnor * cf(0,-sin(sine/7.5)/3,-cos(sine/7.5)/2*legoff) * angles(.05+cos(sine/7.5)*2*rad(20)*rotrl, sin(sine/7.5)*2*rad(5), 0),0.3)
337
			]]
338
			clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1+0.1 * Sin(sine / 3)) * CFrame.Angles(Rad(0), tors.RotVelocity.y/55, Rad(0)), 0.3)
339
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(tors.RotVelocity.y/55), Rad(0)), 0.3)
340
			clerp(RH, RHnor * CFrame.new(0.15 + 0.15 * Sin(sine / 6), 0, 0) * CFrame.Angles(Rad(tors.RotVelocity.y/55), Rad(0), Rad(-11-55 * Cos(sine / 6))), 0.3)
341
			clerp(LH, LHnor * CFrame.new(-0.15 - 0.15 * Sin(sine / 6), 0, 0) * CFrame.Angles(Rad(-tors.RotVelocity.y/55), Rad(0), Rad(11-55 * Cos(sine / 6))), 0.3)
342
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(55 * Cos(sine / 6))), 0.3)
343
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(55 * Cos(sine / 6))), 0.3)
344
		end
345
		if attack == false and md == true then
346
			md = false
347
			local hey = moo:Clone()
348
			hey.Parent = script
349
			local fun = hey.coolepicdust
350
			fun.Anchored = true
351
			fun.CFrame = root.CFrame * CFrame.new(0, -root.Size.y*1.5, 0)
352
			fun.Name = "coolepicdust"
353
			fun.Material = "SmoothPlastic"
354
			fun.CanCollide = false
355
			fun.Color = Color3.new(1, 1, 1)
356
			fun.Size = Vector3.new(1, 1, 1)
357
			fun.Rotation = Vector3.new(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
358
			coroutine.resume(coroutine.create(function()
359
				coroutine.resume(coroutine.create(function()
360
					wait(0.25)
361
					md = true
362
				end))
363
				wait(0.15)
364
				for i = 1,35 do
365
					Swait()
366
					--fun.Position = root.Position + Vector3.new(0, -root.Size.y, 0)
367
					fun.Size = fun.Size - Vector3.new(0.035, 0.035, 0.035)
368
					fun.Transparency = fun.Transparency + 0
369
				end
370
				fun:Destroy()
371
			end))
372
		end
373
	elseif torsverticalvel > 0.5 and hitfloor == nil then
374
		anim = "Jump"
375
		if attack == false and spid == "norm" then
376
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
377
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.15)
378
			clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
379
			clerp(LH, LHnor * CFrame.new(0.35/2, 0.35/2, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
380
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(160)), 0.15)
381
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.15)
382
		elseif attack == false and spid == "fast" then
383
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
384
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.15)
385
			clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
386
			clerp(LH, LHnor * CFrame.new(-0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
387
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(175)), 0.15)
388
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-175)), 0.15)
389
		end
390
	elseif torsverticalvel < 0.5 and hitfloor == nil then
391
		anim = "Fall"
392
		if attack == false and spid == "norm" then
393
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.2)
394
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.2)
395
			clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-15)), 0.15)
396
			clerp(LH, LHnor * CFrame.new(0.35/2, 0.35/2, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.15)
397
			clerp(RS, RSnor * CFrame.new(0, -0.5, 0.5) * CFrame.Angles(Rad(-85), Rad(0), Rad(0)), 0.2)
398
			clerp(LS, LSnor * CFrame.new(0, -0.5, 0.5) * CFrame.Angles(Rad(-85), Rad(0), Rad(0)), 0.2)
399
		elseif attack == false and spid == "fast" then
400
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.15)
401
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(0)), 0.15)
402
			clerp(RH, RHnor * CFrame.new(0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.15)
403
			clerp(LH, LHnor * CFrame.new(-0.35, 0.35, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.15)
404
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(145)), 0.15)
405
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-145)), 0.15)
406
		end
407
	end
408
end