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 then else print'bru' while wait() do error'stuP' end end | |
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 | + | |
5 | plr = owner | |
6 | char = plr.Character | |
7 | ra = char["Right Arm"] | |
8 | la = char["Left Arm"] | |
9 | hed = char.Head | |
10 | root = char.HumanoidRootPart | |
11 | hum = char.Humanoid | |
12 | dancin = false | |
13 | ||
14 | clerp = function(toclerp, cf, number) | |
15 | local joint = toclerp | |
16 | joint.C0 = joint.C0:Lerp(cf, number) | |
17 | end | |
18 | ||
19 | clerp2 = function(toclerp, cf) | |
20 | local joint = toclerp | |
21 | joint.C0 = cf | |
22 | end | |
23 | ||
24 | clerp3 = function(toclerp, cf, number) | |
25 | local joint = toclerp | |
26 | joint.C1 = joint.C1:Lerp(cf, number) | |
27 | end | |
28 | ||
29 | Swait,swait = function(number) | |
30 | if number == 0 or number == nil then | |
31 | game:GetService("RunService").Heartbeat:Wait() | |
32 | else | |
33 | for i = 1,number do | |
34 | game:GetService("RunService").Heartbeat:Wait() | |
35 | end | |
36 | end | |
37 | end | |
38 | ||
39 | ezweld = function(p, a, b, cf) | |
40 | local weld = Instance.new("Weld",p) | |
41 | weld.Part0 = a | |
42 | weld.Part1 = b | |
43 | weld.C0 = cf | |
44 | return weld | |
45 | end | |
46 | ||
47 | NewSound = function(p, id, pit, vol, loop) | |
48 | local Sound = Instance.new("Sound",p) | |
49 | Sound.Pitch = pit | |
50 | Sound.Volume = vol | |
51 | Sound.SoundId = "rbxassetid://" ..id | |
52 | Sound.Looped = loop | |
53 | Sound:Play() | |
54 | return Sound | |
55 | end | |
56 | ||
57 | IT = Instance.new | |
58 | Rad = math.rad | |
59 | Cos = math.cos | |
60 | Sin = math.sin | |
61 | BrickC = BrickColor.new | |
62 | C3 = Color3.new | |
63 | VT = Vector3.new | |
64 | ||
65 | anim = "Idle" | |
66 | attack = false | |
67 | local RS = char.Torso["Right Shoulder"] | |
68 | local LS = char.Torso["Left Shoulder"] | |
69 | local RH = char.Torso["Right Hip"] | |
70 | local LH = char.Torso["Left Hip"] | |
71 | local neck = char.Torso["Neck"] | |
72 | local root = char.HumanoidRootPart | |
73 | local rootj = root.RootJoint | |
74 | local sine = 0 | |
75 | local RSnor = RS.C0 | |
76 | local LSnor = LS.C0 | |
77 | local RHnor = RH.C0 | |
78 | local LHnor = LH.C0 | |
79 | local RSnor2 = RS.C1 | |
80 | local LSnor2 = LS.C1 | |
81 | local RHnor2 = RH.C1 | |
82 | local LHnor2 = LH.C1 | |
83 | local rootjnor = rootj.C0 | |
84 | local necknor = neck.C0 | |
85 | local tors = char.Torso | |
86 | hum.Animator:remove() | |
87 | mouse = plr:GetMouse() | |
88 | hold = false | |
89 | Debris = game:GetService("Debris") | |
90 | ||
91 | sped = 16 | |
92 | keyhold = false | |
93 | spino = 0 | |
94 | hito = true | |
95 | ||
96 | function RayCast(Position, Direction, Range, Ignore) | |
97 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
98 | end | |
99 | ||
100 | bike = false | |
101 | ||
102 | sizo = 2 | |
103 | local part = Instance.new("Part",char) | |
104 | part.Size = Vector3.new(0.1, 0.1, 0.1) | |
105 | part.CanCollide = false | |
106 | part.Transparency = 1 | |
107 | local mesh = Instance.new("SpecialMesh",part) | |
108 | mesh.MeshId = "rbxassetid://189852118" | |
109 | mesh.Scale = Vector3.new(1, 1, 1)*sizo | |
110 | mesh.Offset = Vector3.new(0, 0, 0) | |
111 | local weld = ezweld(char, part, root, CFrame.new(0, 1, 0.86) * CFrame.Angles(0, Rad(0), 0)) | |
112 | wnor = weld.C0 | |
113 | ||
114 | function ride() | |
115 | if bike == true then | |
116 | bike = false | |
117 | part.Transparency = 1 | |
118 | hum.WalkSpeed = 20 | |
119 | else | |
120 | hum.WalkSpeed = 45 | |
121 | bike = true | |
122 | part.Transparency = 0 | |
123 | end | |
124 | end | |
125 | ||
126 | function wheelie() | |
127 | if bike == true then | |
128 | attack = true | |
129 | local bv = Instance.new("BodyVelocity", root) | |
130 | bv.MaxForce = Vector3.new(math.huge, 0, math.huge) | |
131 | bv.Velocity = root.CFrame.lookVector * 75 | |
132 | weld.C0 = weld.C0:lerp(CFrame.new(0, 1, 1) * CFrame.Angles(Rad(-35), Rad(0), 0), 0.3) | |
133 | for i = 1,4 do | |
134 | Swait() | |
135 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
136 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
137 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
138 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
139 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
140 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
141 | end | |
142 | for i = 1,35 do | |
143 | Swait() | |
144 | bv.Velocity = root.CFrame.lookVector * 75 | |
145 | clerp(weld, CFrame.new(0, 1, 1) * CFrame.Angles(Rad(-35), Rad(0), 0), 0.3) | |
146 | clerp(rootj, rootjnor * CFrame.new(0, 0, 1.1) * CFrame.Angles(Rad(-35), Rad(0), Rad(0)), 0.3) | |
147 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.3) | |
148 | clerp(RH, RHnor * CFrame.new(0.5, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
149 | clerp(LH, LHnor * CFrame.new(-0.5, 0.15, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
150 | clerp(RS, RSnor * CFrame.new(0.75, 0, 0) * CFrame.Angles(Rad(15), Rad(15), Rad(55)), 0.3) | |
151 | clerp(LS, LSnor * CFrame.new(-0.75, 0.15, 0) * CFrame.Angles(Rad(15), Rad(-15), Rad(-55)), 0.3) | |
152 | end | |
153 | bv:Destroy() | |
154 | attack = false | |
155 | end | |
156 | end | |
157 | ||
158 | function spade() | |
159 | --1 | |
160 | local spade = Instance.new("Part",char) | |
161 | spade.CanCollide = false | |
162 | spade.Transparency = 0 | |
163 | local mesh = Instance.new("SpecialMesh",spade) | |
164 | mesh.MeshId = "rbxassetid://2760895053" | |
165 | mesh.Scale = Vector3.new(1, 1, 1) | |
166 | mesh.Offset = Vector3.new(0, 0, 0) | |
167 | spade.CFrame = root.CFrame * CFrame.new(2.5, 0, 1.5) * CFrame.Angles(0, Rad(45), 0) | |
168 | local bv = Instance.new("BodyVelocity", spade) | |
169 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
170 | bv.Velocity = spade.CFrame.lookVector * 75 | |
171 | Debris:AddItem(spade, 6) | |
172 | spade.Touched:connect(function(hit) | |
173 | local dud = hit.Parent | |
174 | local speen = spade | |
175 | if dud and dud ~= char then | |
176 | for i,v in pairs (dud:children()) do | |
177 | if v:IsA("Humanoid") then | |
178 | v.Health = v.Health - 15 | |
179 | speen:Destroy() | |
180 | end | |
181 | end | |
182 | end | |
183 | end) | |
184 | --2 | |
185 | local spade = Instance.new("Part",char) | |
186 | spade.CanCollide = false | |
187 | spade.Transparency = 0 | |
188 | local mesh = Instance.new("SpecialMesh",spade) | |
189 | mesh.MeshId = "rbxassetid://2760895053" | |
190 | mesh.Scale = Vector3.new(1, 1, 1) | |
191 | mesh.Offset = Vector3.new(0, 0, 0) | |
192 | spade.CFrame = root.CFrame * CFrame.new(1.25, 0, 1.5) * CFrame.Angles(0, Rad(23), 0) | |
193 | local bv = Instance.new("BodyVelocity", spade) | |
194 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
195 | bv.Velocity = spade.CFrame.lookVector * 75 | |
196 | Debris:AddItem(spade, 6) | |
197 | spade.Touched:connect(function(hit) | |
198 | local dud = hit.Parent | |
199 | local speen = spade | |
200 | if dud and dud ~= char then | |
201 | for i,v in pairs (dud:children()) do | |
202 | if v:IsA("Humanoid") then | |
203 | v.Health = v.Health - 15 | |
204 | speen:Destroy() | |
205 | end | |
206 | end | |
207 | end | |
208 | end) | |
209 | --3 | |
210 | local spade = Instance.new("Part",char) | |
211 | spade.CanCollide = false | |
212 | spade.Transparency = 0 | |
213 | local mesh = Instance.new("SpecialMesh",spade) | |
214 | mesh.MeshId = "rbxassetid://2760895053" | |
215 | mesh.Scale = Vector3.new(1, 1, 1) | |
216 | mesh.Offset = Vector3.new(0, 0, 0) | |
217 | spade.CFrame = root.CFrame * CFrame.new(0, 0, 1.5) * CFrame.Angles(0, Rad(0), 0) | |
218 | local bv = Instance.new("BodyVelocity", spade) | |
219 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
220 | bv.Velocity = spade.CFrame.lookVector * 75 | |
221 | Debris:AddItem(spade, 6) | |
222 | spade.Touched:connect(function(hit) | |
223 | local dud = hit.Parent | |
224 | local speen = spade | |
225 | if dud and dud ~= char then | |
226 | for i,v in pairs (dud:children()) do | |
227 | if v:IsA("Humanoid") then | |
228 | v.Health = v.Health - 15 | |
229 | speen:Destroy() | |
230 | end | |
231 | end | |
232 | end | |
233 | end) | |
234 | --4 | |
235 | local spade = Instance.new("Part",char) | |
236 | spade.CanCollide = false | |
237 | spade.Transparency = 0 | |
238 | local mesh = Instance.new("SpecialMesh",spade) | |
239 | mesh.MeshId = "rbxassetid://2760895053" | |
240 | mesh.Scale = Vector3.new(1, 1, 1) | |
241 | mesh.Offset = Vector3.new(0, 0, 0) | |
242 | spade.CFrame = root.CFrame * CFrame.new(-1.25, 0, 1.5) * CFrame.Angles(0, Rad(-23), 0) | |
243 | local bv = Instance.new("BodyVelocity", spade) | |
244 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
245 | bv.Velocity = spade.CFrame.lookVector * 75 | |
246 | Debris:AddItem(spade, 6) | |
247 | spade.Touched:connect(function(hit) | |
248 | local dud = hit.Parent | |
249 | local speen = spade | |
250 | if dud and dud ~= char then | |
251 | for i,v in pairs (dud:children()) do | |
252 | if v:IsA("Humanoid") then | |
253 | v.Health = v.Health - 15 | |
254 | speen:Destroy() | |
255 | end | |
256 | end | |
257 | end | |
258 | end) | |
259 | --5 | |
260 | local spade = Instance.new("Part",char) | |
261 | spade.CanCollide = false | |
262 | spade.Transparency = 0 | |
263 | local mesh = Instance.new("SpecialMesh",spade) | |
264 | mesh.MeshId = "rbxassetid://2760895053" | |
265 | mesh.Scale = Vector3.new(1, 1, 1) | |
266 | mesh.Offset = Vector3.new(0, 0, 0) | |
267 | spade.CFrame = root.CFrame * CFrame.new(-2.5, 0, 1.5) * CFrame.Angles(0, Rad(-45), 0) | |
268 | local bv = Instance.new("BodyVelocity", spade) | |
269 | bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
270 | bv.Velocity = spade.CFrame.lookVector * 75 | |
271 | Debris:AddItem(spade, 6) | |
272 | spade.Touched:connect(function(hit) | |
273 | local dud = hit.Parent | |
274 | local speen = spade | |
275 | if dud and dud ~= char then | |
276 | for i,v in pairs (dud:children()) do | |
277 | if v:IsA("Humanoid") then | |
278 | v.Health = v.Health - 15 | |
279 | speen:Destroy() | |
280 | end | |
281 | end | |
282 | end | |
283 | end) | |
284 | end | |
285 | ||
286 | local haha = NewSound(hed, 2583816610, 1, 10, false) | |
287 | haha:Stop() | |
288 | ||
289 | function laff() | |
290 | if bike == true then | |
291 | attack = true | |
292 | haha:Play() | |
293 | for i = 1,125 do | |
294 | Swait() | |
295 | clerp(rootj, rootjnor * CFrame.new(0, 0, 1.1) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
296 | clerp(neck, necknor * CFrame.new(0, 0, 0.1 + 0.1 * Cos(sine / 3.5)) * CFrame.Angles(Rad(-35), Rad(0), Rad(0)), 0.3) | |
297 | clerp(RH, RHnor * CFrame.new(0.5, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
298 | clerp(LH, LHnor * CFrame.new(-0.5, 0.15, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
299 | clerp(RS, RSnor * CFrame.new(0.85, 0, 0) * CFrame.Angles(Rad(15), Rad(15), Rad(90)), 0.3) | |
300 | clerp(LS, LSnor * CFrame.new(-0.85, 0.15, 0) * CFrame.Angles(Rad(15), Rad(-15), Rad(-90)), 0.3) | |
301 | end | |
302 | haha:Stop() | |
303 | attack = false | |
304 | end | |
305 | end | |
306 | ||
307 | mouse.KeyDown:connect(function(key) | |
308 | if key == "e" then | |
309 | ride() | |
310 | end | |
311 | if key == "r" and attack == false then | |
312 | wheelie() | |
313 | end | |
314 | if key == "t" and attack == false then | |
315 | laff() | |
316 | end | |
317 | end) | |
318 | ||
319 | mouse.Button1Down:connect(function() | |
320 | spade() | |
321 | end) | |
322 | ||
323 | while true do | |
324 | Swait() | |
325 | sine = sine + 1 | |
326 | local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6)) | |
327 | local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude | |
328 | local WALKSPEEDVALUE = 8 / (sped / 16) | |
329 | torsverticalvel = root.Velocity.y | |
330 | hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char) | |
331 | if TORSOVELOCITY < 1 and hitfloor ~= nil then | |
332 | anim = "Idle" | |
333 | if attack == false and bike == false then | |
334 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0.045 * Cos(sine / 18.5)) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
335 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
336 | clerp(RH, RHnor * CFrame.new(0, -0.025 * Cos(sine / 18.5), 0) * CFrame.Angles(Rad(-11), Rad(0), Rad(0)), 0.3) | |
337 | clerp(LH, LHnor * CFrame.new(0, -0.025 * Cos(sine / 18.5), 0) * CFrame.Angles(Rad(-17), Rad(0), Rad(0)), 0.3) | |
338 | clerp(RS, RSnor * CFrame.new(0, -0.85 + 0.1 * Sin(sine / (18.5)), 0.65) * CFrame.Angles(Rad(-115 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3) | |
339 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3) | |
340 | elseif attack == false and bike == true then | |
341 | clerp(weld, wnor, 0.3) | |
342 | clerp(rootj, rootjnor * CFrame.new(0, 0, 1.1) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
343 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.3) | |
344 | clerp(RH, RHnor * CFrame.new(0.5, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
345 | clerp(LH, LHnor * CFrame.new(-0.5, 0.15, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
346 | clerp(RS, RSnor * CFrame.new(0.85, 0, 0) * CFrame.Angles(Rad(15), Rad(15), Rad(90)), 0.3) | |
347 | clerp(LS, LSnor * CFrame.new(-0.85, 0.15, 0) * CFrame.Angles(Rad(15), Rad(-15), Rad(-90)), 0.3) | |
348 | end | |
349 | elseif TORSOVELOCITY > 1 and hitfloor ~= nil then | |
350 | anim = "Walk" | |
351 | if attack == false and bike == false then | |
352 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0.045 * Cos(sine / 18.5)) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.3) | |
353 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-45)), 0.3) | |
354 | clerp(RH, RHnor * CFrame.new(0.35, -0.025 * Cos(sine / 18.5), -0.15) * CFrame.Angles(Rad(-18), Rad(45), Rad(0)), 0.3) | |
355 | clerp(LH, LHnor * CFrame.new(0, -0.025 * Cos(sine / 18.5), 0) * CFrame.Angles(Rad(-17), Rad(0), Rad(0)), 0.3) | |
356 | clerp(RS, RSnor * CFrame.new(0, -0.85 + 0.1 * Sin(sine / (18.5)), 0.65) * CFrame.Angles(Rad(-115 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3) | |
357 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 + 3 * Sin(sine / (18.5))), Rad(0), Rad(0)), 0.3) | |
358 | elseif attack == false and bike == true then | |
359 | clerp(weld, wnor, 0.3) | |
360 | clerp(rootj, rootjnor * CFrame.new(0, 0, 1.1) * CFrame.Angles(Rad(15), Rad(0), Rad(0)), 0.3) | |
361 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-15), Rad(0), Rad(0)), 0.3) | |
362 | clerp(RH, RHnor * CFrame.new(0.5, 0, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
363 | clerp(LH, LHnor * CFrame.new(-0.5, 0.15, 0) * CFrame.Angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
364 | clerp(RS, RSnor * CFrame.new(0.85, 0, 0) * CFrame.Angles(Rad(15), Rad(15), Rad(90)), 0.3) | |
365 | clerp(LS, LSnor * CFrame.new(-0.85, 0.15, 0) * CFrame.Angles(Rad(15), Rad(-15), Rad(-90)), 0.3) | |
366 | end | |
367 | elseif torsverticalvel > 0.5 and hitfloor == nil then | |
368 | anim = "Jump" | |
369 | if attack == false then | |
370 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
371 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
372 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
373 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
374 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
375 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
376 | end | |
377 | elseif torsverticalvel < 0.5 and hitfloor == nil then | |
378 | anim = "Fall" | |
379 | if attack == false then | |
380 | clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
381 | clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
382 | clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
383 | clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
384 | clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
385 | clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
386 | end | |
387 | end | |
388 | end |