Advertisement
lafur

Untitled

Jul 10th, 2020
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. 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. hed = char.Head
  11. root = char.HumanoidRootPart
  12. hum = char.Humanoid
  13. dancin = false
  14.  
  15. clerp = function(toclerp, cf, number)
  16. local joint = toclerp
  17. joint.C0 = joint.C0:Lerp(cf, number)
  18. end
  19.  
  20. clerp2 = function(toclerp, cf)
  21. local joint = toclerp
  22. joint.C0 = cf
  23. end
  24.  
  25. clerp3 = function(toclerp, cf, number)
  26. local joint = toclerp
  27. joint.C1 = joint.C1:Lerp(cf, number)
  28. end
  29.  
  30. Swait,swait = function(number)
  31. if number == 0 or number == nil then
  32. game:GetService("RunService").Heartbeat:Wait()
  33. else
  34. for i = 1,number do
  35. game:GetService("RunService").Heartbeat:Wait()
  36. end
  37. end
  38. end
  39.  
  40. ezweld = function(p, a, b, cf)
  41. local weld = Instance.new("Weld",p)
  42. weld.Part0 = a
  43. weld.Part1 = b
  44. weld.C0 = cf
  45. return weld
  46. end
  47.  
  48. NewSound = function(p, id, pit, vol, loop)
  49. local Sound = Instance.new("Sound",p)
  50. Sound.Pitch = pit
  51. Sound.Volume = vol
  52. Sound.SoundId = "rbxassetid://" ..id
  53. Sound.Looped = loop
  54. Sound:Play()
  55. return Sound
  56. end
  57.  
  58. IT = Instance.new
  59. Rad = math.rad
  60. Cos = math.cos
  61. Sin = math.sin
  62. BrickC = BrickColor.new
  63. C3 = Color3.new
  64. VT = Vector3.new
  65.  
  66. anim = "Idle"
  67. attack = false
  68. local RS = char.Torso["Right Shoulder"]
  69. local LS = char.Torso["Left Shoulder"]
  70. local RH = char.Torso["Right Hip"]
  71. local LH = char.Torso["Left Hip"]
  72. local neck = char.Torso["Neck"]
  73. local root = char.HumanoidRootPart
  74. local rootj = root.RootJoint
  75. local sine = 0
  76. local RSnor = RS.C0
  77. local LSnor = LS.C0
  78. local RHnor = RH.C0
  79. local LHnor = LH.C0
  80. local RSnor2 = RS.C1
  81. local LSnor2 = LS.C1
  82. local RHnor2 = RH.C1
  83. local LHnor2 = LH.C1
  84. local rootjnor = rootj.C0
  85. local necknor = neck.C0
  86. local tors = char.Torso
  87. hum.Animator:remove()
  88. mouse = plr:GetMouse()
  89. hold = false
  90. Debris = game:GetService("Debris")
  91.  
  92. sped = 16
  93. keyhold = false
  94. spino = 0
  95. hito = true
  96.  
  97. function RayCast(Position, Direction, Range, Ignore)
  98. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  99. end
  100.  
  101. sizo = 1
  102.  
  103. for i,v in pairs (char:children()) do
  104. if v:IsA("BasePart") then
  105. if v.Name == "Head" then v.Size = Vector3.new(1, 1, 1) end
  106. local bm = Instance.new("BlockMesh", v)
  107. elseif v:IsA("Hat") or v:IsA("Accessory") then
  108. v:Destroy()
  109. end
  110. end
  111.  
  112. local BC = char:FindFirstChildWhichIsA("BodyColors")
  113. Substitute = BC.TorsoColor
  114. local C = BC.HeadColor3
  115. local Color = C.r*0.299+C.g*0.587+C.b*0.114
  116.  
  117. b = "DeltaJohn!"
  118. if Color < 0.2 then
  119. Brightness = BrickColor.new("Black")
  120. b = "Don!"
  121. elseif Color < 0.4 then
  122. Brightness = BrickColor.new("Dark stone grey")
  123. b = "Zon!"
  124. elseif Color < 0.65 then
  125. Brightness = BrickColor.new("Medium stone grey")
  126. b = "John!"
  127. elseif Color < 0.85 then
  128. Brightness = BrickColor.new("Mid gray")
  129. b = "Ron!"
  130. else
  131. Brightness = BrickColor.new("White")
  132. end
  133.  
  134. local Substitute = BrickColor.new("Really black")
  135. local Brightness = BrickColor.new("Medium stone grey")
  136.  
  137. local Head = hed
  138. Head.Size = Vector3.new(1,1,1)
  139. Head.Anchored = false
  140. Head.Locked = true
  141. Head.Material = Enum.Material.Metal
  142. local Torso = char["Torso"]
  143. Torso.Size = Vector3.new(2,2,1)
  144. Torso.Anchored = false
  145. Torso.Locked = true
  146. Torso.Material = Enum.Material.DiamondPlate
  147. local LeftArm = char["Left Arm"]
  148. LeftArm.Size = Vector3.new(1,2,1)
  149. LeftArm.Anchored = false
  150. LeftArm.Locked = true
  151. LeftArm.Material = Enum.Material.Metal
  152. LeftArm.CanCollide = false
  153. local RightArm = char["Right Arm"]
  154. RightArm.Size = Vector3.new(1,2,1)
  155. RightArm.Anchored = false
  156. RightArm.Locked = true
  157. RightArm.Material = Enum.Material.Metal
  158. RightArm.CanCollide = false
  159. local LeftLeg = char["Left Leg"]
  160. LeftLeg.Size = Vector3.new(1,2,1)
  161. LeftLeg.Anchored = false
  162. LeftLeg.Locked = true
  163. LeftLeg.Material = Enum.Material.DiamondPlate
  164. local RightLeg = char["Right Leg"]
  165. RightLeg.Size = Vector3.new(1,2,1)
  166. RightLeg.Anchored = false
  167. RightLeg.Locked = true
  168. RightLeg.Material = Enum.Material.DiamondPlate
  169. hed.face:Destroy()
  170. local Left = Instance.new("Part",char)
  171. Left.Name = "L"
  172. Left.Size = Vector3.new(0.125,0.375,0.05)
  173. Left.Anchored = false
  174. Left.Locked = true
  175. Left.CanCollide = false
  176. Left.Transparency = 1
  177. local LD = Instance.new("Decal",Left)
  178. LD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png"
  179. LD.Color3 = Color3.new(0, 0, 0)
  180. local w = ezweld(char, Left, hed, CFrame.new(-0.2, -0.1, 0.5001))
  181. local Right = Instance.new("Part",char)
  182. Right.Name = "R"
  183. Right.Size = Vector3.new(0.125,0.375,0.05)
  184. Right.Anchored = false
  185. Right.Locked = true
  186. Right.CanCollide = false
  187. Right.Transparency = 1
  188. local RD = Instance.new("Decal",Right)
  189. RD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png"
  190. RD.Color3 = Color3.new(0, 0, 0)
  191. local w = ezweld(char, Right, hed, CFrame.new(0.2, -0.1, 0.5001))
  192. HP = 5
  193. trs = root
  194.  
  195. spd = 0.475
  196.  
  197. kirb = root
  198.  
  199. reeb = false
  200.  
  201. coroutine.wrap(function()
  202. while anim == "Walk" do trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection) end
  203. end)()
  204.  
  205. while true do
  206. wait()
  207. tors.Anchored = false
  208. local C = char:GetChildren()
  209. for i = 1,#C do
  210. if C[i]:IsA("BasePart") then
  211. if HP == 5 then
  212. C[i].BrickColor = BrickColor.new("Toothpaste")
  213. elseif HP == 4 then
  214. C[i].BrickColor = BrickColor.new("Lime green")
  215. elseif HP == 3 then
  216. C[i].BrickColor = BrickColor.new("New Yeller")
  217. elseif HP == 2 then
  218. C[i].BrickColor = BrickColor.new("Hot pink")
  219. elseif HP == 1 then
  220. C[i].BrickColor = BrickColor.new("Really red")
  221. else
  222. C[i].BrickColor = BrickColor.new("Really blue")
  223. end
  224. end
  225. end
  226. Torso.BrickColor = Substitute
  227. Head.BrickColor = Brightness
  228. LeftArm.BrickColor = Brightness
  229. RightArm.BrickColor = Brightness
  230. sine = sine + 1
  231. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  232. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  233. local WALKSPEEDVALUE = 8 / (sped / 16)
  234. local mv = hum.MoveDirection
  235. torsverticalvel = root.Velocity.y
  236. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  237. if TORSOVELOCITY < 0.35 and hitfloor ~= nil then
  238. anim = "Idle"
  239. if attack == false then
  240. if attack == false and anim == "Idle" then
  241. --[[
  242. for i = 1,27 do
  243. if TORSOVELOCITY < 1 then
  244. Swait()
  245. else
  246. break
  247. end
  248. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  249. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  250. clerp(RH, RHnor * CFrame.new(0.25, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(2)), 0.99)
  251. clerp(LH, LHnor * CFrame.new(-0.15, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.99)
  252. clerp(RS, RSnor * CFrame.new(0, -0.025, 0) * CFrame.Angles(Rad(-4), Rad(0), Rad(-3)), 0.99)
  253. clerp(LS, LSnor * CFrame.new(0, -0.025, 0) * CFrame.Angles(Rad(-4), Rad(0), Rad(3)), 0.99)
  254. end
  255. end
  256. if attack == false and anim == "Idle" then
  257. for i = 1,27 do
  258. if TORSOVELOCITY < 1 then
  259. Swait()
  260. else
  261. break
  262. end
  263. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.165) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  264. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  265. clerp(RH, RHnor * CFrame.new(0.21, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  266. clerp(LH, LHnor * CFrame.new(-0.075, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  267. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  268. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  269. end
  270. end
  271. if attack == false and anim == "Idle" then
  272. for i = 1,27 do
  273. if TORSOVELOCITY < 1 then
  274. Swait()
  275. else
  276. break
  277. end
  278. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  279. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  280. clerp(RH, RHnor * CFrame.new(0.21, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(1)), 0.99)
  281. clerp(LH, LHnor * CFrame.new(-0.075, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(6)), 0.99)
  282. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(3)), 0.99)
  283. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(-3)), 0.99)
  284. end
  285. end
  286. if attack == false and anim == "Idle" then
  287. for i = 1,27 do
  288. if TORSOVELOCITY < 1 then
  289. Swait()
  290. else
  291. break
  292. end
  293. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.165) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  294. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  295. clerp(RH, RHnor * CFrame.new(0.21, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  296. clerp(LH, LHnor * CFrame.new(-0.075, 0.15, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  297. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  298. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  299. end
  300. end
  301. ]]
  302. for i = 1,8 do
  303. if TORSOVELOCITY < 0.35 then
  304. Swait()
  305. else
  306. break
  307. end
  308. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  309. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  310. clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  311. clerp(LH, LHnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  312. clerp(RS, RSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  313. clerp(LS, LSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  314. end
  315. for i = 1,8 do
  316. if TORSOVELOCITY < 0.35 then
  317. Swait()
  318. else
  319. break
  320. end
  321. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  322. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  323. clerp(RH, RHnor * CFrame.new(0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  324. clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  325. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  326. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  327. end
  328. end
  329. end
  330. elseif TORSOVELOCITY > 0.35 and hitfloor ~= nil then
  331. anim = "Walk"
  332. if attack == false then
  333. if attack == false and anim == "Walk" then
  334. for i = 1,10 do
  335. if TORSOVELOCITY > 0.35 then
  336. Swait()
  337. else
  338. break
  339. end
  340. if reeb == true then
  341. trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  342. end
  343. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  344. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  345. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.99)
  346. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.99)
  347. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35)), 0.99)
  348. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35)), 0.99)
  349. end
  350. end
  351. --[[
  352. if attack == false and anim == "Walk" then
  353. for i = 1,5 do
  354. Swait()
  355. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  356. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  357. clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35/2)), 0.99)
  358. clerp(LH, LHnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35/2)), 0.99)
  359. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35/2)), 0.99)
  360. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35/2)), 0.99)
  361. end
  362. end
  363. ]]
  364. if attack == false and anim == "Walk" then
  365. for i = 1,10 do
  366. if TORSOVELOCITY > 0.35 then
  367. Swait()
  368. else
  369. break
  370. end
  371. if reeb == true then
  372. --trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  373. end
  374. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  375. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99)
  376. clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  377. clerp(LH, LHnor * CFrame.new(-0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  378. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  379. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  380. end
  381. end
  382. if attack == false and anim == "Walk" then
  383. for i = 1,10 do
  384. if TORSOVELOCITY > 0.35 then
  385. Swait()
  386. else
  387. break
  388. end
  389. if reeb == true then
  390. --trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  391. end
  392. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  393. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  394. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99)
  395. clerp(LH, LHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99)
  396. clerp(RS, RSnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99)
  397. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99)
  398. end
  399. end
  400. --[[
  401. if attack == false and anim == "Walk" then
  402. for i = 1,5 do
  403. Swait()
  404. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  405. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  406. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99)
  407. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99)
  408. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99)
  409. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99)
  410. end
  411. end
  412. ]]
  413. if attack == false and anim == "Walk" then
  414. for i = 1,5 do
  415. if TORSOVELOCITY > 0.35 then
  416. Swait()
  417. else
  418. break
  419. end
  420. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  421. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99)
  422. clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  423. clerp(LH, LHnor * CFrame.new(-0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  424. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  425. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  426. end
  427. end
  428. end
  429. elseif torsverticalvel > 0.5 and hitfloor == nil then
  430. anim = "Jump"
  431. if attack == false then
  432. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  433. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  434. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  435. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  436. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99)
  437. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  438. end
  439. elseif torsverticalvel < 0.5 and hitfloor == nil then
  440. anim = "Fall"
  441. if attack == false then
  442. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  443. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  444. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  445. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  446. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99)
  447. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  448. end
  449. end
  450. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement