View difference between Paste ID: 6Jsxpkye and JFMez4SG
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
local tors = char.Torso
17
18
clerp = function(toclerp, cf, number)
19
    local joint = toclerp
20
    joint.C0 = joint.C0:Lerp(cf, number)
21
end
22
23
clerp2 = function(toclerp, cf)
24
    local joint = toclerp
25
    joint.C0 = cf
26
end
27
28
clerp3 = function(toclerp, cf, number)
29
    local joint = toclerp
30
    joint.C1 = joint.C1:Lerp(cf, number)
31
end
32
 
33
Swait,swait = function(number)
34
    if number == 0 or number == nil then
35
        game:GetService("RunService").Heartbeat:Wait()
36
    else
37
        for i = 1,number do
38
            game:GetService("RunService").Heartbeat:Wait()
39
        end
40
    end
41
end
42
43
ezweld = function(p, a, b, cf)
44
    local weld = Instance.new("Weld",p)
45
    weld.Part0 = a
46
    weld.Part1 = b
47
    weld.C0 = cf
48
    return weld
49
end
50
51
NewSound = function(p, id, pit, vol, loop)
52
    local Sound = Instance.new("Sound",p)
53
    Sound.Pitch = pit
54
    Sound.Volume = vol
55
    Sound.SoundId = "rbxassetid://" ..id
56
    Sound.Looped = loop
57
    Sound:Play()
58
    return Sound
59
end
60
61
for i,v in pairs (char:GetDescendants()) do
62
	if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Decal") or v:IsA("Texture") then
63
		v:remove()
64
	end
65
	if v:IsA("Part") then
66
		local mesh = Instance.new("SpecialMesh",v)
67
		mesh.Scale = Vector3.new(0, 0, 0)
68
		if v.Name ~= "Head" then
69
			v.Transparency = 1
70
		end
71
	end
72
end
73
74
anim = "Idle"
75
attack = false
76
local RS = char.Torso["Right Shoulder"]
77
local LS = char.Torso["Left Shoulder"]
78
local RH = char.Torso["Right Hip"]
79
local LH = char.Torso["Left Hip"]
80
local neck = char.Torso["Neck"]
81
local root = char.HumanoidRootPart
82
local rootj = root.RootJoint
83
local sine = 0
84
local RSnor = RS.C0
85
local LSnor = LS.C0
86
local RHnor = RH.C0
87
local LHnor = LH.C0
88
local RSnor2 = RS.C1
89
local LSnor2 = LS.C1
90
local RHnor2 = RH.C1
91
local LHnor2 = LH.C1
92
local rootjnor = rootj.C0
93
local necknor = neck.C0
94
local tors = char.Torso
95
mouse = plr:GetMouse()
96
hold = false
97
Debris = game:GetService("Debris")
98
99
IT = Instance.new
100
Rad = math.rad
101
Cos = math.cos
102
Sin = math.sin
103
BrickC = BrickColor.new
104
C3 = Color3.new
105
VT = Vector3.new
106
107
sped = 16
108
keyhold = false
109
spino = 0
110
hito = true
111
112
function RayCast(Position, Direction, Range, Ignore)
113
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
114
end
115
116
sizo = 1
117
118
--head and torso
119
120
local part = Instance.new("Part",char)
121
part.Size = Vector3.new(0.1, 0.1, 0.1)
122
part.CanCollide = false
123
part.BrickColor = BrickColor.new("Medium stone grey")
124
local mesh = Instance.new("SpecialMesh",part)
125
mesh.MeshId = "rbxassetid://1218980144"
126
mesh.TextureId = "rbxassetid://1218980152"
127
mesh.Scale = Vector3.new(0.3, 0.3, 0.3)*sizo
128
mesh.Offset = Vector3.new(0, 0.25, 0)
129
mesh.VertexColor = Vector3.new(0.501, 0.623, 1)
130
local weld = ezweld(char, part, hed, CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0))
131
132
local part = Instance.new("Part",char)
133
part.Size = Vector3.new(0.1, 0.1, 0.1)
134
part.CanCollide = false
135
part.BrickColor = BrickColor.new("Medium stone grey")
136
local mesh = Instance.new("SpecialMesh",part)
137
mesh.MeshId = "rbxassetid://1218977827"
138
mesh.TextureId = "rbxassetid://1218977833"
139
mesh.Scale = Vector3.new(1.25, 1.25, 1.25)*sizo
140
mesh.Offset = Vector3.new(0, -0.25, 0)
141
local weld = ezweld(char, part, tors, CFrame.new(0, 0, 0) * CFrame.Angles(0, Rad(0), 0))
142
143
--right arm
144
145
local sleeve = Instance.new("Part",char)
146
sleeve.Size = Vector3.new(0.1, 0.1, 0.1)
147
sleeve.CanCollide = false
148
sleeve.BrickColor = BrickColor.new("Medium stone grey")
149
local mesh = Instance.new("SpecialMesh",sleeve)
150
mesh.MeshId = "rbxassetid://1218978596"
151
mesh.TextureId = "rbxassetid://1218978604"
152
mesh.Scale = Vector3.new(1, 1, 1)*sizo
153
mesh.Offset = Vector3.new(0, 0, 0)
154
local weld = ezweld(char, sleeve, ra, CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-38)))
155
156
RS.C0 = RSnor * CFrame.new(-0.015, 0.015, -0.4)
157
158
local part = Instance.new("Part",char)
159
part.Size = Vector3.new(0.1, 0.1, 0.1)
160
part.CanCollide = false
161
part.BrickColor = BrickColor.new("Medium stone grey")
162
local mesh = Instance.new("SpecialMesh",part)
163
mesh.MeshId = "rbxassetid://1218979090"
164
mesh.TextureId = "rbxassetid://1218979095"
165
mesh.Scale = Vector3.new(1, 1, 1)*0.65
166
mesh.Offset = Vector3.new(0, 0, 0)
167
local weld = ezweld(char, part, sleeve, CFrame.new(0, 0.7, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)))
168
169
--left arm
170
171
local sleeve = Instance.new("Part",char)
172
sleeve.Size = Vector3.new(0.1, 0.1, 0.1)
173
sleeve.CanCollide = false
174
sleeve.BrickColor = BrickColor.new("Medium stone grey")
175
local mesh = Instance.new("SpecialMesh",sleeve)
176
mesh.MeshId = "rbxassetid://1218978596"
177
mesh.TextureId = "rbxassetid://1218978604"
178
mesh.Scale = Vector3.new(1, 1, 1)*sizo
179
mesh.Offset = Vector3.new(0, 0, 0)
180
local weld = ezweld(char, sleeve, la, CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(38)))
181
182
LS.C0 = LSnor * CFrame.new(0.015, 0.015, -0.4)
183
184
local part = Instance.new("Part",char)
185
part.Size = Vector3.new(0.1, 0.1, 0.1)
186
part.CanCollide = false
187
part.BrickColor = BrickColor.new("Medium stone grey")
188
local mesh = Instance.new("SpecialMesh",part)
189
mesh.MeshId = "rbxassetid://1218979090"
190
mesh.TextureId = "rbxassetid://1218979095"
191
mesh.Scale = Vector3.new(1, 1, 1)*0.65
192
mesh.Offset = Vector3.new(0, 0, 0)
193
local weld = ezweld(char, part, sleeve, CFrame.new(0, 0.7, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)))
194
195
--right leg
196
197
local sleeve = Instance.new("Part",char)
198
sleeve.Size = Vector3.new(0.1, 0.1, 0.1)
199
sleeve.CanCollide = false
200
sleeve.BrickColor = BrickColor.new("Medium stone grey")
201
local mesh = Instance.new("SpecialMesh",sleeve)
202
mesh.MeshId = "rbxassetid://1218978239"
203
mesh.TextureId = "rbxassetid://1218978242"
204
mesh.Scale = Vector3.new(1, 1, 1)*sizo
205
mesh.Offset = Vector3.new(0, 0, 0)
206
local weld = ezweld(char, sleeve, rl, CFrame.new(0, -0.125, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-3)))
207
208
RH.C0 = RHnor * CFrame.new(0.2, 0.1, 0.055)
209
210
--left leg
211
212
local sleeve = Instance.new("Part",char)
213
sleeve.Size = Vector3.new(0.1, 0.1, 0.1)
214
sleeve.CanCollide = false
215
sleeve.BrickColor = BrickColor.new("Medium stone grey")
216
local mesh = Instance.new("SpecialMesh",sleeve)
217
mesh.MeshId = "rbxassetid://1218978239"
218
mesh.TextureId = "rbxassetid://1218978242"
219
mesh.Scale = Vector3.new(1, 1, 1)*sizo
220
mesh.Offset = Vector3.new(0, 0, 0)
221
local weld = ezweld(char, sleeve, ll, CFrame.new(0, -0.125, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(3)))
222
223
LH.C0 = LHnor * CFrame.new(-0.2, 0.1, 0.055)
224
225
--antenna + batteries
226
227
local antenna = Instance.new("Part",char)
228
antenna.Size = Vector3.new(0.1, 0.1, 0.1)
229
antenna.CanCollide = false
230
antenna.BrickColor = BrickColor.new("Really black")
231
local mesh = Instance.new("SpecialMesh",antenna)
232
mesh.MeshId = "rbxassetid://5307034562"
233
local weld = ezweld(char, antenna, hed, CFrame.new(0, -1.7, 0.2) * CFrame.Angles(0, Rad(180), 0))
234
235
local part = Instance.new("Part",char)
236
part.Size = Vector3.new(0.1, 0.1, 0.1)
237
part.CanCollide = false
238
part.Color = Color3.fromRGB(131, 255, 106)
239
local mesh = Instance.new("SpecialMesh",part)
240
mesh.MeshId = "rbxassetid://1101816611"
241
mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
242
local weld = ezweld(char, part, antenna, CFrame.new(0.01, -0.65, 0.025) * CFrame.Angles(Rad(20), Rad(0), 0))
243
244
local part = Instance.new("Part",char)
245
part.Size = Vector3.new(0.1, 0.1, 0.1)
246
part.CanCollide = false
247
part.BrickColor = BrickColor.new("Medium stone grey")
248
local mesh = Instance.new("SpecialMesh",part)
249
mesh.MeshId = "rbxassetid://1126013271"
250
mesh.TextureId = "rbxassetid://1126013275"
251
mesh.Scale = Vector3.new(0.5, 1, 0.5)
252
mesh.VertexColor = Vector3.new(0.908, 0.908, 0.908)
253
local weld = ezweld(char, part, tors, CFrame.new(0, -0.65, 0.15) * CFrame.Angles(Rad(80), Rad(180), Rad(0)))
254
255
--anims
256
257
anim = "Idle"
258
attack = false
259
local RS = char.Torso["Right Shoulder"]
260
local LS = char.Torso["Left Shoulder"]
261
local RH = char.Torso["Right Hip"]
262
local LH = char.Torso["Left Hip"]
263
local neck = char.Torso["Neck"]
264
local root = char.HumanoidRootPart
265
local rootj = root.RootJoint
266
local sine = 0
267
local RSnor = RS.C0
268
local LSnor = LS.C0
269
local RHnor = RH.C0
270
local LHnor = LH.C0
271
local RSnor2 = RS.C1
272
local LSnor2 = LS.C1
273
local RHnor2 = RH.C1
274
local LHnor2 = LH.C1
275
local rootjnor = rootj.C0
276
local necknor = neck.C0
277
local tors = char.Torso
278
hum.Animator:remove()
279
mouse = plr:GetMouse()
280
hold = false
281
Debris = game:GetService("Debris")
282
283
hum.JumpHeight = 85
284
hum.WalkSpeed = 20
285
286
local landed = true
287
288
vwall = false
289
290
function vrun()
291
	local ray = Ray.new(
292
        root.CFrame.p, root.CFrame.lookVector *2.5
293
    )
294
    local hit, position, normal = workspace:FindPartOnRay(ray, char)
295
if ray and hit then
296
	vwall = true
297
	attack = true
298
	local bv = Instance.new("BodyVelocity",root)
299
	bv.MaxForce = Vector3.new(0, math.huge, 0)
300
	bv.Velocity = Vector3.new(0, 25, 0)
301
	for i = 1,10 do
302
		Swait()
303
		clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
304
		clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
305
		clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
306
		clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
307
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
308
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
309
	end
310
	hum.WalkSpeed = 0
311
	repeat
312
		Swait()
313
		ray = Ray.new(
314
        root.CFrame.p, root.CFrame.lookVector *9.5
315
    )
316
    hit, position, normal = workspace:FindPartOnRay(ray, char)
317
if ray and hit then
318
		local WALKSPEEDVALUE = 5.65 / (sped / 16)
319
		local TiltVelocity = Vector3.new(0, 0, 0) 
320
		clerp(rootj, rootjnor * CFrame.new(0, 1.85, 0 + 0.5 * Cos(sine / (WALKSPEEDVALUE / 2))) * CFrame.Angles(Rad(-90), root.RotVelocity.y / 45, Rad(0)), 0.2)
321
		clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.Angles(Rad((TiltVelocity.z*1.5)), root.RotVelocity.y / 85, Rad(0)), 0.2)
322
		clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
323
		clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
324
		clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
325-
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(-11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
325+
		clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
326
else
327
	hum.WalkSpeed = 20
328
	vwall = false
329
end
330
	until vwall == false
331
	hum.WalkSpeed = 20
332
	bv:remove()
333
	attack = false
334
	vwall = false
335
end
336
end
337
338
mouse.KeyDown:connect(function(key)
339
	if key == "v" then
340
		vrun()
341
	end
342
end)
343
344
mouse.KeyUp:connect(function(key)
345
	if key == "v" and vwall == true then
346
		vwall = false
347
	end
348
end)
349
350
while true do
351
	Swait()
352
	hum.HipHeight = -0.5
353
	sine = sine + 1
354
	local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
355
	local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
356
	local WALKSPEEDVALUE = 5.65 / (sped / 16)
357
	torsverticalvel = root.Velocity.y
358
	hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
359
	if TORSOVELOCITY < 1 and hitfloor ~= nil then
360
		anim = "Idle"
361
		if attack == false then
362-
			hum.AutoRotate = true
362+
363
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
364
			clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
365
			clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
366
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
367
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
368
		end
369
	elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
370
		anim = "Walk"
371
		if attack == false then
372
			if landed == false then
373-
			hum.AutoRotate = true
373+
374
				for i = 1,10 do
375
					Swait()
376
					clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
377
					clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
378
					clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
379
					clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
380
					clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
381
					clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
382
				end
383
			end
384
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0.25 + 0.5 * Cos(sine / (WALKSPEEDVALUE / 2))) * CFrame.Angles(Rad(-(TiltVelocity.z*1.5)), root.RotVelocity.y / 45, Rad(0)), 0.2)
385
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.Angles(Rad((TiltVelocity.z*1.5)), root.RotVelocity.y / 85, Rad(0)), 0.2)
386-
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0.25 + 0.5 * Cos(sine / (WALKSPEEDVALUE / 2))) * CFrame.Angles(Rad(-(TiltVelocity.z*1.5) + (-root.Velocity.y*2.25)), root.RotVelocity.y / 45, Rad(0)), 0.2)
386+
387
			clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
388
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
389
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
390
		end
391-
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(-11+11 * Cos(sine / WALKSPEEDVALUE)), Rad(169 * Cos(sine / WALKSPEEDVALUE))), 0.075)
391+
392
		anim = "Jump"
393
		if attack == false then
394
			landed = false
395
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.045)
396-
			hum.AutoRotate = false
396+
397
			clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
398
			clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
399
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(165)), 0.075)
400
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.2)
401
		end
402
	elseif torsverticalvel < 0.5 and hitfloor == nil then
403
		anim = "Fall"
404
		if attack == false then
405
			landed = false
406
			clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(25), Rad(0), Rad(0)), 0.045)
407
			clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.075)
408-
			hum.AutoRotate = false
408+
409
			clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.1)
410
			clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(165)), 0.075)
411
			clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.2)
412
		end
413
	end
414
end