Advertisement
HenloMyDude

glitcher

Dec 15th, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.93 KB | None | 0 0
  1.  
  2. --by youngmacka123--
  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. local RealPlayer = Player
  7. do print("hi")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
  8.  
  9. plr = owner
  10. char = plr.Character
  11. ra = char["Right Arm"]
  12. la = char["Left Arm"]
  13. hed = char.Head
  14. root = char.HumanoidRootPart
  15. hum = char.Humanoid
  16. dancin = false
  17.  
  18. clerp = function(toclerp, cf, number)
  19. local joint = toclerp
  20. joint.C0 = joint.C0:Lerp(cf, number)
  21. end
  22.  
  23. clerp2 = function(toclerp, cf)
  24. local joint = toclerp
  25. joint.C0 = cf
  26. end
  27.  
  28. clerp3 = function(toclerp, cf, number)
  29. local joint = toclerp
  30. joint.C1 = joint.C1:Lerp(cf, number)
  31. end
  32.  
  33. Swait,swait = function(number)
  34. if number == 0 or number == nil then
  35. game:GetService("RunService").Heartbeat:Wait()
  36. else
  37. for i = 1,number do
  38. game:GetService("RunService").Heartbeat:Wait()
  39. end
  40. end
  41. end
  42.  
  43. ezweld = function(p, a, b, cf)
  44. local weld = Instance.new("Weld",p)
  45. weld.Part0 = a
  46. weld.Part1 = b
  47. weld.C0 = cf
  48. return weld
  49. end
  50.  
  51. NewSound = function(p, id, pit, vol, loop)
  52. local Sound = Instance.new("Sound",p)
  53. Sound.Pitch = pit
  54. Sound.Volume = vol
  55. Sound.SoundId = "rbxassetid://" ..id
  56. Sound.Looped = loop
  57. Sound:Play()
  58. return Sound
  59. end
  60.  
  61. IT = Instance.new
  62. Rad = math.rad
  63. Cos = math.cos
  64. Sin = math.sin
  65. BrickC = BrickColor.new
  66. C3 = Color3.new
  67. VT = Vector3.new
  68.  
  69. anim = "Idle"
  70. attack = false
  71. local RS = char.Torso["Right Shoulder"]
  72. local LS = char.Torso["Left Shoulder"]
  73. local RH = char.Torso["Right Hip"]
  74. local LH = char.Torso["Left Hip"]
  75. local neck = char.Torso["Neck"]
  76. local anim = "Idle"
  77. local animate = char.Animate
  78. local root = char.HumanoidRootPart
  79. local rootj = root.RootJoint
  80. local timepos = 0
  81. local sine = 0
  82. local RSnor = RS.C0
  83. local LSnor = LS.C0
  84. local RHnor = RH.C0
  85. local LHnor = LH.C0
  86. local RSnor2 = RS.C1
  87. local LSnor2 = LS.C1
  88. local RHnor2 = RH.C1
  89. local LHnor2 = LH.C1
  90. local rootjnor = rootj.C0
  91. local necknor = neck.C0
  92. local tors = char.Torso
  93. hum.Animator:remove()
  94. mouse = plr:GetMouse()
  95. hold = false
  96. Debris = game:GetService("Debris")
  97.  
  98. local dustp = Instance.new("Part",char)
  99. dustp.Transparency = 1
  100. dustp.Size = Vector3.new(0.1, 0.1, 0.1)
  101. dustp.CanCollide = false
  102. dustp.Locked = true
  103. local dustj = ezweld(char, root, dustp, CFrame.new(0, -tors.Size.y - 0.5, 0))
  104. local dust = Instance.new("ParticleEmitter",dustp)
  105. dust.Rate = 3
  106. dust.Lifetime = NumberRange.new(0.35)
  107. dust.Texture = "rbxassetid://420061161"
  108. dust.Speed = NumberRange.new(2)
  109. dust.EmissionDirection = "Back"
  110. dust.Rotation = NumberRange.new(155)
  111. dust.RotSpeed = NumberRange.new(15)
  112. dust.Enabled = false
  113. dust.Size = NumberSequence.new(tors.Size.y - 1.5, tors.Size.y - 0.75)
  114. dust.Transparency = NumberSequence.new(0.25, 1)
  115. sped = 16
  116. hee = 5
  117. mode = "purity"
  118.  
  119. function RayCast(Position, Direction, Range, Ignore)
  120. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  121. end
  122.  
  123. mainc = BrickColor.new("Toothpaste")
  124. local sur = Instance.new("BillboardGui", char.Head)
  125. sur.Name = "BillboardGui"
  126. sur.Adornee = char.Head
  127. sur.Size = UDim2.new(10 / 2, 0, 5 / 2, 0)
  128. sur.StudsOffset = Vector3.new(0, 5 / 2.5, 0)
  129. local text = Instance.new("TextBox", sur)
  130. text.Text = plr.Name .." (Purity)"
  131. text.Size = UDim2.new(1, 0, 1 / 2, 0)
  132. text.TextScaled = true
  133. text.BackgroundTransparency = 1
  134. text.Font = Enum.Font.Arcade
  135. text.TextColor3 = mainc.Color
  136. text.TextStrokeColor3 = mainc.Color
  137. text.TextStrokeTransparency = 1
  138. local theme = Instance.new("Sound",root)
  139. theme.Volume = 4
  140. theme.SoundId = "rbxassetid://1539245059"
  141. theme.Pitch = 1
  142. theme.Looped = true
  143.  
  144. function changetheme(id, pit, vol)
  145. theme.SoundId = "rbxassetid://" ..id
  146. theme.Pitch = pit
  147. theme.Volume = vol
  148. end
  149.  
  150. local float = Instance.new("BodyVelocity",nil)
  151. float.MaxForce = Vector3.new(0, math.huge, 0)
  152. float.Velocity = Vector3.new(0, -5, 0)
  153. runin = false
  154. last = hed
  155.  
  156. local creator = "youngmacka123"
  157.  
  158. coroutine.resume(coroutine.create(function()
  159. while true do
  160. Swait()
  161. text.Rotation = 0 + 10 * Cos(sine / 22)
  162. end
  163. end))
  164. print("by " ..creator)
  165.  
  166. last = tors
  167.  
  168. --[[
  169.  
  170. for i = 1,55 do
  171. Swait()
  172. if last == tors then
  173. local p = Instance.new("Part",char)
  174. p.CanCollide = false
  175. p.BrickColor = mainc
  176. p.Size = Vector3.new(0.1, 0.1, 0.1)
  177. p.Material = "Neon"
  178. local wld = ezweld(char, p, tors, CFrame.new(0, 0, -1))
  179. last = p
  180. else
  181. local p = Instance.new("Part",char)
  182. p.CanCollide = false
  183. p.BrickColor = mainc
  184. p.Size = Vector3.new(0.1, 0.1, 0.1)
  185. p.Material = "Neon"
  186. local wld = ezweld(char, p, last, CFrame.new(0.2, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(10)))
  187. last = p
  188. end
  189. end
  190.  
  191. ]]--
  192.  
  193. function quickfade(model)
  194. for i,v in pairs (model:children()) do
  195. if v:IsA("Part") or v:IsA("MeshPart") then
  196. local clone = v:Clone()
  197. clone.Parent = script
  198. clone.CFrame = v.CFrame
  199. clone.Material = "Neon"
  200. clone:ClearAllChildren()
  201. clone:BreakJoints()
  202. clone.CanCollide = false
  203. clone.Anchored = true
  204. clone.BrickColor = mainc
  205. coroutine.resume(coroutine.create(function()
  206. for i = 1,11 do
  207. Swait()
  208. clone.Size = clone.Size + Vector3.new(0.1, 0.1, 0.1)
  209. clone.Transparency = clone.Transparency + 0.15
  210. end
  211. clone:remove()
  212. end))
  213. end
  214. end
  215. end
  216.  
  217. local wings = Instance.new("Model",char)
  218.  
  219. for i = 1,15 do
  220. Swait()
  221. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.5 - 0.05 * Cos(sine / (77 / 2))) * CFrame.Angles(Rad(55), 0, 0), 0.3)
  222. clerp(neck, necknor * CFrame.Angles(Rad(-55), 0, 0), 0.3)
  223. clerp(RH, RHnor * CFrame.new(0.5, 1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(55)) * CFrame.new(0, 0, 0), 0.3)
  224. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0), 0.3)
  225. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(180) + Rad(55)), 0.3)
  226. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.3)
  227. end
  228.  
  229. last = tors
  230. root.Anchored = true
  231.  
  232. for i = 1,90 do
  233. Swait()
  234. if last == tors then
  235. local p = Instance.new("Part",wings)
  236. p.CanCollide = false
  237. p.BrickColor = mainc
  238. p.Size = Vector3.new(0.1, 0.1, 0.1)
  239. p.Material = "Neon"
  240. local wld = ezweld(wings, p, tors, CFrame.new(0, 0, -1))
  241. last = p
  242. else
  243. local p = Instance.new("Part",wings)
  244. p.CanCollide = false
  245. p.BrickColor = mainc
  246. p.Size = Vector3.new(0.1, 0.1, 0.1)
  247. p.Material = "Neon"
  248. local wld = ezweld(wings, p, last, CFrame.new(0.1, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(4)))
  249. last = p
  250. end
  251. end
  252.  
  253. last = tors
  254.  
  255. NewSound(hed, 3015952873, 1, 10, false)
  256. quickfade(char)
  257.  
  258. for i = 1,55 do
  259. Swait()
  260. if last == tors then
  261. local p = Instance.new("Part",wings)
  262. p.CanCollide = false
  263. p.BrickColor = mainc
  264. p.Size = Vector3.new(0.1, 0.75, 0.1)
  265. p.Material = "Neon"
  266. local wld = ezweld(wings, p, tors, CFrame.new(1, -0.5, -1))
  267. last = p
  268. else
  269. local p = Instance.new("Part",wings)
  270. p.CanCollide = false
  271. p.BrickColor = mainc
  272. p.Size = Vector3.new(0.1, 0.75, 0.1)
  273. p.Material = "Neon"
  274. local wld = ezweld(wings, p, last, CFrame.new(0.1, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(1)))
  275. last = p
  276. end
  277. end
  278.  
  279. last = tors
  280.  
  281. NewSound(hed, 3015952873, 1, 10, false)
  282. quickfade(char)
  283.  
  284. for i = 1,55 do
  285. Swait()
  286. if last == tors then
  287. local p = Instance.new("Part",wings)
  288. p.CanCollide = false
  289. p.BrickColor = mainc
  290. p.Size = Vector3.new(0.1, 0.75, 0.1)
  291. p.Material = "Neon"
  292. local wld = ezweld(wings, p, tors, CFrame.new(1, -0.5, 1) * CFrame.Angles(0, Rad(180), 0))
  293. last = p
  294. else
  295. local p = Instance.new("Part",wings)
  296. p.CanCollide = false
  297. p.BrickColor = mainc
  298. p.Size = Vector3.new(0.1, 0.75, 0.1)
  299. p.Material = "Neon"
  300. local wld = ezweld(wings, p, last, CFrame.new(0.1, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(1)))
  301. last = p
  302. end
  303. end
  304.  
  305. NewSound(hed, 3015952873, 1, 10, false)
  306. quickfade(char)
  307.  
  308. last = tors
  309.  
  310. for i = 1,180 do
  311. Swait()
  312. if last == tors then
  313. local p = Instance.new("Part",wings)
  314. p.CanCollide = false
  315. p.BrickColor = mainc
  316. p.Size = Vector3.new(0.1, 0.1, 0.1)
  317. p.Material = "Neon"
  318. local wld = ezweld(wings, p, tors, CFrame.new(0, -1, -2))
  319. last = p
  320. else
  321. local p = Instance.new("Part",wings)
  322. p.CanCollide = false
  323. p.BrickColor = mainc
  324. p.Size = Vector3.new(0.1, 0.1, 0.1)
  325. p.Material = "Neon"
  326. local wld = ezweld(wings, p, last, CFrame.new(0.1, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(2)))
  327. last = p
  328. end
  329. end
  330.  
  331. NewSound(hed, 3015952873, 1, 10, false)
  332. quickfade(char)
  333.  
  334. theme:Play()
  335. root.Anchored = false
  336.  
  337. local r = 255
  338. local g = 0
  339. local b = 0
  340. coroutine.resume(coroutine.create(function()
  341. while wait() do
  342. for i = 0, 254/5 do
  343. Swait()
  344. g = g + 5
  345. end
  346. for i = 0, 254/5 do
  347. Swait()
  348. r = r - 5
  349. end
  350. for i = 0, 254/5 do
  351. Swait()
  352. b = b + 5
  353. end
  354. for i = 0, 254/5 do
  355. Swait()
  356. g = g - 5
  357. end
  358. for i = 0, 254/5 do
  359. Swait()
  360. r = r + 5
  361. end
  362. for i = 0, 254/5 do
  363. Swait()
  364. b = b - 5
  365. end
  366. end
  367. end))
  368.  
  369. function setmode(mode1, mode2, color)
  370. text.Text = plr.Name .." (" ..mode2 ..")"
  371. mode = mode1
  372. mainc = BrickColor.new(color)
  373. text.TextColor3 = mainc.Color
  374. for i,v in pairs (wings:children()) do
  375. if v:IsA("Part") then
  376. v.Color = mainc.Color
  377. end
  378. end
  379. end
  380.  
  381. mouse.KeyDown:connect(function(key)
  382. if key == "q" then
  383. if mode == "purity" then
  384. setmode("solitude", "Solitude", "Really black")
  385. changetheme(1564523997, 1, 6)
  386. elseif mode ~= "purity" then
  387. setmode("purity", "Purity", "Toothpaste")
  388. text.TextColor3 = BrickColor.new("Toothpaste").Color
  389. changetheme(1539245059, 1, 6)
  390. end
  391. end
  392. if key == "h" then
  393. setmode("yes", "interested", "Pink")
  394. text.TextColor3 = BrickColor.new("Pink").Color
  395. changetheme(1035287981, 1, 6)
  396. end
  397. if key == "r" then
  398. setmode("rainbow", "Rainbow", "White")
  399. text.TextColor3 = BrickColor.new("White").Color
  400. changetheme(147930134, 1, 6)
  401. end
  402. end)
  403.  
  404. while true do
  405. Swait()
  406. sine = sine + 1
  407. text.TextColor3 = mainc.Color
  408. text.TextStrokeColor3 = mainc.Color
  409. hum.WalkSpeed = sped
  410. sit = hum.Sit
  411. if mode == "rainbow" then
  412. text.TextColor3 = Color3.new(r/255, g/255, b/255)
  413. end
  414. if mode == "rainbow" then
  415. for i,v in pairs (wings:children()) do
  416. if v:IsA("Part") then
  417. v.Color = Color3.new(r/255, g/255, b/255)
  418. end
  419. end
  420. end
  421. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  422. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  423. local WALKSPEEDVALUE = 7 / (hum.WalkSpeed / 17)
  424. torsverticalvel = root.Velocity.y
  425. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  426. if TORSOVELOCITY < 1 and hitfloor ~= nil and sit == false then
  427. anim = "Idle"
  428. if attack == false and mode == "purity" or attack == false and mode == "rainbow" then
  429. sped = 16
  430. float.Parent = nil
  431. dust.Enabled = false
  432. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (77 / 2))), 0.3)
  433. clerp(neck, necknor * CFrame.Angles(Rad(0 + 0 * Cos(sine / (99 / 2))), 0, Rad(0 + 0 * Cos(sine / (99)))), 0.3)
  434. clerp(RH, RHnor * CFrame.Angles(Rad(-3), Rad(-7), 0) * CFrame.new(0, 0, 0), 0.3)
  435. clerp(LH, LHnor * CFrame.Angles(Rad(-3), Rad(7), 0) * CFrame.new(0, 0, 0), 0.3)
  436. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(85 + 3 * Cos(sine / 110)), Rad(88)), 0.15)
  437. clerp(LS, LSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(-67 - 2 * Cos(sine / 110)), Rad(-95) - Rad(0)), 0.15)
  438. elseif attack == false and mode == "solitude" then
  439. sped = 16
  440. float.Parent = nil
  441. dust.Enabled = false
  442. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (77 / 2))) * CFrame.Angles(0, 0, Rad(-33)), 0.3)
  443. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(33)), 0.3)
  444. clerp(RH, RHnor * CFrame.Angles(Rad(-15), Rad(-11), 0) * CFrame.new(0, 0, 0), 0.3)
  445. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, 0, 0), 0.3)
  446. clerp(RS, RSnor * CFrame.new(0, -0.1, 0) * CFrame.Angles(Rad(-25 - 5 * Cos(sine / 22)), Rad(0), Rad(0)), 0.15)
  447. clerp(LS, LSnor * CFrame.Angles(Rad(-25), Rad(0), Rad(-180)), 0.15)
  448. elseif attack == false and mode == "yes" then
  449. sped = 16
  450. float.Parent = nil
  451. dust.Enabled = false
  452. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (77 / 2))) * CFrame.Angles(0, Rad(15), 0), 0.3)
  453. clerp(neck, necknor * CFrame.Angles(0, Rad(-15), 0), 0.3)
  454. clerp(RH, RHnor * CFrame.Angles(Rad(15), Rad(-7), 0) * CFrame.new(0, -0.25, 0), 0.3)
  455. clerp(LH, LHnor * CFrame.Angles(Rad(-15), Rad(0), 0) * CFrame.new(0, 0.25, 0), 0.3)
  456. clerp(RS, RSnor * CFrame.new(0, 0.01, -0.5) * CFrame.Angles(0, Rad(85 + 3 * Cos(sine / 110)), Rad(88)), 0.15)
  457. clerp(LS, LSnor * CFrame.Angles(Rad(-35), Rad(0), Rad(-160)), 0.15)
  458. end
  459. elseif TORSOVELOCITY > 1 and hitfloor ~= nil and sit == false then
  460. anim = "Walk"
  461. if attack == false then
  462. if mode == "purity" or mode == "yes" or mode == "solitude" then
  463. sped = 16
  464. elseif mode == "rainbow" then
  465. sped = 45
  466. end
  467. float.Parent = nil
  468. dust.Enabled = false
  469. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(-Rad(TiltVelocity.z) * 0.35, Rad(0) -Rad(TiltVelocity.x) * 0.4 + root.Velocity.y / 35, 0), 0.3)
  470. clerp(neck, necknor * CFrame.Angles(Rad(TiltVelocity.z) * 0.35, hed.Velocity.y / 35, 0), 0.3)
  471. clerp(RH, RHnor * CFrame.new(0 + 0.025 * Sin(sine / (WALKSPEEDVALUE / 1)), 0.05 + 0.1 * Sin(sine / (WALKSPEEDVALUE / 2)), 0) * CFrame.Angles(Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Cos(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0, -0.025 * Cos(sine / 12), 0), 0.3)
  472. clerp(LH, LHnor * CFrame.new(0 + 0.025 * Sin(sine / (WALKSPEEDVALUE / 1)), 0.05 + 0.1 * Sin(sine / (WALKSPEEDVALUE / 2)), 0) * CFrame.Angles(Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Cos(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0, -0.025 * Cos(sine / 12), 0), 0.3)
  473. clerp(RS, RSnor * CFrame.Angles(Rad(0), 0, Rad(-hee * Cos(sine / WALKSPEEDVALUE)) - 0 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10), 0.3)
  474. clerp(LS, LSnor * CFrame.Angles(Rad(0), 0, Rad(-hee * Cos(sine / WALKSPEEDVALUE)) - 0 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10), 0.3)
  475. end
  476. elseif torsverticalvel > 0.05 and hitfloor == nil and sit == false then
  477. anim = "Jump"
  478. if attack == false then
  479. sped = 16
  480. float.Parent = nil
  481. dust.Enabled = false
  482. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(Rad(5), 0, 0), 0.3)
  483. clerp(neck, necknor * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  484. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(-20)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  485. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(20)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
  486. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(160)), 0.3)
  487. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(-160)), 0.3)
  488. end
  489. elseif torsverticalvel < 0.05 and hitfloor == nil and sit == false then
  490. anim = "Fall"
  491. if attack == false then
  492. sped = 16
  493. float.Parent = nil
  494. dust.Enabled = false
  495. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  496. clerp(neck, necknor * CFrame.Angles(Rad(25), 0, 0), 0.3)
  497. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  498. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  499. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(35)), 0.3)
  500. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-35)), 0.3)
  501. end
  502. elseif sit == true then
  503. anim = "Sit"
  504. end
  505. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement