Advertisement
HenloMyDude

faux

Dec 21st, 2019
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.02 KB | None | 0 0
  1.  
  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("faux")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
  6.  
  7. plr = owner
  8. char = plr.Character
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  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 root = char.HumanoidRootPart
  77. local rootj = root.RootJoint
  78. local sine = 0
  79. local RSnor = RS.C0
  80. local LSnor = LS.C0
  81. local RHnor = RH.C0
  82. local LHnor = LH.C0
  83. local RSnor2 = RS.C1
  84. local LSnor2 = LS.C1
  85. local RHnor2 = RH.C1
  86. local LHnor2 = LH.C1
  87. local rootjnor = rootj.C0
  88. local necknor = neck.C0
  89. local tors = char.Torso
  90. hum.Animator:remove()
  91. mouse = plr:GetMouse()
  92. hold = false
  93. Debris = game:GetService("Debris")
  94.  
  95. sped = 16
  96. keyhold = false
  97. spino = 0
  98. hito = true
  99. shield = false
  100.  
  101. function RayCast(Position, Direction, Range, Ignore)
  102. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  103. end
  104.  
  105. function shine()
  106. shield = true
  107. local s = Instance.new("Sound", root)
  108. s.SoundId = "rbxassetid://277550780"
  109. s.Volume = 7
  110. s:Play()
  111. Debris:AddItem(s, 1.5)
  112. attack = true
  113. keyhold = true
  114. root.Anchored = false
  115. local sur = Instance.new("BillboardGui", root)
  116. sur.Name = "Billboard"
  117. sur.Adornee = root
  118. sur.Size = UDim2.new(10, 0, 7, 0)
  119. sur.StudsOffset = Vector3.new(2.5, 0, 0)
  120. local text = Instance.new("ImageLabel", sur)
  121. text.Image = "rbxassetid://325545755"
  122. text.Size = UDim2.new(0.5, 0, 0.75, 0)
  123. text.BackgroundTransparency = 1
  124. shield = true
  125. coroutine.resume(coroutine.create(function()
  126. repeat
  127. Swait(1)
  128. root.Velocity = Vector3.new(0, 0, 0)
  129. until keyhold == false
  130. end))
  131. sped = 0
  132. local shield2 = Instance.new("Part", char)
  133. shield2.Transparency = 1
  134. shield2.CFrame = root.CFrame * CFrame.new(0, 0, 0)
  135. shield2.Size = Vector3.new(4, 4, 4)
  136. shield2.CanCollide = false
  137. shield2.Anchored = false
  138. local weld = ezweld(char, shield2, root, CFrame.new())
  139. shield2.Touched:connect(function(hit)
  140. for i,v in pairs (hit:GetDescendants()) do
  141. if v:IsA("BodyVelocity") then
  142. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  143. v.Velocity = hit.CFrame.lookVector * -50
  144. end
  145. local ack = hit
  146. ack.Touched:connect(function(hit)
  147. if ack.Name ~= "HumanoidRootPart" and hit.Parent ~= char and ack:FindFirstChildOfClass("BodyVelocity") then
  148. for i,v in pairs (hit.Parent:children()) do
  149. if v:IsA("Humanoid") then
  150. v.Health = v.Health - 10
  151. ack:remove()
  152. end
  153. end
  154. end
  155. end)
  156. hum.Health = hp
  157. hp = hum.Health
  158. end
  159. end)
  160. repeat
  161. text.ImageTransparency = 0
  162. sped = 0
  163. wait(0.05)
  164. text.ImageTransparency = 0.25
  165. wait(0.05)
  166. sped = 0
  167. until keyhold == false
  168. shield2:remove()
  169. shield = false
  170. sped = 16
  171. sur:remove()
  172. root.Anchored = false
  173. keyhold = false
  174. attack = false
  175. shield = false
  176. end
  177.  
  178. function gun()
  179. local s = Instance.new("Sound", la) s.SoundId = "rbxassetid://142072239" s.Volume = 3 s:Play() Debris:AddItem(s, 1.5)
  180. attack = true
  181. for i = 1,8 do
  182. Swait()
  183. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-90)), 0.3)
  184. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(90)), 0.4)
  185. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.4)
  186. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.4)
  187. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.4)
  188. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-90), Rad(0), Rad(0)), 0.4)
  189. end
  190. local pew = Instance.new("Part", char)
  191. pew.CanCollide = false
  192. pew.Size = Vector3.new(0.25, 0.25, 2)
  193. pew.Color = Color3.new(1, 0, 0)
  194. pew.Transparency = 0.25
  195. pew.Material = "Neon"
  196. pew.CFrame = root.CFrame * CFrame.new(0, 1, -0.75)
  197. pew.Touched:connect(function(hit)
  198. local dud = hit.Parent
  199. if dud ~= char then
  200. for i,v in pairs (dud:children()) do
  201. if v:IsA("Humanoid") then
  202. v.Health = v.Health - 5
  203. pew:remove()
  204. end
  205. end
  206. end
  207. end)
  208. local bv = Instance.new("BodyVelocity", pew)
  209. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  210. bv.Velocity = pew.CFrame.lookVector * 50
  211. attack = false
  212. end
  213.  
  214. function SpeedDashEffect(chara)
  215. fakecharthing = Instance.new("Model",chara)
  216. for _,v in pairs (chara:children()) do
  217. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  218. local cloney = v:Clone()
  219. cloney.Material = "Glass"
  220. cloney.Anchored = true
  221. cloney.CanCollide = false
  222. cloney.BrickColor = BrickColor.new("Cyan")
  223. cloney.Transparency = 0.5
  224. cloney.Parent = fakecharthing
  225. cloney:ClearAllChildren()
  226. cloney:BreakJoints()
  227. end
  228. end
  229. coroutine.resume(coroutine.create(function()
  230. for i = 1,15 do
  231. Swait()
  232. for _,v in pairs (fakecharthing:children()) do
  233. if v:IsA("Part") then
  234. v.Transparency = v.Transparency + 0.05
  235. end
  236. end
  237. end
  238. end))
  239. Debris:AddItem(fakecharthing, 0.5)
  240. end
  241.  
  242. hp = hum.Health
  243. hum.HealthChanged:connect(function()
  244. if hum.Health < hp and shield == true and hum.Health > 0 then
  245. hum.Health = hp
  246. end
  247. hp = hum.Health
  248. end)
  249.  
  250. function woosh()
  251. attack = true
  252. root.Anchored = true
  253. local hitb1 = rl.Touched:connect(function(hit)
  254. local dud = hit.Parent
  255. local torso = dud:FindFirstChild("Torso") or char:FindFirstChildOfClass("Head")
  256. if dud ~= char then
  257. for i,v in pairs (dud:children()) do
  258. if v:IsA("Humanoid") then
  259. v.Health = v.Health - 15
  260. v.Sit = true
  261. end
  262. end
  263. if torso then
  264. local bv = Instance.new("BodyVelocity", torso)
  265. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  266. bv.Velocity = Vector3.new(0, -45, 0)
  267. Debris:AddItem(bv, 0.1)
  268. end
  269. end
  270. end)
  271. local hitb2 = ll.Touched:connect(function(hit)
  272. local dud = hit.Parent
  273. local torso = dud:FindFirstChild("Torso") or char:FindFirstChildOfClass("Head")
  274. if dud ~= char then
  275. for i,v in pairs (dud:children()) do
  276. if v:IsA("Humanoid") then
  277. v.Health = v.Health - 15
  278. v.Sit = true
  279. end
  280. end
  281. if torso then
  282. local bv = Instance.new("BodyVelocity", torso)
  283. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  284. bv.Velocity = Vector3.new(0, -45, 0)
  285. Debris:AddItem(bv, 0.1)
  286. end
  287. end
  288. end)
  289. local hitb3 = root.Touched:connect(function(hit)
  290. local dud = hit.Parent
  291. local torso = dud:FindFirstChild("Torso") or char:FindFirstChildOfClass("Head")
  292. if dud ~= char then
  293. for i,v in pairs (dud:children()) do
  294. if v:IsA("Humanoid") then
  295. v.Health = v.Health - 15
  296. v.Sit = true
  297. end
  298. end
  299. if torso then
  300. local bv = Instance.new("BodyVelocity", torso)
  301. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  302. bv.Velocity = Vector3.new(0, 35, 0)
  303. Debris:AddItem(bv, 0.1)
  304. end
  305. end
  306. end)
  307. for i = 1,9 do
  308. Swait()
  309. SpeedDashEffect(char)
  310. root.CFrame = root.CFrame * CFrame.new(0, 0, -2.5)
  311. end
  312. hitb3:disconnect()
  313. hitb2:disconnect()
  314. hitb1:disconnect()
  315. root.Anchored = false
  316. attack = false
  317. end
  318.  
  319. function fiya()
  320. attack = true
  321. tors.Anchored = true
  322. local ea = Instance.new("Part", char)
  323. ea.Transparency = 1
  324. ea.CanCollide = false
  325. ea.Size = Vector3.new(0.1, 0.1, 0.1)
  326. ea.Anchored = true
  327. ea.CFrame = CFrame.new(tors.Position, mouse.Hit.p)
  328. local fire = Instance.new("Fire", ea)
  329. fire.Size = 11
  330. for i = 1,15 do
  331. Swait()
  332. end
  333. for i = 1,15 do
  334. Swait()
  335. tors.CFrame = ea.CFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0, Rad(-3), 0)
  336. ea.CFrame = tors.CFrame
  337. end
  338. fire.Enabled = false
  339. Debris:AddItem(ea, 3.5)
  340. tors.Anchored = false
  341. attack = false
  342. end
  343.  
  344. function smack()
  345. local hitbox = la.Touched:connect(function(hit)
  346. local dud = hit.Parent
  347. local torso = dud:FindFirstChild("Torso") or char:FindFirstChildOfClass("Head")
  348. if dud ~= char then
  349. for i,v in pairs (dud:children()) do
  350. if v:IsA("Humanoid") then
  351. v.Health = v.Health - 0.1
  352. v.Sit = false
  353. end
  354. end
  355. if torso then
  356. torso.CFrame = torso.CFrame * CFrame.Angles(Rad(45), 0, Rad(0))
  357. local bv = Instance.new("BodyVelocity", torso)
  358. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  359. bv.Velocity = torso.CFrame.lookVector * 15
  360. Debris:AddItem(bv, 0.1)
  361. end
  362. end
  363. end)
  364. for i = 1,10 do
  365. Swait()
  366. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-90)), 0.3)
  367. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(90)), 0.4)
  368. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.4)
  369. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.4)
  370. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.4)
  371. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-90), Rad(0), Rad(0)), 0.4)
  372. end
  373. hitbox:disconnect()
  374. end
  375.  
  376. function parti()
  377. if dancin then
  378. dancin = false
  379. else
  380. dancin = true
  381. attack = true
  382. local yus = NewSound(hed, 2532792635, 1.25, 10, true)
  383. local flinge = Instance.new("FlangeSoundEffect", yus)
  384. flinge.Rate = 8
  385. repeat
  386. Swait()
  387. for i = 1,5 do
  388. Swait()
  389. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.9)
  390. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(0)), 0.9)
  391. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  392. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  393. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  394. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  395. end
  396. for i = 1,5 do
  397. Swait()
  398. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(65)), 0.9)
  399. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(0)), 0.9)
  400. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  401. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  402. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  403. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  404. end
  405. until dancin == false
  406. flinge:remove()
  407. yus:remove()
  408. attack = false
  409. dancin = false
  410. end
  411. end
  412.  
  413. function zooweemama()
  414. attack = true
  415. local zoo = NewSound(hed, 1021665529, 1, 10, false)
  416. zoo.TimePosition = 6.5
  417. repeat
  418. Swait()
  419. for i = 1,5 do
  420. Swait()
  421. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.9)
  422. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(0)), 0.9)
  423. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  424. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  425. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  426. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  427. end
  428. for i = 1,5 do
  429. Swait()
  430. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(65)), 0.9)
  431. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(0)), 0.9)
  432. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  433. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  434. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  435. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  436. end
  437. until zoo.Playing == false
  438. zoo:remove()
  439. attack = false
  440. end
  441.  
  442. dust = Instance.new("ParticleEmitter", nil)
  443.  
  444. mouse.Button1Down:connect(function()
  445. smack()
  446. end)
  447.  
  448. mouse.KeyDown:connect(function(key)
  449. if key == "b" then
  450. shine()
  451. end
  452. if key == "c" then
  453. woosh()
  454. end
  455. if key == "v" then
  456. fiya()
  457. end
  458. if key == "z" then
  459. gun()
  460. end
  461. if key == "t" then
  462. parti()
  463. end
  464. if key == "y" then
  465. zooweemama()
  466. end
  467. end)
  468.  
  469. mouse.KeyUp:connect(function(key)
  470. if key == "b" then
  471. keyhold = false
  472. end
  473. end)
  474.  
  475. while true do
  476. Swait()
  477. sine = sine + 1
  478. spino = spino + Rad(45)
  479. hum.JumpPower = 70
  480. hum.WalkSpeed = sped
  481. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  482. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  483. local WALKSPEEDVALUE = 8 / (sped / 16)
  484. torsverticalvel = root.Velocity.y
  485. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  486. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  487. anim = "Idle"
  488. if attack == false then
  489. sped = 17.5
  490. dust.Enabled = false
  491. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.3)
  492. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(65)), 0.3)
  493. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  494. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  495. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  496. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  497. end
  498. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  499. anim = "Walk"
  500. if attack == false then
  501. sped = 34
  502. dust.Enabled = false
  503. if sped < 65 then
  504. local heeh = 6
  505. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.3)
  506. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(65)), 0.3)
  507. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  508. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  509. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  510. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  511. elseif sped > 64 then
  512. local heeh = 2
  513. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.3)
  514. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(65)), 0.3)
  515. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  516. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  517. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  518. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  519. end
  520. end
  521. elseif torsverticalvel > 0.5 and hitfloor == nil then
  522. anim = "Jump"
  523. if not hed:FindFirstChild("jump") then
  524. --[[
  525. local jump = Instance.new("Sound", hed)
  526. jump.Name = "jump"
  527. jump.SoundId = "rbxassetid://130782425"
  528. jump.Volume = 1
  529. jump:Play()
  530. Debris:AddItem(jump, 0.5)
  531. ]]--
  532. end
  533. if attack == false then
  534. sped = sped
  535. dust.Enabled = false
  536. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.3)
  537. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(65)), 0.3)
  538. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  539. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  540. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  541. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  542. end
  543. elseif torsverticalvel < 0.5 and hitfloor == nil then
  544. anim = "Fall"
  545. if attack == false then
  546. sped = sped
  547. dust.Enabled = false
  548. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.025 * Cos(sine / 24)) * CFrame.Angles(0, 0, Rad(-65)), 0.3)
  549. clerp(neck, necknor * CFrame.Angles(0, 0, Rad(65)), 0.3)
  550. clerp(RH, RHnor * CFrame.Angles(Rad(-35), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  551. clerp(LH, LHnor * CFrame.Angles(Rad(-17), Rad(0), Rad(0)) * CFrame.new(0, -0.025 * Cos(sine / 24), 0), 0.3)
  552. clerp(RS, RSnor * CFrame.new(-0.1, -0.15 - 0.025 * Cos(sine / 12), 0) * CFrame.Angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  553. clerp(LS, LSnor * CFrame.new(0, -0.35, 0.5) * CFrame.Angles(Rad(-105), Rad(0), Rad(0)), 0.3)
  554. end
  555. end
  556. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement