Pmn20002

Parkour

Aug 13th, 2022
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.91 KB | None | 0 0
  1. --Emetimex
  2. plr = game.Players.LocalPlayer
  3. local colormansup = 255
  4. local sliding = false
  5.  
  6. if plr:WaitForChild("PlayerScripts"):FindFirstChild("Player Stuff") then
  7.  
  8. plr:WaitForChild("PlayerScripts"):FindFirstChild("Player Stuff"):Destroy()
  9.  
  10. end
  11.  
  12. local camerakill = false
  13. mobile = false
  14. local downeddel= false
  15. local walkingmode = false
  16. char = plr.Character
  17. if char:FindFirstChild("ClientInputHandler") then
  18. char:FindFirstChild("ClientInputHandler"):Destroy()
  19. end
  20. if plr:FindFirstChild("Status") then
  21. plr:FindFirstChild("Status"):Destroy()
  22. end
  23. if game.Workspace:FindFirstChild("Remote") then
  24. if game.Workspace:FindFirstChild("Remote"):FindFirstChild("TeamEvent") then
  25. Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  26. end
  27. end
  28. local downed = false
  29. local combatmusic = Instance.new("Sound",char)
  30. combatmusic.Volume = 0
  31. combatmusic.PlaybackSpeed = 1
  32. combatmusic.Looped = true
  33.  
  34.  
  35.  
  36. local ambience = Instance.new("Sound",char)
  37. ambience.Volume = 0.5
  38. ambience.PlaybackSpeed = 1
  39. ambience.Looped = true
  40.  
  41. local winder = Instance.new("Sound",char)
  42. winder.SoundId = "rbxassetid://337604103"
  43. winder.Volume = 0
  44. winder.PlaybackSpeed = 1
  45. winder.Looped = true
  46. winder:Play()
  47. local windercloth = Instance.new("Sound",char)
  48. windercloth.SoundId = "rbxassetid://195879271"
  49. windercloth.Volume = 0
  50. windercloth.PlaybackSpeed = 1
  51. windercloth.Looped = true
  52. windercloth:Play()
  53. local explorationmusic = Instance.new("Sound",char)
  54. explorationmusic.Volume = 0
  55. explorationmusic.PlaybackSpeed = 1
  56. explorationmusic.Looped = true
  57.  
  58. local rannum = math.random(1,11)
  59. if rannum == 1 then
  60. combatmusic.SoundId = "rbxassetid://4842424057"
  61. explorationmusic.SoundId = "rbxassetid://6092889291"
  62. ambience.SoundId = "rbxassetid://4842514147"
  63. ambience:Play()
  64. explorationmusic:Play()
  65. combatmusic:Play()
  66. end
  67. if rannum == 2 then
  68. combatmusic.SoundId = "rbxassetid://5167357719"
  69. explorationmusic.SoundId = "rbxassetid://5136807172"
  70. ambience.SoundId = "rbxassetid://5136807172"
  71. ambience:Play()
  72. explorationmusic:Play()
  73. combatmusic:Play()
  74. end
  75. if rannum == 3 then
  76. combatmusic.SoundId = "rbxassetid://5355007603"
  77. explorationmusic.SoundId = "rbxassetid://5192956194"
  78. ambience.SoundId = "rbxassetid://5192956194"
  79. ambience:Play()
  80. explorationmusic:Play()
  81. combatmusic:Play()
  82. end
  83. if rannum == 4 then
  84. combatmusic.SoundId = "rbxassetid://1591306349"
  85. explorationmusic.SoundId = "rbxassetid://5246801658"
  86. ambience.SoundId = "rbxassetid://5167384455"
  87. ambience:Play()
  88. explorationmusic:Play()
  89. combatmusic:Play()
  90. end
  91. if rannum == 5 then
  92. combatmusic.SoundId = "rbxassetid://5356631522"
  93. explorationmusic.SoundId = "rbxassetid://4502246491"
  94. ambience.SoundId = "rbxassetid://4502246491"
  95. ambience:Play()
  96. explorationmusic:Play()
  97. combatmusic:Play()
  98. end
  99. if rannum == 6 then
  100. combatmusic.SoundId = "rbxassetid://5183689299"
  101. explorationmusic.SoundId = "rbxassetid://538850338"
  102. ambience.SoundId = "rbxassetid://538850338"
  103. ambience:Play()
  104. explorationmusic:Play()
  105. combatmusic:Play()
  106. end
  107. if rannum == 7 then
  108. combatmusic.SoundId = "rbxassetid://5258344366"
  109. explorationmusic.SoundId = "rbxassetid://5079119831"
  110. ambience.SoundId = "rbxassetid://5079119831"
  111. ambience:Play()
  112. explorationmusic:Play()
  113. combatmusic:Play()
  114. end
  115. if rannum == 8 then
  116. combatmusic.SoundId = "rbxassetid://5995057631"
  117. explorationmusic.SoundId = "rbxassetid://477207390"
  118. ambience.SoundId = "rbxassetid://477207390"
  119. ambience:Play()
  120. explorationmusic:Play()
  121. combatmusic:Play()
  122. end
  123. if rannum == 9 then
  124. combatmusic.SoundId = "rbxassetid://4841933336"
  125. explorationmusic.SoundId = "rbxassetid://5114418235"
  126. ambience.SoundId = "rbxassetid://5114418235"
  127. ambience:Play()
  128. explorationmusic:Play()
  129. combatmusic:Play()
  130. end
  131. if rannum == 10 then
  132. combatmusic.SoundId = "rbxassetid://5132571388"
  133. explorationmusic.SoundId = "rbxassetid://5995060646"
  134. ambience.SoundId = "rbxassetid://5995060646"
  135. ambience:Play()
  136. explorationmusic:Play()
  137. combatmusic:Play()
  138. end
  139. if rannum == 11 then
  140. combatmusic.SoundId = "rbxassetid://5433879104"
  141. explorationmusic.SoundId = "rbxassetid://4692224051"
  142. ambience.SoundId = "rbxassetid://4692224051"
  143. ambience:Play()
  144. explorationmusic:Play()
  145. combatmusic:Play()
  146. end
  147.  
  148. local tricksinarow = 0
  149. local tricktime = 0
  150. local timestanding = 0
  151. local combattime = 0
  152.  
  153.  
  154.  
  155. root = char:WaitForChild("HumanoidRootPart")
  156.  
  157. local slidingsound = Instance.new("Sound",root)
  158. slidingsound.SoundId = "rbxassetid://4086205029"
  159. slidingsound.PlaybackSpeed = 1.25
  160. slidingsound.Looped = true
  161. slidingsound.Volume = 0.75
  162.  
  163. local wallrunningsound = Instance.new("Sound",root)
  164. wallrunningsound.SoundId = "rbxassetid://401049343"
  165. wallrunningsound.PlaybackSpeed = 1
  166. wallrunningsound.Looped = true
  167. wallrunningsound.Volume = 0.75
  168.  
  169.  
  170. function randomclothrollsound(truth)
  171. coroutine.resume(coroutine.create(function()
  172. if truth ~= nil then
  173. local s = Instance.new("Sound",root)
  174. s.Volume = 0.8 +math.random(1,6)*0.05
  175. s.PlaybackSpeed = 0.8 +math.random(1,6)*0.05
  176.  
  177. local rannum = math.random(1,5)
  178. if rannum == 1 then
  179. s.SoundId = "rbxassetid://4086203738"
  180. elseif rannum == 2 then
  181. s.SoundId = "rbxassetid://4086203442"
  182. elseif rannum == 3 then
  183. s.SoundId = "rbxassetid://4086203142"
  184. elseif rannum == 4 then
  185. s.SoundId = "rbxassetid://4086203973"
  186. else
  187. s.SoundId = "rbxassetid://4307029050"
  188. end
  189.  
  190.  
  191. s:Play()
  192. game:GetService("Debris"):AddItem(s,4)
  193. else
  194. local s = Instance.new("Sound",root)
  195. s.Volume = 0.25 +math.random(1,6)*0.05
  196. s.PlaybackSpeed = 0.8 +math.random(1,6)*0.05
  197.  
  198. local rannum = math.random(1,7)
  199. if rannum == 1 then
  200. s.SoundId = "rbxassetid://3929467229"
  201. elseif rannum == 2 then
  202. s.SoundId = "rbxassetid://3929467449"
  203. elseif rannum == 3 then
  204. s.SoundId = "rbxassetid://3929467655"
  205. elseif rannum == 4 then
  206. s.SoundId = "rbxassetid://3929467888"
  207. elseif rannum == 5 then
  208. s.SoundId = "rbxassetid://4458760046"
  209. elseif rannum == 6 then
  210. s.SoundId = "rbxassetid://4458760518"
  211. else
  212. s.SoundId = "rbxassetid://4458759938"
  213. end
  214.  
  215.  
  216. s:Play()
  217. game:GetService("Debris"):AddItem(s,4)
  218. end
  219.  
  220. end))
  221.  
  222. end
  223.  
  224.  
  225. local rollingsound = Instance.new("Sound",root)
  226. rollingsound.SoundId = "rbxassetid://2985734522"
  227. rollingsound.PlaybackSpeed = 1
  228. rollingsound.Volume = 0.75
  229.  
  230. local bodymovesound = Instance.new("Sound",root)
  231. bodymovesound.SoundId = "rbxassetid://152206206"
  232. bodymovesound.PlaybackSpeed = 0.945
  233. bodymovesound.Volume = 2.35
  234.  
  235.  
  236. local downedsound = Instance.new("Sound",root)
  237. downedsound.SoundId = "rbxassetid://178088040"
  238. downedsound.PlaybackSpeed = 1
  239. downedsound.Volume = 3
  240.  
  241.  
  242.  
  243. local jumplandsoundthingy = Instance.new("Sound",root)
  244. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  245. jumplandsoundthingy.PlaybackSpeed = 0.785
  246. jumplandsoundthingy.Volume = 2
  247.  
  248. hum = char:WaitForChild("Humanoid")
  249. hum.JumpPower = 50
  250. local colorparkourkill = Instance.new("ColorCorrectionEffect",game.Lighting)
  251. colorparkourkill.Saturation = 0
  252. colorparkourkill.TintColor = Color3.new(1,1,1)
  253. if game.Lighting:FindFirstChild("COLORPARKOURKILL") then
  254. game.Lighting:FindFirstChild("COLORPARKOURKILL"):Destroy()
  255.  
  256.  
  257. end
  258. torso = char:WaitForChild("Torso")
  259. local gyro = Instance.new("BodyGyro",torso)
  260. gyro.D = 200
  261. gyro.P = 1800
  262. local cameratilterman = 0
  263. local springjumpdel =false
  264. local gobackroll = false
  265. local befpower = gyro.P
  266. gyro.P = befpower
  267. gyro.MaxTorque = Vector3.new(0,0,0)
  268. local runvel = Instance.new("BodyVelocity",root)
  269. runvel.MaxForce = Vector3.new(0,0,0)
  270. runvel.P = 9999999999999999999999
  271. hum.WalkSpeed =20
  272.  
  273. local flowmax = 35
  274. local flowmin = 16
  275. local dodgedel = false
  276. local crouchspeed = 8
  277. local flow = flowmin
  278. for i,v in pairs(workspace:GetDescendants()) do
  279. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "MeshPart" then
  280. if v.ClassName == "UnionOperation" then
  281. v.CollisionFidelity = Enum.CollisionFidelity.PreciseConvexDecomposition
  282. end
  283. if v.Transparency == 1 then
  284. v.CanCollide = false
  285. end
  286.  
  287. end
  288.  
  289. end
  290. floorpositiony = 0
  291. local UIS = game:GetService("UserInputService")
  292. local GuiService = game:GetService("GuiService")
  293.  
  294. if UIS.TouchEnabled and not UIS.KeyboardEnabled and not UIS.MouseEnabled
  295. and not UIS.GamepadEnabled and not GuiService:IsTenFootInterface() then
  296.  
  297. mobile = true
  298. jb = plr.PlayerGui:WaitForChild("TouchGui"):WaitForChild("TouchControlFrame"):WaitForChild("JumpButton")
  299. jb.MouseButton1Down:Connect(function()
  300. wallrunabletrue()
  301. wallruncheck()
  302. end)
  303. end
  304. local leftwallrunanim = Instance.new("Animation",char)
  305. leftwallrunanim.AnimationId = "rbxassetid://180426354"
  306. local leftwallrunanimplay = hum:LoadAnimation(leftwallrunanim)
  307.  
  308.  
  309. local downedanim1 = Instance.new("Animation",char)
  310. downedanim1.AnimationId = "rbxassetid://282574440"
  311. local downedanim1play = hum:LoadAnimation(downedanim1)
  312.  
  313.  
  314.  
  315.  
  316. local rightwallrunanim = Instance.new("Animation",char)
  317. rightwallrunanim.AnimationId = "rbxassetid://180426354"
  318. local rightwallrunanimplay = hum:LoadAnimation(rightwallrunanim)
  319.  
  320.  
  321. local verticalwallrunanim = Instance.new("Animation",char)
  322. verticalwallrunanim.AnimationId = "rbxassetid://180426354"
  323. local verticalwallrunanimplay = hum:LoadAnimation(verticalwallrunanim)
  324.  
  325. local roll = Instance.new("Animation",char)
  326. roll.AnimationId = "rbxassetid://180612465"
  327. local rollplay = hum:LoadAnimation(roll)
  328.  
  329.  
  330. local crouching = Instance.new("Animation",char)
  331. crouching.AnimationId = "rbxassetid://287325678"
  332. local crouchingplay = hum:LoadAnimation(crouching)
  333.  
  334. local springjump = Instance.new("Animation",char)
  335. springjump.AnimationId = "rbxassetid://287325678"
  336. local springjumpplay = hum:LoadAnimation(springjump)
  337.  
  338.  
  339. local dodging = Instance.new("Animation",char)
  340. dodging.AnimationId = "rbxassetid://287325678"
  341. local dodgingplay = hum:LoadAnimation(dodging)
  342.  
  343. local slidinganim = Instance.new("Animation",char)
  344. slidinganim.AnimationId = "rbxassetid://132546884"
  345. local slidingplay = hum:LoadAnimation(slidinganim)
  346. local rollering = false
  347.  
  348.  
  349. hum.Died:Connect(function()
  350. if game.Workspace:FindFirstChild("Remote") then
  351. if game.Workspace:FindFirstChild("Remote"):FindFirstChild("TeamEvent") then
  352. Workspace.Remote.TeamEvent:FireServer("Bright orange")
  353.  
  354. end
  355. end
  356. camerakill = true
  357. colorparkourkill:Destroy()
  358. for i = 20,1,-1 do
  359. wait()
  360. combatmusic.PlaybackSpeed = combatmusic.PlaybackSpeed-0.05
  361. ambience.PlaybackSpeed = ambience.PlaybackSpeed-0.05
  362. explorationmusic.PlaybackSpeed = explorationmusic.PlaybackSpeed-0.05
  363. end
  364.  
  365. end)
  366.  
  367. local tappeda = false
  368. local tappeds = false
  369. local tappedd = false
  370. local tappedw = false
  371. UIS.InputEnded:Connect(function(input,gamestuff)
  372. if input.KeyCode == Enum.KeyCode.S then
  373. if gamestuff then return end
  374.  
  375. gobackroll = false
  376. end
  377. end)
  378.  
  379.  
  380. UIS.InputBegan:Connect(function(input,gamestuff)
  381. if input.KeyCode == Enum.KeyCode.N then
  382. if gamestuff then return end
  383.  
  384. if walkingmode == false then
  385. walkingmode = true
  386. else
  387. walkingmode = false
  388. end
  389. end
  390. if input.KeyCode == Enum.KeyCode.M then
  391. if gamestuff then return end
  392. if ambience.PlaybackSpeed ~= 0 then
  393. ambience.PlaybackSpeed = 0
  394. combatmusic.PlaybackSpeed = 0
  395. explorationmusic.PlaybackSpeed = 0
  396. else
  397. ambience.PlaybackSpeed = 1
  398. combatmusic.PlaybackSpeed = 1
  399. explorationmusic.PlaybackSpeed = 1
  400. end
  401.  
  402. end
  403.  
  404.  
  405. if input.KeyCode == Enum.KeyCode.S then
  406. if gamestuff then return end
  407.  
  408. gobackroll = true
  409. end
  410. if downed == true then return end
  411. if sliding == true then return end
  412. if input.KeyCode == Enum.KeyCode.A then
  413. if hitfloor == false then return end
  414. if gamestuff then return end
  415. if tappeda == false then
  416. tappeda = true
  417. wait(0.25)
  418. tappeda = false
  419. else
  420. if dodgedel == false then
  421. dodgedel = true
  422. dodgingplay:Play()
  423. randomclothrollsound()
  424. local bv = Instance.new("BodyVelocity",char:WaitForChild("Head"))
  425. bv.Velocity = root.CFrame.RightVector*-flow*2+Vector3.new(0,flow/2,0)
  426. bv.MaxForce = Vector3.new(99999,99999,99999)
  427. bv.P = 99999999999999
  428. wait(0.1)
  429. bv:Destroy()
  430. wait(0.2)
  431. dodgingplay:Stop()
  432. dodgedel = false
  433. end
  434.  
  435. end
  436.  
  437. end
  438. if input.KeyCode == Enum.KeyCode.S then
  439. if hitfloor == false then return end
  440. if gamestuff then return end
  441. if tappeds == false then
  442. tappeds = true
  443. wait(0.25)
  444. tappeds = false
  445. else
  446. if dodgedel == false then
  447. dodgedel = true
  448. dodgingplay:Play()
  449. randomclothrollsound()
  450. local bv = Instance.new("BodyVelocity",char:WaitForChild("Head"))
  451. bv.Velocity = root.CFrame.LookVector*-flow*2+Vector3.new(0,flow/2,0)
  452. bv.MaxForce = Vector3.new(99999,99999,99999)
  453. bv.P = 99999999999999
  454. wait(0.1)
  455. bv:Destroy()
  456. wait(0.2)
  457. dodgingplay:Stop()
  458. dodgedel = false
  459. end
  460.  
  461. end
  462.  
  463. end
  464. if input.KeyCode == Enum.KeyCode.D then
  465. if hitfloor == false then return end
  466. if gamestuff then return end
  467. if tappedd == false then
  468. tappedd = true
  469. wait(0.25)
  470. tappedd = false
  471. else
  472. if dodgedel == false then
  473. dodgedel = true
  474. dodgingplay:Play()
  475. randomclothrollsound()
  476. local bv = Instance.new("BodyVelocity",char:WaitForChild("Head"))
  477. bv.Velocity = root.CFrame.RightVector*flow*2+Vector3.new(0,flow/2,0)
  478. bv.MaxForce = Vector3.new(99999,99999,99999)
  479. bv.P = 99999999999999
  480. wait(0.1)
  481. bv:Destroy()
  482. wait(0.2)
  483. dodgingplay:Stop()
  484. dodgedel = false
  485. end
  486.  
  487. end
  488.  
  489. end
  490. if input.KeyCode == Enum.KeyCode.W then
  491. if gamestuff then return end
  492. if hitfloor == false then return end
  493. if tappedw == false then
  494. tappedw = true
  495. wait(0.25)
  496. tappedw = false
  497. else
  498. if dodgedel == false then
  499. dodgedel = true
  500. dodgingplay:Play()
  501. randomclothrollsound()
  502. local bv = Instance.new("BodyVelocity",char:WaitForChild("Head"))
  503. bv.Velocity = root.CFrame.LookVector*flow*2+Vector3.new(0,flow/2,0)
  504. bv.MaxForce = Vector3.new(99999,99999,99999)
  505. bv.P = 99999999999999
  506. wait(0.1)
  507. bv:Destroy()
  508. wait(0.2)
  509. dodgingplay:Stop()
  510. dodgedel = false
  511. end
  512.  
  513. end
  514.  
  515. end
  516. end)
  517.  
  518. hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
  519. hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  520.  
  521. --rollplay:AdjustSpeed(0)
  522. --rollplay.TimePosition = 1
  523.  
  524. local player = game.Players.LocalPlayer
  525. local character = player.Character
  526. local hum = character:FindFirstChild("Humanoid")
  527. if not character or not character.Parent then
  528. character = player.CharacterAdded:wait()
  529. if camerakill == true then return end
  530. end
  531. local torso = character:WaitForChild("Torso")
  532. local rightShoulder = torso:WaitForChild("Right Shoulder")
  533. local leftShoulder = torso:WaitForChild("Left Shoulder")
  534. local camera = game.Workspace.CurrentCamera
  535.  
  536. updateSpeed = 0.5/2
  537.  
  538.  
  539. local plr = game.Players.LocalPlayer
  540. local char = plr.Character
  541. local ignorelist = {plr.Character}
  542. for i,v in pairs(workspace:GetDescendants()) do
  543. if v.ClassName == "Part" or v.ClassName == "MeshPart" or v.ClassName == "UnionOperation" then
  544. if v.CanCollide == false or v.Transparency == 1 then
  545.  
  546. ignorelist[#ignorelist+1] = v
  547. end
  548. end
  549. end
  550. leftarm = char:WaitForChild("Left Arm")
  551. rightarm = char:WaitForChild("Right Arm")
  552. leftleg = char:WaitForChild("Left Leg")
  553. if char:FindFirstChild("Head"):FindFirstChild("BillboardGui") then
  554. char:FindFirstChild("Head"):FindFirstChild("BillboardGui"):Destroy()
  555. end
  556. local flowermax = flowmax-flowmin
  557. local killermancamfov = 0
  558. rightleg = char:WaitForChild("Right Leg")
  559. local hum = char:WaitForChild("Humanoid")
  560.  
  561. local rootpart,head = char:WaitForChild("HumanoidRootPart"),char:WaitForChild("Head")
  562.  
  563. game:GetService("RunService"):BindToRenderStep("CameraOffset",Enum.RenderPriority.Character.Value+1,function()
  564. local offsetman = 1.5
  565. if sliding == true then
  566. offsetman = 0
  567.  
  568.  
  569. end
  570. if hum.Health == 0 then script:Destroy() end
  571. local distance = (character.Head.Position - camera.CoordinateFrame.p).magnitude
  572. if distance <= 1 then
  573. rightShoulder.C0 = rightShoulder.C0:lerp((camera.CoordinateFrame * CFrame.new(1, -1, 0)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, math.pi/2, 0), updateSpeed)
  574. leftShoulder.C0 = leftShoulder.C0:lerp((camera.CoordinateFrame * CFrame.new(-1, -1, 0)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, -math.pi/2, 0), updateSpeed)
  575. else
  576. rightShoulder.C0 = rightShoulder.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.pi/2, 0),updateSpeed)
  577. leftShoulder.C0 = leftShoulder.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -math.pi/2, 0),updateSpeed)
  578. end
  579. hum.CameraOffset = (rootpart.CFrame+Vector3.new(0,offsetman,0)):pointToObjectSpace(head.CFrame.p)
  580. rightarm.LocalTransparencyModifier = rightarm.Transparency+0.5
  581. leftarm.LocalTransparencyModifier = leftarm.Transparency+0.5
  582. leftleg.LocalTransparencyModifier = leftleg.Transparency+0.5
  583. rightleg.LocalTransparencyModifier = rightleg.Transparency+0.5
  584. if camerakill == false then
  585. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
  586. killermancamfov = 20*(flow/flowermax)
  587. colorparkourkill.TintColor = Color3.new(1,colormansup/255,colormansup/255)
  588. colormansup = colormansup+5
  589. if colormansup> 255 then
  590. colormansup = 255
  591. end
  592. cam.FieldOfView = 50+killermancamfov
  593. cam.CFrame = cam.CFrame*CFrame.Angles(0,0,math.rad(cameratilterman))
  594.  
  595. end
  596. end)
  597. local befh = hum.Health
  598.  
  599.  
  600.  
  601.  
  602. local function round(number, decimalPlaces)
  603. number = math.round(number * 10^decimalPlaces) * 10^-decimalPlaces
  604. end
  605. local humdowner = false
  606.  
  607. function downer()
  608.  
  609. flow = flow-flowmax/10
  610. downedanim1play:Play()
  611. colormansup = colormansup-60
  612. downedsound:play()
  613. randomclothrollsound(true)
  614. randomclothrollsound(true)
  615. randomclothrollsound()
  616. randomclothrollsound()
  617. randomclothrollsound()
  618. downed = true
  619. hum.JumpPower =0
  620. downeddel = true
  621. coroutine.resume(coroutine.create(function()
  622.  
  623.  
  624. local tiltnumb = 0
  625. local rannum = math.random(1,4)
  626.  
  627. if rannum == 1 then
  628. tiltnumb = 80
  629. elseif rannum == 2 then
  630. tiltnumb = 50
  631. elseif rannum == 3 then
  632. tiltnumb = -80
  633. else
  634. tiltnumb = -50
  635. end
  636.  
  637. local cameratilterman2 =tiltnumb*0.2
  638.  
  639.  
  640.  
  641.  
  642. local cameratiltermax = cameratilterman2
  643.  
  644. local sinnerman = 1
  645. local sinnerman2 = 0
  646. for i = 20,1,-1 do
  647. game:GetService("RunService").RenderStepped:Wait()
  648. if camerakill == true then return end
  649. sinnerman = sinnerman-0.05
  650. sinnerman2 = math.sin(sinnerman*1.25)
  651. print(sinnerman .. " I AM SIN")
  652. cameratilterman2 = cameratiltermax*sinnerman2
  653.  
  654. cam.CFrame = cam.CFrame*CFrame.Angles(0,0,math.rad(cameratilterman2))
  655. end
  656. wait(1)
  657. downeddel = false
  658.  
  659. end))
  660. end
  661.  
  662. hum.HealthChanged:Connect(function()
  663. colorparkourkill.Saturation = -1+hum.Health/hum.MaxHealth
  664. if hum.Health/hum.MaxHealth < 0.25 then
  665.  
  666. if humdowner == false then
  667. humdowner = true
  668. downer()
  669. end
  670. end
  671.  
  672.  
  673. if hum.Health < befh then
  674. combattime = 18
  675. local damagetiltmax = befh - hum.Health
  676. round(damagetiltmax,1)
  677. colormansup = colormansup-damagetiltmax*4.25
  678. local cameratilterman2 = math.random(damagetiltmax*-20,damagetiltmax*20)
  679. cameratilterman2 = cameratilterman2 *0.05
  680.  
  681. local cameratilterman3 = math.random(damagetiltmax*-20,damagetiltmax*20)
  682. cameratilterman3 = cameratilterman3 *0.0008675
  683.  
  684.  
  685. local cameratiltermax = cameratilterman2
  686. local cameratiltermax2 = cameratilterman3
  687. local sinnerman = 1
  688. local sinnerman2 = 0
  689. for i = 10,1,-1 do
  690. game:GetService("RunService").RenderStepped:Wait()
  691.  
  692. sinnerman = sinnerman-0.1
  693. sinnerman2 = math.sin(sinnerman*1.25)
  694. print(sinnerman .. " I AM SIN")
  695. cameratilterman2 = cameratiltermax*sinnerman2
  696. cameratilterman3 = cameratiltermax2*sinnerman2
  697. cam.CFrame = cam.CFrame*CFrame.Angles(math.rad(cameratilterman3),0,math.rad(cameratilterman2))
  698. end
  699.  
  700.  
  701. end
  702.  
  703. befh = hum.Health
  704.  
  705. end)
  706.  
  707. function tilterepic(maxnumbman,slideringman)
  708. coroutine.resume(coroutine.create(function()
  709.  
  710. if maxnumbman ~= 0 then
  711. local sinnerman = 0
  712. local slidingtruth = false
  713. if slideringman ~= nil then
  714. if slideringman == true then
  715. slidingtruth = true
  716. end
  717. end
  718. for i = 20,1,-1 do
  719. if slidingtruth == false then
  720. if wallrunning == false then return end
  721. end
  722.  
  723. if slidingtruth == true then
  724. if sliding == false then return end
  725. end
  726.  
  727. game:GetService("RunService").RenderStepped:Wait()
  728. if camerakill == true then return end
  729. sinnerman = sinnerman+0.05
  730. sinnerman = math.sin(sinnerman*1.25)
  731. print(sinnerman .. " I AM SIN2")
  732. cameratilterman = maxnumbman*sinnerman
  733. end
  734. else
  735. print("I AM ZERO BOYO")
  736. local cameratiltermax = cameratilterman
  737.  
  738. local sinnerman = 1
  739. local sinnerman2 = 0
  740. for i = 10,1,-1 do
  741. game:GetService("RunService").RenderStepped:Wait()
  742. if camerakill == true then return end
  743. sinnerman = sinnerman-0.1
  744. sinnerman2 = math.sin(sinnerman*1.25)
  745. print(sinnerman .. " I AM SIN")
  746. cameratilterman = cameratiltermax*sinnerman2
  747. end
  748. wait()
  749. cameratilterman = 0
  750. end
  751. end))
  752. end
  753.  
  754.  
  755. local rolldel =false
  756. function roll()
  757.  
  758. if sliding == true then return end
  759. if hitfloor == false then return end
  760. if wallrunning == true then return end
  761. if rolldel == true then return end
  762. rolldel = true
  763. randomclothrollsound(true)
  764. rollingsound.TimePosition = 0.3
  765. rollingsound:Play()
  766. root.Velocity = Vector3.new(0,0,0)
  767. local x, y, z = root.CFrame:ToEulerAnglesYXZ()
  768. rollering = true
  769. tricksinarow = tricksinarow+1
  770. local rollmancf = CFrame.new(Vector3.new(root.Position.X,floorpositiony+1.5,root.Position.Z))*CFrame.Angles(0, y, 0)
  771.  
  772. root.CFrame = rollmancf
  773.  
  774. wait()
  775. root.Velocity = Vector3.new(0,0,0)
  776.  
  777.  
  778. flow = flow+(flowmax-flowmin)/8
  779. runvel.Velocity = (root.CFrame.LookVector*hum.WalkSpeed)
  780. local bp = Instance.new("BodyPosition",torso)
  781. bp.Position = Vector3.new(0,floorpositiony,0)
  782. bp.MaxForce = Vector3.new(0,999999999,0)
  783. bp.P = 25000
  784. hum.PlatformStand = true
  785. runvel.MaxForce = Vector3.new(99999,99999,99999)
  786. gyro.CFrame = rollmancf
  787. gyro.P = 99999
  788. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  789. rollplay:Play()
  790. local lookcfog = cam.CFrame
  791. local angle = 0
  792. rollplay:AdjustSpeed(0)
  793. rollplay.TimePosition = 1
  794. local rotatenumb = -18
  795. if gobackroll == true then
  796. rotatenumb = 18
  797. end
  798.  
  799. for i = 20,1,-1 do
  800. rs.Heartbeat:Wait()
  801. if camerakill == true then return end
  802. runvel.MaxForce = Vector3.new(99999,99999,99999)
  803. runvel.Velocity = rollmancf.LookVector*-rotatenumb*3
  804. gyro.CFrame = gyro.CFrame*CFrame.Angles(math.rad(rotatenumb),0,0)
  805. root.CFrame = gyro.CFrame
  806. end
  807. runvel.MaxForce = Vector3.new(0,0,0)
  808. rollplay:Stop()
  809. hum.PlatformStand = false
  810. rollering = false
  811. bp:Destroy()
  812. gyro.P = befpower
  813. runvel.MaxForce = Vector3.new(0,0,0)
  814. gyro.MaxTorque = Vector3.new(0,0,0)
  815. root.Velocity = Vector3.new(0,0,0)
  816. root.Velocity = Vector3.new(0,0,0)
  817. rolldel = false
  818. if rotatenumb == 18 then
  819. cam.CFrame = lookcfog
  820. end
  821. wait()
  822.  
  823. end
  824.  
  825.  
  826. local cdown = false
  827.  
  828. UIS.InputBegan:Connect(function(input,g)
  829.  
  830. if input.KeyCode == Enum.KeyCode.C then
  831. if g then return end
  832. cdown = true
  833.  
  834. end
  835. if input.KeyCode == Enum.KeyCode.P then
  836. if g then return end
  837. hum:TakeDamage(1)
  838. end
  839. end)
  840.  
  841. UIS.InputEnded:Connect(function(input,g)
  842. if input.KeyCode == Enum.KeyCode.C then
  843. if g then return end
  844. cdown = false
  845. end
  846. end)
  847.  
  848. wallrunable = false
  849.  
  850. wallrunning = false
  851. hitfloor = false
  852. leftwallrunning = false
  853. rightwallrunning = false
  854. onfloor = false
  855. frontwallrunning = false
  856. fronthit = false
  857. rs = game:GetService("RunService")
  858. cam = workspace.CurrentCamera
  859.  
  860.  
  861. UIS.InputBegan:Connect(function(input,gamestuff)
  862. if input.KeyCode == Enum.KeyCode.X then
  863. if camerakill == true then return end
  864. if gamestuff then return end
  865. if camerakill == false then
  866. for i = 5,1,-1 do
  867. rs.RenderStepped:Wait()
  868. if camerakill == true then return end
  869. cam.CFrame = cam.CFrame*CFrame.Angles(0,math.rad(35),0)
  870. end
  871. end
  872. end
  873. end)
  874. local rollering = false
  875. coroutine.resume(coroutine.create(function()
  876.  
  877. while true do
  878. if camerakill == true then return end
  879. rs.RenderStepped:Wait()
  880.  
  881. if combattime > 0.05 then
  882. if combatmusic.Volume ~= 0.5 then
  883. combatmusic.Volume = 0.5
  884. ambience.Volume = 0
  885. explorationmusic.Volume = 0
  886. combatmusic:Play()
  887. end
  888. combattime = combattime-0.01
  889. else
  890. combattime = 0
  891. if combatmusic.Volume == 0.5 then
  892. combatmusic.Volume = 0
  893. ambience.Volume = 0.5
  894.  
  895. explorationmusic.Volume = 0
  896. end
  897. end
  898. if rolldel == true or downed == true then
  899. if camerakill == true then return end
  900. cam.CFrame = char:WaitForChild("Head").CFrame
  901.  
  902. end
  903. if camerakill == false then
  904. winder.Volume = root.Velocity.Magnitude*0.015
  905. if winder.Volume > 5 then
  906. winder.Volume = 5
  907. end
  908. winder.PlaybackSpeed = root.Velocity.Magnitude*0.015
  909. if winder.PlaybackSpeed > 4 then
  910. winder.PlaybackSpeed = 4
  911. end
  912. windercloth.Volume = root.Velocity.Magnitude*0.015
  913. if windercloth.Volume > 5 then
  914. windercloth.Volume = 5
  915. end
  916. windercloth.PlaybackSpeed = root.Velocity.Magnitude*0.015
  917. if windercloth.PlaybackSpeed > 2 then
  918. windercloth.PlaybackSpeed = 2
  919. end
  920. end
  921.  
  922.  
  923. if rolldel == false and wallrunning == false and sliding == false and downed == false and holding == false then
  924. hum.AutoRotate = true
  925. if slidingsound.IsPlaying == true then
  926. slidingsound:Stop()
  927. end
  928. if wallrunningsound.IsPlaying == true then
  929. wallrunningsound:Stop()
  930. end
  931. else
  932. hum.AutoRotate = false
  933. if wallrunning == true then
  934. if wallrunningsound.IsPlaying == false then
  935. wallrunningsound:Play()
  936. end
  937. else
  938. if wallrunningsound.IsPlaying == true then
  939. wallrunningsound:Stop()
  940. end
  941. end
  942.  
  943.  
  944. if sliding == true then
  945. if slidingsound.IsPlaying == false then
  946. slidingsound:Play()
  947. end
  948. else
  949. if slidingsound.IsPlaying == true then
  950. slidingsound:Stop()
  951. end
  952. end
  953. end
  954.  
  955. end
  956.  
  957. end))
  958. function wallrunabletrue()
  959. coroutine.resume(coroutine.create(function()
  960. if hitfloor == true then return end
  961. wallrunable = true
  962. wait(0.05)
  963. wallrunable = false
  964. end))
  965. end
  966.  
  967.  
  968. wallrundel = false
  969. function verticalwallrun(grav2)
  970. coroutine.resume(coroutine.create(function()
  971. if wallrundel == true then return end
  972. if wallrunning == true then return end
  973. if downed == true then return end
  974. if cdown == true then return end
  975. if wallrunable == false then return end
  976.  
  977. if fronthit then
  978.  
  979. print("Made it 1")
  980. local rr = Ray.new(root.Position,root.CFrame.LookVector*5)
  981. local rhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rr,ignorelist)
  982. if rhit then
  983. if rhit then
  984. wallrunning = false
  985. wait()
  986. tilterepic(0)
  987. tricksinarow = tricksinarow+1
  988. wallrunning = true
  989. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(math.rad(-22),math.rad(180),0)
  990. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  991.  
  992.  
  993. local grav = grav2-11
  994. runvel.Velocity = Vector3.new(0,grav,0)
  995. print("Made it 2")
  996. runvel.MaxForce = Vector3.new(99999,99999,99999)
  997. wallrunable = false
  998. hum.PlatformStand = true
  999. randomclothrollsound()
  1000. verticalwallrunanimplay:Play()
  1001. while wallrunning == true do
  1002. rs.RenderStepped:Wait()
  1003. if camerakill == true then return end
  1004.  
  1005. grav = grav-0.8
  1006. local r2 = Ray.new(root.Position,root.CFrame.LookVector*5)
  1007. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  1008. if hit then
  1009. print("Made it 3")
  1010. if hitfloor then wallrunning = false end
  1011. if cdown == true then wallrunning = false end
  1012. if hit then
  1013. gyro.CFrame = CFrame.new((ray+root.CFrame.LookVector*-2),(ray+root.CFrame.LookVector*-2)+point)*CFrame.Angles(math.rad(-22),math.rad(180),0)
  1014. runvel.Velocity = Vector3.new(0,grav,0)
  1015. gyro.P = befpower
  1016. if wallrunable == true then
  1017.  
  1018. wallrunning = false
  1019. gyro.MaxTorque = Vector3.new(0,0,0)
  1020. hum.PlatformStand = false
  1021. print("Jump")
  1022. randomclothrollsound()
  1023. jumplandsoundthingy:Play()
  1024. local rannum = math.random(1,3)
  1025. if rannum == 1 then
  1026. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1027. elseif rannum == 2 then
  1028. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1029. else
  1030. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1031. end
  1032. bodymovesound:Play()
  1033. hum.PlatformStand = false
  1034. runvel.velocity = root.CFrame.LookVector*-hum.WalkSpeed+Vector3.new(0,30,0)
  1035. wait(0.22)
  1036. end
  1037.  
  1038. else
  1039.  
  1040. wallrunning = false
  1041.  
  1042. end
  1043. else
  1044.  
  1045. wallrunning = false
  1046.  
  1047.  
  1048. end
  1049. end
  1050. hum.PlatformStand = false
  1051. verticalwallrunanimplay:Stop()
  1052. gyro.MaxTorque = Vector3.new(0,0,0)
  1053. print("Wall run ended")
  1054.  
  1055. runvel.MaxForce = Vector3.new(0,0,0)
  1056. hum:ChangeState(Enum.HumanoidStateType.Jumping)
  1057. return
  1058. end
  1059.  
  1060.  
  1061.  
  1062.  
  1063. end
  1064.  
  1065. end
  1066. end))
  1067. end
  1068.  
  1069.  
  1070.  
  1071. function wallruncheck()
  1072. if downed == true then
  1073. if rolldel == false and downeddel == false then
  1074. downedanim1play:Stop()
  1075. downed = false
  1076. hum.JumpPower = 50
  1077. roll()
  1078. return
  1079. end
  1080.  
  1081. end
  1082. if sliding == true then return end
  1083. if cdown == true then
  1084. if hitfloor == true then
  1085. roll()
  1086. end
  1087. end
  1088. if wallrundel == true then return end
  1089. if wallrunning == true then return end
  1090. if wallrunable == false then return end
  1091. if cdown == true then return end
  1092. if dodgedel == true then return end
  1093. wallrunable = false
  1094. local rr = Ray.new(root.Position,root.CFrame.RightVector*3.5)
  1095. local rhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rr,ignorelist)
  1096. if rhit then
  1097. if rhit then
  1098.  
  1099. wallrunning = true
  1100. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(0,math.rad(-90),math.rad(20))
  1101. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  1102. hum.PlatformStand = true
  1103.  
  1104. local grav = 20
  1105. runvel.Velocity = gyro.CFrame.LookVector*30+Vector3.new(0,grav,0)
  1106. runvel.Velocity = runvel.Velocity + gyro.CFrame.RightVector*5
  1107. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1108. rightwallrunanimplay:Play()
  1109. randomclothrollsound()
  1110. tricksinarow = tricksinarow+1
  1111. tilterepic(35)
  1112. while wallrunning == true do
  1113. if camerakill == true then return end
  1114. rs.RenderStepped:Wait()
  1115.  
  1116. grav = grav-0.95
  1117. local r2 = Ray.new(root.Position,root.CFrame.RightVector*5)
  1118. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  1119. if hit then
  1120.  
  1121. if hitfloor then wallrunning = false end
  1122. if cdown == true then wallrunning = false end
  1123. if fronthit == true then print("Face died") tilterepic(0) wallrunning = false rightwallrunanimplay:Stop() gyro.MaxTorque = Vector3.new(0,0,0)
  1124. print("Wall run end")
  1125.  
  1126. runvel.MaxForce = Vector3.new(0,0,0)wallrunable = true verticalwallrun(grav+hum.WalkSpeed) return end
  1127. if hit then
  1128. gyro.CFrame = CFrame.new((ray+root.CFrame.RightVector*-2),(ray+root.CFrame.RightVector*-2)+point)*CFrame.Angles(0,math.rad(-90),math.rad(20))
  1129. runvel.Velocity = gyro.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,grav,0)
  1130. gyro.P = befpower
  1131. if wallrunable == true then
  1132. tilterepic(0)
  1133. wallrunning = false
  1134. rightwallrunanimplay:Stop()
  1135. gyro.MaxTorque = Vector3.new(0,0,0)
  1136. hum.PlatformStand = false
  1137. jumplandsoundthingy:Play()
  1138. randomclothrollsound()
  1139. local rannum = math.random(1,3)
  1140. if rannum == 1 then
  1141. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1142. elseif rannum == 2 then
  1143. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1144. else
  1145. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1146. end
  1147. bodymovesound:Play()
  1148. runvel.velocity = cam.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,30,0)
  1149. wait(0.22)
  1150. end
  1151.  
  1152. else
  1153.  
  1154. wallrunning = false
  1155.  
  1156. end
  1157. else
  1158.  
  1159. wallrunning = false
  1160.  
  1161.  
  1162. end
  1163. end
  1164. tilterepic(0)
  1165. hum.PlatformStand = false
  1166. rightwallrunanimplay:Stop()
  1167. gyro.MaxTorque = Vector3.new(0,0,0)
  1168. print("Wall run end")
  1169. runvel.MaxForce = Vector3.new(0,0,0)
  1170. return
  1171. end
  1172.  
  1173.  
  1174.  
  1175.  
  1176. end
  1177.  
  1178. local rl = Ray.new(root.Position,root.CFrame.RightVector*-3.5)
  1179. local lhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rl,ignorelist)
  1180. if lhit then
  1181. if lhit then
  1182.  
  1183. wallrunning = true
  1184.  
  1185. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(0,math.rad(90),math.rad(-20))
  1186. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  1187. gyro.P = 250
  1188. local grav = 20
  1189. runvel.Velocity = (gyro.CFrame.LookVector*30+Vector3.new(0,grav,0))
  1190. runvel.Velocity = runvel.Velocity + gyro.CFrame.RightVector*-5
  1191. hum.PlatformStand = true
  1192.  
  1193.  
  1194. leftwallrunanimplay:Play()
  1195. randomclothrollsound()
  1196. tilterepic(-35)
  1197. tricksinarow = tricksinarow+1
  1198. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1199.  
  1200. while wallrunning == true do
  1201. if camerakill == true then return end
  1202. rs.RenderStepped:Wait()
  1203.  
  1204. if hitfloor then wallrunning = false end
  1205. if fronthit == true then print("Face died") tilterepic(0) wallrunning = false leftwallrunanimplay:Stop() gyro.MaxTorque = Vector3.new(0,0,0)
  1206. print("Wall run end")
  1207. runvel.MaxForce = Vector3.new(0,0,0) wallrunable= true verticalwallrun(grav+hum.WalkSpeed) return end
  1208. rs.RenderStepped:Wait()
  1209. if camerakill == true then return end
  1210. grav = grav-0.95
  1211. local r2 = Ray.new(root.Position,root.CFrame.RightVector*-5)
  1212. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  1213. if hit then
  1214.  
  1215. if cdown == true then wallrunning = false end
  1216. if hit then
  1217. gyro.CFrame = CFrame.new((ray+root.CFrame.RightVector*2),(ray+root.CFrame.RightVector*2)+point)*CFrame.Angles(0,math.rad(90),math.rad(-20))
  1218. runvel.Velocity = gyro.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,grav,0)
  1219. gyro.P = befpower
  1220.  
  1221. if wallrunable == true then
  1222.  
  1223. wallrunning = false
  1224. tilterepic(0)
  1225. leftwallrunanimplay:Stop()
  1226. gyro.MaxTorque = Vector3.new(0,0,0)
  1227. hum.PlatformStand = false
  1228. jumplandsoundthingy:Play()
  1229. randomclothrollsound()
  1230. local rannum = math.random(1,3)
  1231. if rannum == 1 then
  1232. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1233. elseif rannum == 2 then
  1234. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1235. else
  1236. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1237. end
  1238. bodymovesound:Play()
  1239. runvel.velocity = cam.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,30,0)
  1240. wait(0.22)
  1241. end
  1242.  
  1243. else
  1244.  
  1245. wallrunning = false
  1246.  
  1247. end
  1248. else
  1249.  
  1250. wallrunning = false
  1251.  
  1252.  
  1253. end
  1254. end
  1255. hum.PlatformStand = false
  1256. leftwallrunanimplay:Stop()
  1257. tilterepic(0)
  1258. gyro.MaxTorque = Vector3.new(0,0,0)
  1259. print("Wall run end")
  1260. runvel.MaxForce = Vector3.new(0,0,0)
  1261. return
  1262. end
  1263.  
  1264.  
  1265.  
  1266.  
  1267. end
  1268. wallrunable = true
  1269. verticalwallrun(hum.WalkSpeed+20)
  1270.  
  1271. end
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278. local spacedown = false
  1279. local backjumpdel = false
  1280. local backhit = false
  1281. UIS.InputBegan:Connect(function(inpt,gamestuff)
  1282. if inpt.KeyCode == Enum.KeyCode.Space then
  1283. if gamestuff then return end
  1284. if wallrunning == false then
  1285.  
  1286. if sliding == false then
  1287. if backhit == true then
  1288. if hitfloor == false then
  1289. jumplandsoundthingy:Play()
  1290. randomclothrollsound(false)
  1291. root.Velocity = root.CFrame.LookVector*120+Vector3.new(0,40,0)
  1292. end
  1293. end
  1294. end
  1295.  
  1296. end
  1297. wallrunabletrue()
  1298. wallruncheck()
  1299. if sliding == true then
  1300.  
  1301. spacedown = true
  1302. wait(0.1)
  1303. spacedown = false
  1304. end
  1305.  
  1306. wait(0.1)
  1307. if wallrunning == false then
  1308. if rolldel == false then
  1309.  
  1310. if backjumpdel == false then
  1311.  
  1312.  
  1313. end
  1314.  
  1315. end
  1316.  
  1317. end
  1318. end
  1319.  
  1320.  
  1321.  
  1322. end)
  1323.  
  1324.  
  1325.  
  1326.  
  1327. function slide()
  1328. coroutine.resume(coroutine.create(function()
  1329. if downed == true then return end
  1330. if sliding == true then return end
  1331. sliding = true
  1332. randomclothrollsound()
  1333. tilterepic(-15,true)
  1334. hum.PlatformStand = true
  1335. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  1336. gyro.P = befpower*3
  1337.  
  1338. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1339. local ogcf = root.CFrame
  1340. local befrooty = root.Position.Y
  1341. local ogcf = root.CFrame
  1342. gyro.CFrame = ogcf*CFrame.Angles(math.rad(80),0,0)
  1343. print("BEGINSLIDE")
  1344. tricksinarow = tricksinarow+1
  1345. while sliding == true do
  1346. rs.RenderStepped:Wait()
  1347. if camerakill == true then return end
  1348. runvel.Velocity = (ogcf.LookVector*flow*1.45)+Vector3.new(0,-70,0)
  1349.  
  1350. slidingplay:Play()
  1351. slidingplay:AdjustSpeed(0)
  1352. if root.Position.Y+0.05 < befrooty then
  1353. flow = flow+flowmax/70
  1354. end
  1355.  
  1356. befrooty = root.Position.Y
  1357.  
  1358.  
  1359.  
  1360. if root.Velocity.Magnitude < 20 then
  1361. sliding = false
  1362. slidingplay:Stop()
  1363. tilterepic(0,true)
  1364. cdown = false
  1365. break
  1366. end
  1367.  
  1368. if cdown == false then
  1369. sliding = false
  1370. slidingplay:Stop()
  1371. tilterepic(0,true)
  1372. break
  1373. else
  1374.  
  1375. end
  1376.  
  1377. flow = flow-flowmax/100
  1378.  
  1379.  
  1380.  
  1381. if spacedown == true then
  1382. sliding = false
  1383. cdown = false
  1384. slidingplay:Stop()
  1385. tilterepic(0,true)
  1386. break
  1387.  
  1388. end
  1389.  
  1390.  
  1391. if flow < flowmin+5 then
  1392. sliding = false
  1393. flow = flowmin
  1394. slidingplay:Stop()
  1395. tilterepic(0,true)
  1396. break
  1397. end
  1398.  
  1399. end
  1400.  
  1401.  
  1402. gyro.MaxTorque = Vector3.new(0,0,0)
  1403. gyro.P = befpower
  1404.  
  1405. runvel.MaxForce = Vector3.new(0,0,0)
  1406. hum.PlatformStand = false
  1407. if spacedown == true and flow < flowmax then
  1408. hum.PlatformStand = true
  1409. sliding = false
  1410. tilterepic(0,true)
  1411. slidingplay:Stop()
  1412. local x, y, z = cam.CFrame:ToEulerAnglesYXZ()
  1413. rollering = true
  1414.  
  1415. root.CFrame = CFrame.new(root.Position)*CFrame.Angles(0, y, 0)
  1416. bodymovesound:Play()
  1417.  
  1418. roll()
  1419. return
  1420.  
  1421. elseif spacedown == true and flowmax+3 < flow then
  1422. hum.PlatformStand = false
  1423. sliding = false
  1424. tilterepic(0,true)
  1425. slidingplay:Stop()
  1426. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1427. bodymovesound:Play()
  1428. jumplandsoundthingy:Play()
  1429. randomclothrollsound()
  1430. local rannum = math.random(1,3)
  1431. if rannum == 1 then
  1432. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1433. elseif rannum == 2 then
  1434. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1435. else
  1436. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1437. end
  1438. runvel.velocity = cam.CFrame.LookVector*flow*2+Vector3.new(0,flow,0)
  1439. coroutine.resume(coroutine.create(function()
  1440.  
  1441.  
  1442. local tiltnumb = 0
  1443. local rannum = math.random(1,4)
  1444.  
  1445. if rannum == 1 then
  1446. tiltnumb = 40
  1447. elseif rannum == 2 then
  1448. tiltnumb = 20
  1449. elseif rannum == 3 then
  1450. tiltnumb = -40
  1451. else
  1452. tiltnumb = -20
  1453. end
  1454.  
  1455. local cameratilterman2 =tiltnumb*0.2
  1456.  
  1457.  
  1458.  
  1459.  
  1460. local cameratiltermax = cameratilterman2
  1461.  
  1462. local sinnerman = 1
  1463. local sinnerman2 = 0
  1464. for i = 10,1,-1 do
  1465. game:GetService("RunService").RenderStepped:Wait()
  1466. if camerakill == true then return end
  1467. sinnerman = sinnerman-0.1
  1468. sinnerman2 = math.sin(sinnerman*1.25)
  1469. print(sinnerman .. " I AM SIN")
  1470. cameratilterman2 = cameratiltermax*sinnerman2
  1471.  
  1472. cam.CFrame = cam.CFrame*CFrame.Angles(0,0,math.rad(cameratilterman2))
  1473. end
  1474.  
  1475.  
  1476. end))
  1477. wait(0.25)
  1478. runvel.MaxForce = Vector3.new(0,0,0)
  1479. return
  1480.  
  1481. else
  1482. hum.PlatformStand = false
  1483. sliding = false
  1484.  
  1485. return
  1486. end
  1487.  
  1488. end))
  1489.  
  1490. end
  1491.  
  1492. local sliding = false
  1493. local rppos = Vector3.new(0,0,0)
  1494. local landed = false
  1495. local pressspacebeforeland = false
  1496. local landdel = false
  1497. local beforelandy = 0
  1498. function landdeler()
  1499. coroutine.resume(coroutine.create(function()
  1500. landdel = true
  1501. wait(0.2)
  1502. landdel = false
  1503. pressspacebeforeland = false
  1504. beforelandy = root.Position.Y
  1505. end))
  1506. end
  1507.  
  1508. UIS.InputBegan:Connect(function(input,gamestuff)
  1509. if springjumpdel == true then return end
  1510. if input.KeyCode == Enum.KeyCode.Space then
  1511. if gamestuff == true then return end
  1512. if hitfloor == true then
  1513. if pressspacebeforeland == false then
  1514. pressspacebeforeland = true
  1515. else
  1516. if root.Position.Y > beforelandy+2 then
  1517. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1518. runvel.Velocity = cam.CFrame.LookVector*flow*2+Vector3.new(0,flow/2,0)
  1519. springjumpdel = true
  1520. randomclothrollsound()
  1521. jumplandsoundthingy:Play()
  1522. local rannum = math.random(1,3)
  1523. if rannum == 1 then
  1524. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1525. elseif rannum == 2 then
  1526. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1527. else
  1528. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1529. end
  1530. bodymovesound:Play()
  1531. pressspacebeforeland = false
  1532. springjumpplay:Play()
  1533. tricksinarow = tricksinarow+1
  1534. coroutine.resume(coroutine.create(function()
  1535.  
  1536.  
  1537. local tiltnumb = 0
  1538. local rannum = math.random(1,4)
  1539.  
  1540. if rannum == 1 then
  1541. tiltnumb = 40
  1542. elseif rannum == 2 then
  1543. tiltnumb = 20
  1544. elseif rannum == 3 then
  1545. tiltnumb = -40
  1546. else
  1547. tiltnumb = -20
  1548. end
  1549.  
  1550. local cameratilterman2 =tiltnumb*0.2
  1551.  
  1552.  
  1553.  
  1554.  
  1555. local cameratiltermax = cameratilterman2
  1556.  
  1557. local sinnerman = 1
  1558. local sinnerman2 = 0
  1559. for i = 10,1,-1 do
  1560. game:GetService("RunService").RenderStepped:Wait()
  1561. if camerakill == true then return end
  1562. sinnerman = sinnerman-0.1
  1563. sinnerman2 = math.sin(sinnerman*1.25)
  1564. print(sinnerman .. " I AM SIN")
  1565. cameratilterman2 = cameratiltermax*sinnerman2
  1566.  
  1567. cam.CFrame = cam.CFrame*CFrame.Angles(0,0,math.rad(cameratilterman2))
  1568. end
  1569.  
  1570.  
  1571. end))
  1572.  
  1573.  
  1574.  
  1575. wait(0.2)
  1576. springjumpplay:Stop()
  1577. runvel.MaxForce = Vector3.new(0,0,0)
  1578. wait(0.2)
  1579. springjumpdel = false
  1580. end
  1581. end
  1582.  
  1583.  
  1584. end
  1585. end
  1586. end)
  1587.  
  1588.  
  1589. local plr = game.Players.LocalPlayer
  1590. local Character = plr.Character or plr.CharacterAdded:Wait()
  1591. local Root = Character:WaitForChild("HumanoidRootPart")
  1592. local Head = Character:WaitForChild("Head")
  1593. local Hum = Character:WaitForChild("Humanoid")
  1594. local holdingon = Instance.new("Animation",hum)
  1595. holdingon.AnimationId = "rbxassetid://148831003"
  1596. local climbingstuffs = Instance.new("Animation",hum)
  1597. climbingstuffs.AnimationId = "rbxassetid://125750702"
  1598. local CA = Hum:LoadAnimation(climbingstuffs)
  1599. local HA = Hum:LoadAnimation(holdingon)
  1600. local TouchGui = plr:WaitForChild("PlayerGui"):FindFirstChild("TouchGui")
  1601. local UIS = game:GetService("UserInputService")
  1602.  
  1603. ledgeavailable = true
  1604. holding = false
  1605.  
  1606.  
  1607.  
  1608.  
  1609. function climb()
  1610. local Vele = Instance.new("BodyVelocity",Head)
  1611. Root.Anchored = false
  1612. Vele.MaxForce = Vector3.new(1,1,1) * math.huge
  1613. Vele.Velocity = Root.CFrame.LookVector * 10 + Vector3.new(0,30,0)
  1614. HA:Stop() CA:Play()
  1615. game.Debris:AddItem(Vele,.15)
  1616. holding = false
  1617. wait(.0)
  1618. ledgeavailable = true
  1619. end
  1620.  
  1621. UIS.InputBegan:Connect(function(Key,Chat)
  1622. if not holding then return end
  1623. if Key.KeyCode == Enum.KeyCode.Space and not Chat then
  1624. climb()
  1625. end
  1626. end)
  1627.  
  1628. if TouchGui then
  1629. TouchGui:WaitForChild("TouchControlFrame"):WaitForChild("JumpButton").MouseButton1Click:Connect(function()
  1630. if not holding then return end climb()
  1631. end)
  1632. end
  1633.  
  1634.  
  1635.  
  1636.  
  1637. while true do
  1638. repeat rs.RenderStepped:Wait() until sliding == false
  1639. rs.RenderStepped:Wait()
  1640. local r = Ray.new(root.Position,root.CFrame.LookVector*-6)
  1641. local hit,ray = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1642. if hit then
  1643. backhit = true
  1644.  
  1645. else
  1646. backhit = false
  1647. end
  1648.  
  1649. if camerakill == true then return end
  1650. if hum.FloorMaterial == Enum.Material.Air then
  1651. if landed == true then
  1652. landed = false
  1653. end
  1654. else
  1655. if landed == false then
  1656. landed = true
  1657.  
  1658. landdeler()
  1659. end
  1660.  
  1661. end
  1662. local killx,killy,killz = root.CFrame:ToEulerAnglesYXZ()
  1663. local nobadcf = CFrame.new(root.Position)*CFrame.Angles(0,killy,0)
  1664. local rclimber = Ray.new(Head.CFrame.p, nobadcf.LookVector * 6)
  1665.  
  1666. local killclimberray = Ray.new(Head.CFrame.p+Vector3.new(0,0.5,0), nobadcf.LookVector * 9)
  1667.  
  1668. local killmansraypart,killmansposition workspace:FindPartOnRayWithIgnoreList(killclimberray,ignorelist)
  1669.  
  1670. local part,position = workspace:FindPartOnRayWithIgnoreList(rclimber,ignorelist)
  1671. if not killmansraypart then
  1672.  
  1673.  
  1674. if part and ledgeavailable and not holding and not killmansraypart then
  1675. if part.Size.Y >= 4 and part.CanCollide == true and killmansraypart == nil and part.Transparency ~= 1 then
  1676. if Head.Position.Y >= (part.Position.Y + (part.Size.Y / 2)) - 1 and Head.Position.Y <= part.Position.Y + (part.Size.Y / 2) and Hum.FloorMaterial == Enum.Material.Air and sliding == false and downed == false and wallrunning == true then
  1677. if HA.IsPlaying == false then
  1678. wallrunning = false
  1679. root.CFrame = nobadcf
  1680. randomclothrollsound(false)
  1681. HA:Play()
  1682. wallrunning = false
  1683. HA:AdjustSpeed(0)
  1684. HA.TimePosition = 1.3
  1685. end
  1686.  
  1687. Root.Anchored = true holding = true ledgeavailable = false
  1688. end
  1689. end
  1690. end
  1691. end
  1692. local r = Ray.new(root.Position,Vector3.new(0,1,0).Unit*-5.5)
  1693. local hit,ray = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1694. if hit then
  1695. floorpositiony = ray.Y
  1696. if hitfloor == false then
  1697. hitfloor = true
  1698. if root.Velocity.Y < -60 then
  1699. if cdown == true then
  1700. root.Velocity = Vector3.new(root.Velocity.X,-10,root.Velocity.Z)
  1701. cdown = false
  1702.  
  1703. roll()
  1704. else
  1705. if root.Velocity.Y < -90 then
  1706. downer()
  1707.  
  1708. end
  1709.  
  1710. end
  1711. end
  1712. end
  1713.  
  1714. else
  1715. if hitfloor == true then
  1716. hitfloor = false
  1717. end
  1718. end
  1719. local r = Ray.new(root.Position,root.CFrame.LookVector*1.8)
  1720. local hit,ray,rp = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1721. if hit then
  1722. fronthit = true
  1723. rppos = rp
  1724. else
  1725. fronthit = false
  1726. end
  1727. if hitfloor == true then
  1728.  
  1729. if cdown == true then
  1730. if flow < flowmin+5 then
  1731.  
  1732. if flow ~= crouchspeed then
  1733. flow = crouchspeed
  1734. end
  1735. if crouchingplay.IsPlaying == false then
  1736. crouchingplay:Play()
  1737. randomclothrollsound()
  1738. end
  1739. else
  1740. if landed == true then
  1741. slide()
  1742. end
  1743.  
  1744. end
  1745. end
  1746.  
  1747. end
  1748. if cdown == false then
  1749. if crouchingplay.IsPlaying == true then
  1750. crouchingplay:Stop()
  1751. end
  1752. if walkingmode == false and hum.MoveDirection ~= Vector3.new(0,0,0) or wallrunning == true then
  1753. flow = flow+flowmax/70
  1754.  
  1755.  
  1756. if tricksinarow > 8 then
  1757. if combatmusic.Volume ~= 0.5 then
  1758. combatmusic.Volume = 0
  1759. ambience.Volume = 0
  1760. explorationmusic.Volume =0.5
  1761. end
  1762. end
  1763.  
  1764. if timestanding ~= 0 then
  1765. timestanding = 0
  1766. end
  1767. if flow > flowmax then
  1768. flow = flowmax
  1769. end
  1770. else
  1771. flow = flow-flowmax/23
  1772. if combatmusic.Volume ~= 0.5 then
  1773. timestanding = timestanding+0.05
  1774. end
  1775.  
  1776. if timestanding > 18 then
  1777. timestanding = 0
  1778. tricksinarow = 0
  1779. if combatmusic.Volume ~= 0.5 then
  1780. if ambience.Volume ~= 0.5 then
  1781. ambience.Volume = 0.5
  1782. explorationmusic.Volume = 0
  1783. combatmusic.Volume = 0
  1784.  
  1785. end
  1786.  
  1787. end
  1788. end
  1789. if flow < flowmin then
  1790. flow = flowmin
  1791. end
  1792. end
  1793.  
  1794.  
  1795.  
  1796. end
  1797. if downed == false then
  1798. hum.WalkSpeed = flow
  1799. else
  1800. hum.WalkSpeed = 1
  1801. end
  1802.  
  1803. end
Add Comment
Please, Sign In to add comment