Advertisement
XSleepyDemonX_17

tailo

Sep 13th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.18 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = Player = game:GetService("Players").Nekuwo
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. local Player = game.Players.localPlayer
  89. local Character = Player.Character
  90. local red = 255
  91. local green = 255
  92. local blue = 255
  93. local Humanoid = Character.Humanoid
  94. local mouse = Player:GetMouse()
  95. local m = Instance.new("Model", Character)
  96. m.Name = "WeaponModel"
  97. local LeftArm = Character["Left Arm"]
  98. local RightArm = Character["Right Arm"]
  99. local LeftLeg = Character["Left Leg"]
  100. local RightLeg = Character["Right Leg"]
  101. local Head = Character.Head
  102. local Torso = Character.Torso
  103. local cam = game.Workspace.CurrentCamera
  104. local RootPart = Character.HumanoidRootPart
  105. local RootJoint = RootPart.RootJoint
  106. local equipped = false
  107. local attack = false
  108. local Anim = "Idle"
  109. local idle = 0
  110. local attacktype = 1
  111. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  112. local velocity = RootPart.Velocity.y
  113. local sine = 0
  114. local change = 1
  115. local grabbed = false
  116. local cn = CFrame.new
  117. local mr = math.rad
  118. local angles = CFrame.Angles
  119. local ud = UDim2.new
  120. local c3 = Color3.new
  121. local lim = 0
  122. local st = 0
  123. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  124. local attacktype = 1
  125. local ZTarget, RocketTarget = nil, nil
  126. local euler = CFrame.fromEulerAnglesXYZ
  127. function clerp(a,b,t)
  128. local qa = {QuaternionFromCFrame(a)}
  129. local qb = {QuaternionFromCFrame(b)}
  130. local ax, ay, az = a.x, a.y, a.z
  131. local bx, by, bz = b.x, b.y, b.z
  132. local _t = 1-t
  133. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  134. end
  135.  
  136. function QuaternionFromCFrame(cf)
  137. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  138. local trace = m00 + m11 + m22
  139. if trace > 0 then
  140. local s = math.sqrt(1 + trace)
  141. local recip = 0.5/s
  142. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  143. else
  144. local i = 0
  145. if m11 > m00 then
  146. i = 1
  147. end
  148. if m22 > (i == 0 and m00 or m11) then
  149. i = 2
  150. end
  151. if i == 0 then
  152. local s = math.sqrt(m00-m11-m22+1)
  153. local recip = 0.5/s
  154. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  155. elseif i == 1 then
  156. local s = math.sqrt(m11-m22-m00+1)
  157. local recip = 0.5/s
  158. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  159. elseif i == 2 then
  160. local s = math.sqrt(m22-m00-m11+1)
  161. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  162. end
  163. end
  164. end
  165.  
  166. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  167. local xs, ys, zs = x + x, y + y, z + z
  168. local wx, wy, wz = w*xs, w*ys, w*zs
  169. local xx = x*xs
  170. local xy = x*ys
  171. local xz = x*zs
  172. local yy = y*ys
  173. local yz = y*zs
  174. local zz = z*zs
  175. 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))
  176. end
  177.  
  178. function QuaternionSlerp(a, b, t)
  179. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  180. local startInterp, finishInterp;
  181. if cosTheta >= 0.0001 then
  182. if (1 - cosTheta) > 0.0001 then
  183. local theta = math.acos(cosTheta)
  184. local invSinTheta = 1/math.sin(theta)
  185. startInterp = math.sin((1-t)*theta)*invSinTheta
  186. finishInterp = math.sin(t*theta)*invSinTheta
  187. else
  188. startInterp = 1-t
  189. finishInterp = t
  190. end
  191. else
  192. if (1+cosTheta) > 0.0001 then
  193. local theta = math.acos(-cosTheta)
  194. local invSinTheta = 1/math.sin(theta)
  195. startInterp = math.sin((t-1)*theta)*invSinTheta
  196. finishInterp = math.sin(t*theta)*invSinTheta
  197. else
  198. startInterp = t-1
  199. finishInterp = t
  200. end
  201. end
  202. 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
  203. end
  204. rayCast = function(Position, Direction, Range, Ignore)
  205. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  206. end
  207. local v = game.Players.localPlayer
  208. local torso = v.Character.Torso
  209. wait(1)
  210. local p = Instance.new("Part", v.Character)
  211. p.Name = "kit"
  212. p.Anchored = true
  213. p.Transparency = 0
  214. p.Material = "Plastic"
  215. p.CanCollide = false
  216. p.TopSurface = 0
  217. p.BottomSurface = 0
  218. p.Size = Vector3.new(0.2, 0.2, 0.2)
  219. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  220. local msh = Instance.new("SpecialMesh", p)
  221. msh.Scale = Vector3.new(-2, 2, 2)
  222. msh.MeshId = "http://www.roblox.com/asset/?id=188635159"
  223. msh.TextureId = "http://www.roblox.com/asset/?id=188539332"
  224. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  225. local pn = Instance.new("Part", v.Character.kit)
  226. pn.Name = "tail"
  227. pn.Anchored = true
  228. pn.Transparency = 0
  229. pn.Material = "Plastic"
  230. pn.CanCollide = false
  231. pn.TopSurface = 0
  232. pn.BottomSurface = 0
  233. pn.Size = Vector3.new(5, 3, 3)
  234. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  235. local mshn = Instance.new("SpecialMesh", pn)
  236. mshn.Scale = Vector3.new(2, 2, 2)
  237. mshn.MeshId = "http://www.roblox.com/asset/?id=188635159"
  238. mshn.TextureId = "http://www.roblox.com/asset/?id=188539332"
  239. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  240. local pn3 = Instance.new("Part", v.Character.kit)
  241. pn3.Name = "tail"
  242. pn3.Anchored = true
  243. pn3.Transparency = 0
  244. pn3.Material = "Plastic"
  245. pn3.CanCollide = false
  246. pn3.TopSurface = 0
  247. pn3.BottomSurface = 0
  248. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  249. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  250. local mshn3 = Instance.new("SpecialMesh", pn3)
  251. mshn3.Scale = Vector3.new(2, 2, 2)
  252. mshn3.MeshId = "http://www.roblox.com/asset/?id=188635159"
  253. mshn3.TextureId = "http://www.roblox.com/asset/?id=188539332"
  254. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  255. local pn4 = Instance.new("Part", v.Character.kit)
  256. pn4.Name = "tail"
  257. pn4.Anchored = true
  258. pn4.Transparency = 0
  259. pn4.Material = "Plastic"
  260. pn4.CanCollide = false
  261. pn4.TopSurface = 0
  262. pn4.BottomSurface = 0
  263. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  264. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  265. local mshn4 = Instance.new("SpecialMesh", pn4)
  266. mshn4.Scale = Vector3.new(-2, 2, 2)
  267. mshn4.MeshId = "http://www.roblox.com/asset/?id=188635159"
  268. mshn4.TextureId = "http://www.roblox.com/asset/?id=188539332"
  269. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  270. local pn5 = Instance.new("Part", v.Character.kit)
  271. pn5.Name = "tail"
  272. pn5.Anchored = true
  273. pn5.Transparency = 0
  274. pn5.Material = "Plastic"
  275. pn5.CanCollide = false
  276. pn5.TopSurface = 0
  277. pn5.BottomSurface = 0
  278. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  279. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  280. local mshn5 = Instance.new("SpecialMesh", pn5)
  281. mshn5.Scale = Vector3.new(2, 2, 2)
  282. mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
  283. mshn5.TextureId = "http://www.roblox.com/asset/?id=188539332"
  284. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  285. local pn6 = Instance.new("Part", v.Character.kit)
  286. pn6.Name = "tail"
  287. pn6.Anchored = true
  288. pn6.Transparency = 0
  289. pn6.Material = "Plastic"
  290. pn6.CanCollide = false
  291. pn6.TopSurface = 0
  292. pn6.BottomSurface = 0
  293. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  294. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  295. local mshn6 = Instance.new("SpecialMesh", pn6)
  296. mshn6.Scale = Vector3.new(2, 2, 2)
  297. mshn6.MeshId = "http://www.roblox.com/asset/?id=188635159"
  298. mshn6.TextureId = "http://www.roblox.com/asset/?id=188539332"
  299. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  300. local pn7 = Instance.new("Part", v.Character.kit)
  301. pn7.Name = "tail"
  302. pn7.Anchored = true
  303. pn7.Transparency = 0
  304. pn7.Material = "Plastic"
  305. pn7.CanCollide = false
  306. pn7.TopSurface = 0
  307. pn7.BottomSurface = 0
  308. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  309. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  310. local mshn7 = Instance.new("SpecialMesh", pn7)
  311. mshn7.Scale = Vector3.new(2, 2, 2)
  312. mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
  313. mshn7.TextureId = "http://www.roblox.com/asset/?id=188539332"
  314. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  315. local pn8 = Instance.new("Part", v.Character.kit)
  316. pn8.Name = "tail"
  317. pn8.Anchored = true
  318. pn8.Transparency = 0
  319. pn8.Material = "Plastic"
  320. pn8.CanCollide = false
  321. pn8.TopSurface = 0
  322. pn8.BottomSurface = 0
  323. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  324. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  325. local mshn8 = Instance.new("SpecialMesh", pn8)
  326. mshn8.Scale = Vector3.new(-2, 2, 2)
  327. mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
  328. mshn8.TextureId = "http://www.roblox.com/asset/?id=188539332"
  329. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  330. local pn9 = Instance.new("Part", v.Character.kit)
  331. pn9.Name = "tail"
  332. pn9.Anchored = true
  333. pn9.Transparency = 0
  334. pn9.Material = "Plastic"
  335. pn9.CanCollide = false
  336. pn9.TopSurface = 0
  337. pn9.BottomSurface = 0
  338. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  339. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  340. local mshn9 = Instance.new("SpecialMesh", pn9)
  341. mshn9.Scale = Vector3.new(-2, 2, 2)
  342. mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
  343. mshn9.TextureId = "http://www.roblox.com/asset/?id=188539332"
  344. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  345. local pn0 = Instance.new("Part", v.Character.kit)
  346. pn0.Name = "ears"
  347. pn0.Anchored = true
  348. pn0.Transparency = 0
  349. pn0.Material = "Plastic"
  350. pn0.CanCollide = false
  351. pn0.TopSurface = 0
  352. pn0.BottomSurface = 0
  353. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  354. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  355. local mshn0 = Instance.new("SpecialMesh", pn0)
  356. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  357. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  358. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  359. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  360. p.Anchored = false
  361. local motor1 = Instance.new("Weld", p)
  362. motor1.Part0 = p
  363. motor1.Part1 = torso
  364. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  365. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  366. pn.Anchored = false
  367. local motor2 = Instance.new("Weld", pn)
  368. motor2.Part0 = pn
  369. motor2.Part1 = torso
  370. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  371. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  372. pn3.Anchored = false
  373. local motor3 = Instance.new("Weld", pn3)
  374. motor3.Part0 = pn3
  375. motor3.Part1 = torso
  376. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  377. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  378. pn4.Anchored = false
  379. local motor4 = Instance.new("Weld", pn4)
  380. motor4.Part0 = pn4
  381. motor4.Part1 = torso
  382. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  383. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  384. pn5.Anchored = false
  385. local motor5 = Instance.new("Weld", pn5)
  386. motor5.Part0 = pn5
  387. motor5.Part1 = torso
  388. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  389. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  390. pn6.Anchored = false
  391. local motor6 = Instance.new("Weld", pn6)
  392. motor6.Part0 = pn6
  393. motor6.Part1 = torso
  394. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  395. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  396. pn7.Anchored = false
  397. local motor7 = Instance.new("Weld", pn7)
  398. motor7.Part0 = pn7
  399. motor7.Part1 = torso
  400. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  401. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  402. pn8.Anchored = false
  403. local motor8 = Instance.new("Weld", pn8)
  404. motor8.Part0 = pn8
  405. motor8.Part1 = torso
  406. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  407. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  408. pn9.Anchored = false
  409. local motor9 = Instance.new("Weld", pn9)
  410. motor9.Part0 = pn9
  411. motor9.Part1 = torso
  412. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  413. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  414. pn0.Anchored = false
  415. local motor0 = Instance.new("Weld", pn0)
  416. motor0.Part0 = pn0
  417. motor0.Part1 = v.Character.Head
  418. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  419. game:GetService("RunService").Stepped:connect(function()
  420. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  421. velocity = RootPart.Velocity.y
  422. sine = sine + change
  423. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  424. if equipped == true or equipped == false then
  425. if RootPart.Velocity.y > 1 and hit == nil then
  426. Anim = "Jump"
  427. if attack == false then
  428. 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)
  429. 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)
  430. 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)
  431. 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)
  432. 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)
  433. 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)
  434. 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)
  435. 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)
  436. 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)
  437. end
  438. else
  439. if RootPart.Velocity.y < -1 and hit == nil then
  440. Anim = "Fall"
  441. if attack == false then
  442. 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)
  443. 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)
  444. 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)
  445. 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)
  446. 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)
  447. 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)
  448. 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)
  449. 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)
  450. 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)
  451. end
  452. else
  453. if Torsovelocity < 1 and hit ~= nil then
  454. Anim = "Idle"
  455. if attack == false then
  456. change = 1
  457. 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)
  458. 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)
  459. 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)
  460. 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)
  461. 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)
  462. 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)
  463. 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)
  464. 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)
  465. 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)
  466. end
  467. else
  468. if Torsovelocity > 2 and hit ~= nil then
  469. Anim = "Walk"
  470. if attack == false then
  471. 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)
  472. 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)
  473. 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)
  474. 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)
  475. 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)
  476. 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)
  477. 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)
  478. 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)
  479. 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)
  480. end
  481. end
  482. end
  483. end
  484. end
  485. end
  486. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement