Advertisement
yoyo74456

Test

Sep 15th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.83 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. Player = owner
  6. PlayerGui = Player.PlayerGui
  7. Cam = workspace.CurrentCamera
  8. Backpack = Player.Backpack
  9. Character = Player.Character
  10. Humanoid = Character.Humanoid
  11. Mouse = Player:GetMouse()
  12. RootPart = Character["HumanoidRootPart"]
  13. Torso = Character["Torso"]
  14. Head = Character["Head"]
  15. RightArm = Character["Right Arm"]
  16. LeftArm = Character["Left Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LeftLeg = Character["Left Leg"]
  19. RootJoint = RootPart["RootJoint"]
  20. Neck = Torso["Neck"]
  21. RightShoulder = Torso["Right Shoulder"]
  22. LeftShoulder = Torso["Left Shoulder"]
  23. RightHip = Torso["Right Hip"]
  24. LeftHip = Torso["Left Hip"]
  25. USERNAME = "HANdsum"
  26. local NCFrame
  27. local NPosition
  28. Character.Archivable = true
  29.  
  30. IT = Instance.new
  31. CF = CFrame.new
  32. VT = Vector3.new
  33. RAD = math.rad
  34. C3 = Color3.new
  35. UD2 = UDim2.new
  36. BRICKC = BrickColor.new
  37. ANGLES = CFrame.Angles
  38. EULER = CFrame.fromEulerAnglesXYZ
  39. COS = math.cos
  40. ACOS = math.acos
  41. SIN = math.sin
  42. ASIN = math.asin
  43. ABS = math.abs
  44. MRANDOM = math.random
  45. FLOOR = math.floor
  46.  
  47. --//=================================\\
  48. --|| USEFUL VALUES
  49. --\\=================================//
  50.  
  51. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  52. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  53. end
  54.  
  55. Animation_Speed = 3
  56. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  57. local Speed = 20
  58. local SIZE = 1
  59. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  60. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  61. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  62. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  63. local DAMAGEMULTIPLIER = 1
  64. local ANIM = "Idle"
  65. local ATTACK = false
  66. local EQUIPPED = false
  67. local HOLD = false
  68. local COMBO = 1
  69. local Rooted = false
  70. local SINE = 0
  71. local KEYHOLD = false
  72. local CHANGE = 2 / Animation_Speed
  73. local WALKINGANIM = false
  74. local VALUE1 = false
  75. local VALUE2 = false
  76. local ANIMATOR = Humanoid.Animator
  77. local ANIMATE = Character.Animate
  78. --//=================================\\
  79. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  80. --\\=================================//
  81.  
  82.  
  83. ArtificialHB = Instance.new("BindableEvent", script)
  84. ArtificialHB.Name = "ArtificialHB"
  85.  
  86. script:WaitForChild("ArtificialHB")
  87.  
  88. frame = Frame_Speed
  89. tf = 0
  90. allowframeloss = false
  91. tossremainder = false
  92. lastframe = tick()
  93. script.ArtificialHB:Fire()
  94.  
  95. game:GetService("RunService").Heartbeat:connect(function(s, p)
  96. tf = tf + s
  97. if tf >= frame then
  98. if allowframeloss then
  99. script.ArtificialHB:Fire()
  100. lastframe = tick()
  101. else
  102. for i = 1, math.floor(tf / frame) do
  103. script.ArtificialHB:Fire()
  104. end
  105. lastframe = tick()
  106. end
  107. if tossremainder then
  108. tf = 0
  109. else
  110. tf = tf - frame * math.floor(tf / frame)
  111. end
  112. end
  113. end)
  114.  
  115. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  116. local NEWPART = IT("Part")
  117. NEWPART.formFactor = FORMFACTOR
  118. NEWPART.Reflectance = REFLECTANCE
  119. NEWPART.Transparency = TRANSPARENCY
  120. NEWPART.CanCollide = false
  121. NEWPART.Locked = true
  122. NEWPART.Anchored = true
  123. if ANCHOR == false then
  124. NEWPART.Anchored = false
  125. end
  126. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  127. NEWPART.Name = NAME
  128. NEWPART.Size = SIZE
  129. NEWPART.Position = Torso.Position
  130. NEWPART.Material = MATERIAL
  131. NEWPART:BreakJoints()
  132. NEWPART.Parent = PARENT
  133. return NEWPART
  134. end
  135.  
  136. function Swait(NUMBER)
  137. if NUMBER == 0 or NUMBER == nil then
  138. ArtificialHB.Event:wait()
  139. else
  140. for i = 1, NUMBER do
  141. ArtificialHB.Event:wait()
  142. end
  143. end
  144. end
  145.  
  146. function QuaternionFromCFrame(cf)
  147. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  148. local trace = m00 + m11 + m22
  149. if trace > 0 then
  150. local s = math.sqrt(1 + trace)
  151. local recip = 0.5 / s
  152. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  153. else
  154. local i = 0
  155. if m11 > m00 then
  156. i = 1
  157. end
  158. if m22 > (i == 0 and m00 or m11) then
  159. i = 2
  160. end
  161. if i == 0 then
  162. local s = math.sqrt(m00 - m11 - m22 + 1)
  163. local recip = 0.5 / s
  164. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  165. elseif i == 1 then
  166. local s = math.sqrt(m11 - m22 - m00 + 1)
  167. local recip = 0.5 / s
  168. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  169. elseif i == 2 then
  170. local s = math.sqrt(m22 - m00 - m11 + 1)
  171. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  172. end
  173. end
  174. end
  175.  
  176. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  177. local xs, ys, zs = x + x, y + y, z + z
  178. local wx, wy, wz = w * xs, w * ys, w * zs
  179. local xx = x * xs
  180. local xy = x * ys
  181. local xz = x * zs
  182. local yy = y * ys
  183. local yz = y * zs
  184. local zz = z * zs
  185. 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))
  186. end
  187.  
  188. function QuaternionSlerp(a, b, t)
  189. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  190. local startInterp, finishInterp;
  191. if cosTheta >= 0.0001 then
  192. if (1 - cosTheta) > 0.0001 then
  193. local theta = ACOS(cosTheta)
  194. local invSinTheta = 1 / SIN(theta)
  195. startInterp = SIN((1 - t) * theta) * invSinTheta
  196. finishInterp = SIN(t * theta) * invSinTheta
  197. else
  198. startInterp = 1 - t
  199. finishInterp = t
  200. end
  201. else
  202. if (1 + cosTheta) > 0.0001 then
  203. local theta = ACOS(-cosTheta)
  204. local invSinTheta = 1 / SIN(theta)
  205. startInterp = SIN((t - 1) * theta) * invSinTheta
  206. finishInterp = SIN(t * theta) * invSinTheta
  207. else
  208. startInterp = t - 1
  209. finishInterp = t
  210. end
  211. end
  212. 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
  213. end
  214.  
  215. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  216. local NEWWELD = IT(TYPE)
  217. NEWWELD.Part0 = PART0
  218. NEWWELD.Part1 = PART1
  219. NEWWELD.C0 = C0
  220. NEWWELD.C1 = C1
  221. NEWWELD.Parent = PARENT
  222. return NEWWELD
  223. end
  224.  
  225. function Clerp(a, b, t)
  226. local qa = {QuaternionFromCFrame(a)}
  227. local qb = {QuaternionFromCFrame(b)}
  228. local ax, ay, az = a.x, a.y, a.z
  229. local bx, by, bz = b.x, b.y, b.z
  230. local _t = 1 - t
  231. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  232. end
  233.  
  234. local Player = owner
  235. local Char = Player.Character
  236. local TweenService = game:GetService("TweenService")
  237. local GoUp = true
  238. local Hum = Char:FindFirstChildOfClass("Humanoid")
  239.  
  240. Char.Archivable = true
  241. local Clone = Char:Clone()
  242. Char.Archivable = false
  243. Clone.Parent = nil
  244.  
  245. local Visualizers = Instance.new("Model", Char)
  246.  
  247. local RotatingPart = Instance.new("Part", Char)
  248. RotatingPart.Name = "Main"
  249. RotatingPart.Size = Vector3.new(0.1,0.1,0.1)
  250. RotatingPart.Transparency = 1
  251. RotatingPart.CanCollide = false
  252.  
  253. local Song = Instance.new("Sound", RotatingPart)
  254. Song.SoundId = "rbxassetid://1771529564"
  255. Song.Volume = 5
  256. Song.Looped = true
  257. Song:Play()
  258.  
  259. local BPRotating = Instance.new("BodyPosition", RotatingPart)
  260.  
  261. local BAVRotating = Instance.new("BodyAngularVelocity", RotatingPart)
  262. BAVRotating.AngularVelocity = Vector3.new(0,0.2,0)
  263.  
  264. for i = 360, 0, -40 do
  265. local Visual = Instance.new("Part", Visualizers)
  266. Visual.Size = Vector3.new(0.25,0.25,0.25)
  267. Visual.CanCollide = false
  268. Visual.Massless = true
  269. local MainWeld = Instance.new("Weld", Visual)
  270. MainWeld.C0 = CFrame.new(0,3,5) * CFrame.Angles(math.rad(0),math.rad(i),math.rad(0))
  271. MainWeld.Part0 = Visual
  272. MainWeld.Part1 = RotatingPart
  273. end
  274.  
  275. Char:WaitForChild("Humanoid").Died:Connect(function()
  276. Char.Humanoid:Destroy()
  277. end)
  278.  
  279. local LoudnessEvent = Instance.new("RemoteEvent")
  280. LoudnessEvent.Name = "LoudnessEvent"
  281. LoudnessEvent.Parent = NLS([==[
  282. Player = owner
  283. Char = owner.Character
  284. Running = false
  285. local mouse = Player:GetMouse()
  286. local NewPart = Instance.new("Part", nil)
  287.  
  288. mouse.KeyDown:connect(function(key)
  289. if key:lower() == 'q' then
  290. KeyPressed = true
  291. owner.Character:Destroy()
  292. wait(2)
  293. workspace:WaitForChild("HANdsum")
  294. workspace.Camera.CameraSubject = owner.Character
  295. end
  296. end)
  297.  
  298. local LoudnessEvent = script.LoudnessEvent
  299. game:GetService("RunService").RenderStepped:Connect(function()
  300. if workspace:FindFirstChild("HANdsum") ~= nil then
  301. NewPart.CFrame = workspace:FindFirstChild("HANdsum").Torso.CFrame
  302. end
  303. if owner.Character:FindFirstChild("Model") ~= nil then
  304. if Char:FindFirstChild("Main") ~= nil then
  305. PL = Char.Main.Sound.PlaybackLoudness
  306. LoudnessEvent:FireServer(PL, KeyPressed, NewPart.CFrame, NewPart.Position)
  307. KeyPressed = false
  308. else
  309. script:Destroy()
  310. return
  311. end
  312. end
  313. end)
  314. ]==],owner.PlayerGui)
  315.  
  316. LoudnessEvent.OnServerEvent:Connect(function(Plr, PL, KeyPressed, NewCFrame, NewPosition)
  317. Update(PL, KeyPressed, NewCFrame, NewPosition)
  318. end)
  319.  
  320. function Update(PL, KeyPressed, NewCFrame, NewPosition)
  321. if NewCFrame ~= nil then
  322. NCFrame = NewCFrame
  323. end
  324.  
  325. if NewPosition ~= nil then
  326. NPosition = NewPosition
  327. end
  328.  
  329. if KeyPressed == true then
  330. if workspace:FindFirstChild(USERNAME) ~= nil then
  331. PlayerReset()
  332. else
  333. local NewModel = Instance.new("Model", workspace)
  334. NewModel.Name = USERNAME
  335. owner.Character = NewModel
  336. PlayerReset()
  337. end
  338. end
  339.  
  340. BPRotating.Position = Char.Torso.Position + Vector3.new(0,0.25,0)
  341. NewPL = PL/100 * (Song.Volume/10)
  342. for index, descendant in pairs(Visualizers:GetDescendants()) do
  343. if descendant.ClassName == "Part" then
  344. local Info = TweenInfo.new (0.2)
  345. local goal = {Size = Vector3.new(descendant.Size.X,NewPL,descendant.Size.Z)}
  346.  
  347. local Tween = TweenService:Create(descendant,Info,goal)
  348. Tween:Play()
  349. end
  350. end
  351. end
  352.  
  353. function PlayerReset()
  354. Char = Clone:Clone()
  355. Char.Parent = workspace
  356. Player.Character = Char
  357. Char.Torso.CFrame = CFrame.new(NCFrame.X, NCFrame.Y, NCFrame.Z)
  358. local NC = NCFrame + Vector3.new(0,1,0)
  359. local Info = TweenInfo.new (3)
  360. local goal = {CFrame = NC}
  361.  
  362. local Tween = TweenService:Create(Char.Torso,Info,goal)
  363. Tween:Play()
  364. end
  365.  
  366. while true do
  367. Swait()
  368. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  369. v:Stop();
  370. end
  371. ANIMATE.Parent = nil
  372. SINE = SINE + CHANGE*1.5
  373. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  374. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  375. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  376. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  377. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  378. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  379. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  380. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  381. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  382. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  383. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  384. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  385. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  386. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  387. end
  388. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  389. ANIM = "Jump"
  390. if ATTACK == false then
  391. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  392. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  393. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  394. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  395. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  396. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  397. end
  398. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  399. ANIM = "Fall"
  400. if ATTACK == false then
  401. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  402. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  403. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  404. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  405. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  406. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  407. end
  408. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  409. ANIM = "Idle"
  410. if ATTACK == false then
  411. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  412. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  413. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  414. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  415. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  416. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  417. end
  418. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  419. ANIM = "Walk"
  420. if ATTACK == false then
  421. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  422. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  423. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  424. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  425. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0.25*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  426. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0.25*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  427. end
  428. end
  429. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement