Advertisement
Michael91

7 tail foxes

Sep 9th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.92 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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 local Player = game.Players.localPlayer
  6. local Character = Player.Character
  7. local red = 255
  8. local green = 255
  9. local blue = 255
  10. local Humanoid = Character.Humanoid
  11. local mouse = Player:GetMouse()
  12. local m = Instance.new("Model", Character)
  13. m.Name = "WeaponModel"
  14. local LeftArm = Character["Left Arm"]
  15. local RightArm = Character["Right Arm"]
  16. local LeftLeg = Character["Left Leg"]
  17. local RightLeg = Character["Right Leg"]
  18. local Head = Character.Head
  19. local Torso = Character.Torso
  20. local cam = game.Workspace.CurrentCamera
  21. local RootPart = Character.HumanoidRootPart
  22. local RootJoint = RootPart.RootJoint
  23. local equipped = false
  24. local attack = false
  25. local Anim = "Idle"
  26. local idle = 0
  27. local attacktype = 1
  28. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local velocity = RootPart.Velocity.y
  30. local sine = 0
  31. local change = 1
  32. local grabbed = false
  33. local cn = CFrame.new
  34. local mr = math.rad
  35. local angles = CFrame.Angles
  36. local ud = UDim2.new
  37. local c3 = Color3.new
  38. local lim = 0
  39. local st = 0
  40. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  41. local attacktype = 1
  42. local ZTarget, RocketTarget = nil, nil
  43. local euler = CFrame.fromEulerAnglesXYZ
  44. function clerp(a,b,t)
  45. local qa = {QuaternionFromCFrame(a)}
  46. local qb = {QuaternionFromCFrame(b)}
  47. local ax, ay, az = a.x, a.y, a.z
  48. local bx, by, bz = b.x, b.y, b.z
  49. local _t = 1-t
  50. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  51. end
  52.  
  53. function QuaternionFromCFrame(cf)
  54. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  55. local trace = m00 + m11 + m22
  56. if trace > 0 then
  57. local s = math.sqrt(1 + trace)
  58. local recip = 0.5/s
  59. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  60. else
  61. local i = 0
  62. if m11 > m00 then
  63. i = 1
  64. end
  65. if m22 > (i == 0 and m00 or m11) then
  66. i = 2
  67. end
  68. if i == 0 then
  69. local s = math.sqrt(m00-m11-m22+1)
  70. local recip = 0.5/s
  71. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  72. elseif i == 1 then
  73. local s = math.sqrt(m11-m22-m00+1)
  74. local recip = 0.5/s
  75. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  76. elseif i == 2 then
  77. local s = math.sqrt(m22-m00-m11+1)
  78. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  79. end
  80. end
  81. end
  82.  
  83. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  84. local xs, ys, zs = x + x, y + y, z + z
  85. local wx, wy, wz = w*xs, w*ys, w*zs
  86. local xx = x*xs
  87. local xy = x*ys
  88. local xz = x*zs
  89. local yy = y*ys
  90. local yz = y*zs
  91. local zz = z*zs
  92. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  93. end
  94.  
  95. function QuaternionSlerp(a, b, t)
  96. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  97. local startInterp, finishInterp;
  98. if cosTheta >= 0.0001 then
  99. if (1 - cosTheta) > 0.0001 then
  100. local theta = math.acos(cosTheta)
  101. local invSinTheta = 1/math.sin(theta)
  102. startInterp = math.sin((1-t)*theta)*invSinTheta
  103. finishInterp = math.sin(t*theta)*invSinTheta
  104. else
  105. startInterp = 1-t
  106. finishInterp = t
  107. end
  108. else
  109. if (1+cosTheta) > 0.0001 then
  110. local theta = math.acos(-cosTheta)
  111. local invSinTheta = 1/math.sin(theta)
  112. startInterp = math.sin((t-1)*theta)*invSinTheta
  113. finishInterp = math.sin(t*theta)*invSinTheta
  114. else
  115. startInterp = t-1
  116. finishInterp = t
  117. end
  118. end
  119. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  120. end
  121. rayCast = function(Position, Direction, Range, Ignore)
  122. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  123. end
  124. local v = game.Players.localPlayer
  125. local torso = v.Character.Torso
  126. wait(1)
  127. local p = Instance.new("Part", v.Character)
  128. p.Name = "kit"
  129. p.Anchored = true
  130. p.Transparency = 0
  131. p.Material = "Plastic"
  132. p.CanCollide = false
  133. p.TopSurface = 0
  134. p.BottomSurface = 0
  135. p.Size = Vector3.new(0.2, 0.2, 0.2)
  136. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  137. local msh = Instance.new("SpecialMesh", p)
  138. msh.Scale = Vector3.new(-2, 2, 2)
  139. msh.MeshId = "http://www.roblox.com/asset/?id=188635159"
  140. msh.TextureId = "http://www.roblox.com/asset/?id=188539332"
  141. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  142. local pn = Instance.new("Part", v.Character.kit)
  143. pn.Name = "tail"
  144. pn.Anchored = true
  145. pn.Transparency = 0
  146. pn.Material = "Plastic"
  147. pn.CanCollide = false
  148. pn.TopSurface = 0
  149. pn.BottomSurface = 0
  150. pn.Size = Vector3.new(5, 3, 3)
  151. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  152. local mshn = Instance.new("SpecialMesh", pn)
  153. mshn.Scale = Vector3.new(2, 2, 2)
  154. mshn.MeshId = "http://www.roblox.com/asset/?id=188635159"
  155. mshn.TextureId = "http://www.roblox.com/asset/?id=188539332"
  156. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  157. local pn3 = Instance.new("Part", v.Character.kit)
  158. pn3.Name = "tail"
  159. pn3.Anchored = true
  160. pn3.Transparency = 0
  161. pn3.Material = "Plastic"
  162. pn3.CanCollide = false
  163. pn3.TopSurface = 0
  164. pn3.BottomSurface = 0
  165. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  166. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  167. local mshn3 = Instance.new("SpecialMesh", pn3)
  168. mshn3.Scale = Vector3.new(2, 2, 2)
  169. mshn3.MeshId = "http://www.roblox.com/asset/?id=188635159"
  170. mshn3.TextureId = "http://www.roblox.com/asset/?id=188539332"
  171. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  172. local pn4 = Instance.new("Part", v.Character.kit)
  173. pn4.Name = "tail"
  174. pn4.Anchored = true
  175. pn4.Transparency = 0
  176. pn4.Material = "Plastic"
  177. pn4.CanCollide = false
  178. pn4.TopSurface = 0
  179. pn4.BottomSurface = 0
  180. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  181. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  182. local mshn4 = Instance.new("SpecialMesh", pn4)
  183. mshn4.Scale = Vector3.new(-2, 2, 2)
  184. mshn4.MeshId = "http://www.roblox.com/asset/?id=188635159"
  185. mshn4.TextureId = "http://www.roblox.com/asset/?id=188539332"
  186. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  187. local pn5 = Instance.new("Part", v.Character.kit)
  188. pn5.Name = "tail"
  189. pn5.Anchored = true
  190. pn5.Transparency = 0
  191. pn5.Material = "Plastic"
  192. pn5.CanCollide = false
  193. pn5.TopSurface = 0
  194. pn5.BottomSurface = 0
  195. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  196. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  197. local mshn5 = Instance.new("SpecialMesh", pn5)
  198. mshn5.Scale = Vector3.new(2, 2, 2)
  199. mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
  200. mshn5.TextureId = "http://www.roblox.com/asset/?id=188539332"
  201. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  202. local pn6 = Instance.new("Part", v.Character.kit)
  203. pn6.Name = "tail"
  204. pn6.Anchored = true
  205. pn6.Transparency = 0
  206. pn6.Material = "Plastic"
  207. pn6.CanCollide = false
  208. pn6.TopSurface = 0
  209. pn6.BottomSurface = 0
  210. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  211. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  212. local mshn6 = Instance.new("SpecialMesh", pn6)
  213. mshn6.Scale = Vector3.new(2, 2, 2)
  214. mshn6.MeshId = "http://www.roblox.com/asset/?id=188635159"
  215. mshn6.TextureId = "http://www.roblox.com/asset/?id=188539332"
  216. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  217. local pn7 = Instance.new("Part", v.Character.kit)
  218. pn7.Name = "tail"
  219. pn7.Anchored = true
  220. pn7.Transparency = 0
  221. pn7.Material = "Plastic"
  222. pn7.CanCollide = false
  223. pn7.TopSurface = 0
  224. pn7.BottomSurface = 0
  225. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  226. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  227. local mshn7 = Instance.new("SpecialMesh", pn7)
  228. mshn7.Scale = Vector3.new(2, 2, 2)
  229. mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
  230. mshn7.TextureId = "http://www.roblox.com/asset/?id=188539332"
  231. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  232. local pn8 = Instance.new("Part", v.Character.kit)
  233. pn8.Name = "tail"
  234. pn8.Anchored = true
  235. pn8.Transparency = 0
  236. pn8.Material = "Plastic"
  237. pn8.CanCollide = false
  238. pn8.TopSurface = 0
  239. pn8.BottomSurface = 0
  240. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  241. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  242. local mshn8 = Instance.new("SpecialMesh", pn8)
  243. mshn8.Scale = Vector3.new(-2, 2, 2)
  244. mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
  245. mshn8.TextureId = "http://www.roblox.com/asset/?id=188539332"
  246. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  247. local pn9 = Instance.new("Part", v.Character.kit)
  248. pn9.Name = "tail"
  249. pn9.Anchored = true
  250. pn9.Transparency = 0
  251. pn9.Material = "Plastic"
  252. pn9.CanCollide = false
  253. pn9.TopSurface = 0
  254. pn9.BottomSurface = 0
  255. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  256. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  257. local mshn9 = Instance.new("SpecialMesh", pn9)
  258. mshn9.Scale = Vector3.new(-2, 2, 2)
  259. mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
  260. mshn9.TextureId = "http://www.roblox.com/asset/?id=188539332"
  261. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  262. local pn0 = Instance.new("Part", v.Character.kit)
  263. pn0.Name = "ears"
  264. pn0.Anchored = true
  265. pn0.Transparency = 0
  266. pn0.Material = "Plastic"
  267. pn0.CanCollide = false
  268. pn0.TopSurface = 0
  269. pn0.BottomSurface = 0
  270. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  271. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  272. local mshn0 = Instance.new("SpecialMesh", pn0)
  273. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  274. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  275. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  276. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  277. p.Anchored = false
  278. local motor1 = Instance.new("Weld", p)
  279. motor1.Part0 = p
  280. motor1.Part1 = torso
  281. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  282. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  283. pn.Anchored = false
  284. local motor2 = Instance.new("Weld", pn)
  285. motor2.Part0 = pn
  286. motor2.Part1 = torso
  287. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  288. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  289. pn3.Anchored = false
  290. local motor3 = Instance.new("Weld", pn3)
  291. motor3.Part0 = pn3
  292. motor3.Part1 = torso
  293. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  294. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  295. pn4.Anchored = false
  296. local motor4 = Instance.new("Weld", pn4)
  297. motor4.Part0 = pn4
  298. motor4.Part1 = torso
  299. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  300. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  301. pn5.Anchored = false
  302. local motor5 = Instance.new("Weld", pn5)
  303. motor5.Part0 = pn5
  304. motor5.Part1 = torso
  305. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  306. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  307. pn6.Anchored = false
  308. local motor6 = Instance.new("Weld", pn6)
  309. motor6.Part0 = pn6
  310. motor6.Part1 = torso
  311. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  312. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  313. pn7.Anchored = false
  314. local motor7 = Instance.new("Weld", pn7)
  315. motor7.Part0 = pn7
  316. motor7.Part1 = torso
  317. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  318. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  319. pn8.Anchored = false
  320. local motor8 = Instance.new("Weld", pn8)
  321. motor8.Part0 = pn8
  322. motor8.Part1 = torso
  323. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  324. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  325. pn9.Anchored = false
  326. local motor9 = Instance.new("Weld", pn9)
  327. motor9.Part0 = pn9
  328. motor9.Part1 = torso
  329. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  330. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  331. pn0.Anchored = false
  332. local motor0 = Instance.new("Weld", pn0)
  333. motor0.Part0 = pn0
  334. motor0.Part1 = v.Character.Head
  335. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  336. game:GetService("RunService").Stepped:connect(function()
  337. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  338. velocity = RootPart.Velocity.y
  339. sine = sine + change
  340. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  341. if equipped == true or equipped == false then
  342. if RootPart.Velocity.y > 1 and hit == nil then
  343. Anim = "Jump"
  344. if attack == false then
  345. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  346. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  347. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1)
  348. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1)
  349. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  350. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  351. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  352. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  353. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  354. end
  355. else
  356. if RootPart.Velocity.y < -1 and hit == nil then
  357. Anim = "Fall"
  358. if attack == false then
  359. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  360. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  361. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  362. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  363. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  364. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  365. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  366. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  367. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  368. end
  369. else
  370. if Torsovelocity < 1 and hit ~= nil then
  371. Anim = "Idle"
  372. if attack == false then
  373. change = 1
  374. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  375. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  376. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1)
  377. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1)
  378. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1)
  379. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  380. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
  381. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1)
  382. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1)
  383. end
  384. else
  385. if Torsovelocity > 2 and hit ~= nil then
  386. Anim = "Walk"
  387. if attack == false then
  388. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  389. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  390. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  391. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  392. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  393. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  394. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  395. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  396. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  397. end
  398. end
  399. end
  400. end
  401. end
  402. end
  403. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement