robloxscriptsbbbbb

he,,hagfhgfh

Aug 28th, 2022
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.07 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 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed rolldel =false xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 0.05 then
  665. if combatmusic.Volume ~= 0.5 then
  666. combatmusic.Volume = 0.5
  667. ambience.Volume = 0
  668. explorationmusic.Volume = 0
  669. combatmusic:Play()
  670. end
  671. combattime = combattime-0.01
  672. else
  673. combattime = 0
  674. if combatmusic.Volume == 0.5 then
  675. combatmusic.Volume = 0
  676. ambience.Volume = 0.5
  677.  
  678. explorationmusic.Volume = 0
  679. end
  680. end
  681. if rolldel == true or downed == true then
  682. if camerakill == true then return end
  683. cam.CFrame = char:WaitForChild("Head").CFrame
  684.  
  685. end
  686. if camerakill == false then
  687. winder.Volume = root.Velocity.Magnitude*0.015
  688. if winder.Volume > 5 then
  689. winder.Volume = 5
  690. end
  691. winder.PlaybackSpeed = root.Velocity.Magnitude*0.015
  692. if winder.PlaybackSpeed > 4 then
  693. winder.PlaybackSpeed = 4
  694. end
  695. windercloth.Volume = root.Velocity.Magnitude*0.015
  696. if windercloth.Volume > 5 then
  697. windercloth.Volume = 5
  698. end
  699. windercloth.PlaybackSpeed = root.Velocity.Magnitude*0.015
  700. if windercloth.PlaybackSpeed > 2 then
  701. windercloth.PlaybackSpeed = 2
  702. end
  703. end
  704.  
  705.  
  706. if rolldel == false and wallrunning == false and sliding == false and downed == false and holding == false then
  707. hum.AutoRotate = true
  708. if slidingsound.IsPlaying == true then
  709. slidingsound:Stop()
  710. end
  711. if wallrunningsound.IsPlaying == true then
  712. wallrunningsound:Stop()
  713. end
  714. else
  715. hum.AutoRotate = false
  716. if wallrunning == true then
  717. if wallrunningsound.IsPlaying == false then
  718. wallrunningsound:Play()
  719. end
  720. else
  721. if wallrunningsound.IsPlaying == true then
  722. wallrunningsound:Stop()
  723. end
  724. end
  725.  
  726.  
  727. if sliding == true then
  728. if slidingsound.IsPlaying == false then
  729. slidingsound:Play()
  730. end
  731. else
  732. if slidingsound.IsPlaying == true then
  733. slidingsound:Stop()
  734. end
  735. end
  736. end
  737.  
  738. end
  739.  
  740. end))
  741. function wallrunabletrue()
  742. coroutine.resume(coroutine.create(function()
  743. if hitfloor == true then return end
  744. wallrunable = true
  745. wait(0.05)
  746. wallrunable = false
  747. end))
  748. end
  749.  
  750.  
  751. wallrundel = false
  752. function verticalwallrun(grav2)
  753. coroutine.resume(coroutine.create(function()
  754. if wallrundel == true then return end
  755. if wallrunning == true then return end
  756. if downed == true then return end
  757. if cdown == true then return end
  758. if wallrunable == false then return end
  759.  
  760. if fronthit then
  761.  
  762. print("Made it 1")
  763. local rr = Ray.new(root.Position,root.CFrame.LookVector*5)
  764. local rhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rr,ignorelist)
  765. if rhit then
  766. if rhit then
  767. wallrunning = false
  768. wait()
  769. tilterepic(0)
  770. tricksinarow = tricksinarow+1
  771. wallrunning = true
  772. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(math.rad(-22),math.rad(180),0)
  773. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  774.  
  775.  
  776. local grav = grav2-11
  777. runvel.Velocity = Vector3.new(0,grav,0)
  778. print("Made it 2")
  779. runvel.MaxForce = Vector3.new(99999,99999,99999)
  780. wallrunable = false
  781. hum.PlatformStand = true
  782. randomclothrollsound()
  783. verticalwallrunanimplay:Play()
  784. while wallrunning == true do
  785. rs.RenderStepped:Wait()
  786. if camerakill == true then return end
  787.  
  788. grav = grav-0.8
  789. local r2 = Ray.new(root.Position,root.CFrame.LookVector*5)
  790. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  791. if hit then
  792. print("Made it 3")
  793. if hitfloor then wallrunning = false end
  794. if cdown == true then wallrunning = false end
  795. if hit then
  796. gyro.CFrame = CFrame.new((ray+root.CFrame.LookVector*-2),(ray+root.CFrame.LookVector*-2)+point)*CFrame.Angles(math.rad(-22),math.rad(180),0)
  797. runvel.Velocity = Vector3.new(0,grav,0)
  798. gyro.P = befpower
  799. if wallrunable == true then
  800.  
  801. wallrunning = false
  802. gyro.MaxTorque = Vector3.new(0,0,0)
  803. hum.PlatformStand = false
  804. print("Jump")
  805. randomclothrollsound()
  806. jumplandsoundthingy:Play()
  807. local rannum = math.random(1,3)
  808. if rannum == 1 then
  809. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  810. elseif rannum == 2 then
  811. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  812. else
  813. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  814. end
  815. bodymovesound:Play()
  816. hum.PlatformStand = false
  817. runvel.velocity = root.CFrame.LookVector*-hum.WalkSpeed+Vector3.new(0,30,0)
  818. wait(0.22)
  819. end
  820.  
  821. else
  822.  
  823. wallrunning = false
  824.  
  825. end
  826. else
  827.  
  828. wallrunning = false
  829.  
  830.  
  831. end
  832. end
  833. hum.PlatformStand = false
  834. verticalwallrunanimplay:Stop()
  835. gyro.MaxTorque = Vector3.new(0,0,0)
  836. print("Wall run ended")
  837.  
  838. runvel.MaxForce = Vector3.new(0,0,0)
  839. hum:ChangeState(Enum.HumanoidStateType.Jumping)
  840. return
  841. end
  842.  
  843.  
  844.  
  845.  
  846. end
  847.  
  848. end
  849. end))
  850. end
  851.  
  852.  
  853.  
  854. function wallruncheck()
  855. if downed == true then
  856. if rolldel == false and downeddel == false then
  857. downedanim1play:Stop()
  858. downed = false
  859. hum.JumpPower = 50
  860. roll()
  861. return
  862. end
  863.  
  864. end
  865. if sliding == true then return end
  866. if cdown == true then
  867. if hitfloor == true then
  868. roll()
  869. end
  870. end
  871. if wallrundel == true then return end
  872. if wallrunning == true then return end
  873. if wallrunable == false then return end
  874. if cdown == true then return end
  875. if dodgedel == true then return end
  876. wallrunable = false
  877. local rr = Ray.new(root.Position,root.CFrame.RightVector*3.5)
  878. local rhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rr,ignorelist)
  879. if rhit then
  880. if rhit then
  881.  
  882. wallrunning = true
  883. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(0,math.rad(-90),math.rad(20))
  884. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  885. hum.PlatformStand = true
  886.  
  887. local grav = 20
  888. runvel.Velocity = gyro.CFrame.LookVector*30+Vector3.new(0,grav,0)
  889. runvel.Velocity = runvel.Velocity + gyro.CFrame.RightVector*5
  890. runvel.MaxForce = Vector3.new(99999,99999,99999)
  891. rightwallrunanimplay:Play()
  892. randomclothrollsound()
  893. tricksinarow = tricksinarow+1
  894. tilterepic(35)
  895. while wallrunning == true do
  896. if camerakill == true then return end
  897. rs.RenderStepped:Wait()
  898.  
  899. grav = grav-0.95
  900. local r2 = Ray.new(root.Position,root.CFrame.RightVector*5)
  901. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  902. if hit then
  903.  
  904. if hitfloor then wallrunning = false end
  905. if cdown == true then wallrunning = false end
  906. if fronthit == true then print("Face died") tilterepic(0) wallrunning = false rightwallrunanimplay:Stop() gyro.MaxTorque = Vector3.new(0,0,0)
  907. print("Wall run end")
  908.  
  909. runvel.MaxForce = Vector3.new(0,0,0)wallrunable = true verticalwallrun(grav+hum.WalkSpeed) return end
  910. if hit then
  911. gyro.CFrame = CFrame.new((ray+root.CFrame.RightVector*-2),(ray+root.CFrame.RightVector*-2)+point)*CFrame.Angles(0,math.rad(-90),math.rad(20))
  912. runvel.Velocity = gyro.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,grav,0)
  913. gyro.P = befpower
  914. if wallrunable == true then
  915. tilterepic(0)
  916. wallrunning = false
  917. rightwallrunanimplay:Stop()
  918. gyro.MaxTorque = Vector3.new(0,0,0)
  919. hum.PlatformStand = false
  920. jumplandsoundthingy:Play()
  921. randomclothrollsound()
  922. local rannum = math.random(1,3)
  923. if rannum == 1 then
  924. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  925. elseif rannum == 2 then
  926. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  927. else
  928. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  929. end
  930. bodymovesound:Play()
  931. runvel.velocity = cam.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,30,0)
  932. wait(0.22)
  933. end
  934.  
  935. else
  936.  
  937. wallrunning = false
  938.  
  939. end
  940. else
  941.  
  942. wallrunning = false
  943.  
  944.  
  945. end
  946. end
  947. tilterepic(0)
  948. hum.PlatformStand = false
  949. rightwallrunanimplay:Stop()
  950. gyro.MaxTorque = Vector3.new(0,0,0)
  951. print("Wall run end")
  952. runvel.MaxForce = Vector3.new(0,0,0)
  953. return
  954. end
  955.  
  956.  
  957.  
  958.  
  959. end
  960.  
  961. local rl = Ray.new(root.Position,root.CFrame.RightVector*-3.5)
  962. local lhit,ray,rpoint = workspace:FindPartOnRayWithIgnoreList(rl,ignorelist)
  963. if lhit then
  964. if lhit then
  965.  
  966. wallrunning = true
  967.  
  968. gyro.CFrame = CFrame.new(root.Position,root.Position+rpoint)*CFrame.Angles(0,math.rad(90),math.rad(-20))
  969. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  970. gyro.P = 250
  971. local grav = 20
  972. runvel.Velocity = (gyro.CFrame.LookVector*30+Vector3.new(0,grav,0))
  973. runvel.Velocity = runvel.Velocity + gyro.CFrame.RightVector*-5
  974. hum.PlatformStand = true
  975.  
  976.  
  977. leftwallrunanimplay:Play()
  978. randomclothrollsound()
  979. tilterepic(-35)
  980. tricksinarow = tricksinarow+1
  981. runvel.MaxForce = Vector3.new(99999,99999,99999)
  982.  
  983. while wallrunning == true do
  984. if camerakill == true then return end
  985. rs.RenderStepped:Wait()
  986.  
  987. if hitfloor then wallrunning = false end
  988. if fronthit == true then print("Face died") tilterepic(0) wallrunning = false leftwallrunanimplay:Stop() gyro.MaxTorque = Vector3.new(0,0,0)
  989. print("Wall run end")
  990. runvel.MaxForce = Vector3.new(0,0,0) wallrunable= true verticalwallrun(grav+hum.WalkSpeed) return end
  991. rs.RenderStepped:Wait()
  992. if camerakill == true then return end
  993. grav = grav-0.95
  994. local r2 = Ray.new(root.Position,root.CFrame.RightVector*-5)
  995. local hit,ray,point = workspace:FindPartOnRayWithIgnoreList(r2,ignorelist)
  996. if hit then
  997.  
  998. if cdown == true then wallrunning = false end
  999. if hit then
  1000. gyro.CFrame = CFrame.new((ray+root.CFrame.RightVector*2),(ray+root.CFrame.RightVector*2)+point)*CFrame.Angles(0,math.rad(90),math.rad(-20))
  1001. runvel.Velocity = gyro.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,grav,0)
  1002. gyro.P = befpower
  1003.  
  1004. if wallrunable == true then
  1005.  
  1006. wallrunning = false
  1007. tilterepic(0)
  1008. leftwallrunanimplay:Stop()
  1009. gyro.MaxTorque = Vector3.new(0,0,0)
  1010. hum.PlatformStand = false
  1011. jumplandsoundthingy:Play()
  1012. randomclothrollsound()
  1013. local rannum = math.random(1,3)
  1014. if rannum == 1 then
  1015. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1016. elseif rannum == 2 then
  1017. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1018. else
  1019. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1020. end
  1021. bodymovesound:Play()
  1022. runvel.velocity = cam.CFrame.LookVector*hum.WalkSpeed+Vector3.new(0,30,0)
  1023. wait(0.22)
  1024. end
  1025.  
  1026. else
  1027.  
  1028. wallrunning = false
  1029.  
  1030. end
  1031. else
  1032.  
  1033. wallrunning = false
  1034.  
  1035.  
  1036. end
  1037. end
  1038. hum.PlatformStand = false
  1039. leftwallrunanimplay:Stop()
  1040. tilterepic(0)
  1041. gyro.MaxTorque = Vector3.new(0,0,0)
  1042. print("Wall run end")
  1043. runvel.MaxForce = Vector3.new(0,0,0)
  1044. return
  1045. end
  1046.  
  1047.  
  1048.  
  1049.  
  1050. end
  1051. wallrunable = true
  1052. verticalwallrun(hum.WalkSpeed+20)
  1053.  
  1054. end
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061. local spacedown = false
  1062. local backjumpdel = false
  1063. local backhit = false
  1064. UIS.InputBegan:Connect(function(inpt,gamestuff)
  1065. if inpt.KeyCode == Enum.KeyCode.Space then
  1066. if gamestuff then return end
  1067. if wallrunning == false then
  1068.  
  1069. if sliding == false then
  1070. if backhit == true then
  1071. if hitfloor == false then
  1072. jumplandsoundthingy:Play()
  1073. randomclothrollsound(false)
  1074. root.Velocity = root.CFrame.LookVector*120+Vector3.new(0,40,0)
  1075. end
  1076. end
  1077. end
  1078.  
  1079. end
  1080. wallrunabletrue()
  1081. wallruncheck()
  1082. if sliding == true then
  1083.  
  1084. spacedown = true
  1085. wait(0.1)
  1086. spacedown = false
  1087. end
  1088.  
  1089. wait(0.1)
  1090. if wallrunning == false then
  1091. if rolldel == false then
  1092.  
  1093. if backjumpdel == false then
  1094.  
  1095.  
  1096. end
  1097.  
  1098. end
  1099.  
  1100. end
  1101. end
  1102.  
  1103.  
  1104.  
  1105. end)
  1106.  
  1107.  
  1108.  
  1109.  
  1110. function slide()
  1111. coroutine.resume(coroutine.create(function()
  1112. if downed == true then return end
  1113. if sliding == true then return end
  1114. sliding = true
  1115. randomclothrollsound()
  1116. tilterepic(-15,true)
  1117. hum.PlatformStand = true
  1118. gyro.MaxTorque = Vector3.new(99999,99999,99999)
  1119. gyro.P = befpower*3
  1120.  
  1121. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1122. local ogcf = root.CFrame
  1123. local befrooty = root.Position.Y
  1124. local ogcf = root.CFrame
  1125. gyro.CFrame = ogcf*CFrame.Angles(math.rad(80),0,0)
  1126. print("BEGINSLIDE")
  1127. tricksinarow = tricksinarow+1
  1128. while sliding == true do
  1129. rs.RenderStepped:Wait()
  1130. if camerakill == true then return end
  1131. runvel.Velocity = (ogcf.LookVector*flow*1.45)+Vector3.new(0,-70,0)
  1132.  
  1133. slidingplay:Play()
  1134. slidingplay:AdjustSpeed(0)
  1135. if root.Position.Y+0.05 < befrooty xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed jumplandsoundthingy.SoundId = "rbxassetid://6079433272" xss=removed jumplandsoundthingy.SoundId = "rbxassetid://6079432684" jumplandsoundthingy.SoundId = "rbxassetid://6079431954" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed cameratilterman2 =tiltnumb*0.2 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> beforelandy+2 then
  1136. runvel.MaxForce = Vector3.new(99999,99999,99999)
  1137. runvel.Velocity = cam.CFrame.LookVector*flow*2+Vector3.new(0,flow/2,0)
  1138. springjumpdel = true
  1139. randomclothrollsound()
  1140. jumplandsoundthingy:Play()
  1141. local rannum = math.random(1,3)
  1142. if rannum == 1 then
  1143. jumplandsoundthingy.SoundId = "rbxassetid://6079433272"
  1144. elseif rannum == 2 then
  1145. jumplandsoundthingy.SoundId = "rbxassetid://6079432684"
  1146. else
  1147. jumplandsoundthingy.SoundId = "rbxassetid://6079431954"
  1148. end
  1149. bodymovesound:Play()
  1150. pressspacebeforeland = false
  1151. springjumpplay:Play()
  1152. tricksinarow = tricksinarow+1
  1153. coroutine.resume(coroutine.create(function()
  1154.  
  1155.  
  1156. local tiltnumb = 0
  1157. local rannum = math.random(1,4)
  1158.  
  1159. if rannum == 1 then
  1160. tiltnumb = 40
  1161. elseif rannum == 2 then
  1162. tiltnumb = 20
  1163. elseif rannum == 3 then
  1164. tiltnumb = -40
  1165. else
  1166. tiltnumb = -20
  1167. end
  1168.  
  1169. local cameratilterman2 =tiltnumb*0.2
  1170.  
  1171.  
  1172.  
  1173.  
  1174. local cameratiltermax = cameratilterman2
  1175.  
  1176. local sinnerman = 1
  1177. local sinnerman2 = 0
  1178. for i = 10,1,-1 do
  1179. game:GetService("RunService").RenderStepped:Wait()
  1180. if camerakill == true then return end
  1181. sinnerman = sinnerman-0.1
  1182. sinnerman2 = math.sin(sinnerman*1.25)
  1183. print(sinnerman .. " I AM SIN")
  1184. cameratilterman2 = cameratiltermax*sinnerman2
  1185.  
  1186. cam.CFrame = cam.CFrame*CFrame.Angles(0,0,math.rad(cameratilterman2))
  1187. end
  1188.  
  1189.  
  1190. end))
  1191.  
  1192.  
  1193.  
  1194. wait(0.2)
  1195. springjumpplay:Stop()
  1196. runvel.MaxForce = Vector3.new(0,0,0)
  1197. wait(0.2)
  1198. springjumpdel = false
  1199. end
  1200. end
  1201.  
  1202.  
  1203. end
  1204. end
  1205. end)
  1206.  
  1207.  
  1208. local plr = game.Players.LocalPlayer
  1209. local Character = plr.Character or plr.CharacterAdded:Wait()
  1210. local Root = Character:WaitForChild("HumanoidRootPart")
  1211. local Head = Character:WaitForChild("Head")
  1212. local Hum = Character:WaitForChild("Humanoid")
  1213. local holdingon = Instance.new("Animation",hum)
  1214. holdingon.AnimationId = "rbxassetid://148831003"
  1215. local climbingstuffs = Instance.new("Animation",hum)
  1216. climbingstuffs.AnimationId = "rbxassetid://125750702"
  1217. local CA = Hum:LoadAnimation(climbingstuffs)
  1218. local HA = Hum:LoadAnimation(holdingon)
  1219. local TouchGui = plr:WaitForChild("PlayerGui"):FindFirstChild("TouchGui")
  1220. local UIS = game:GetService("UserInputService")
  1221.  
  1222. ledgeavailable = true
  1223. holding = false
  1224.  
  1225.  
  1226.  
  1227.  
  1228. function climb()
  1229. local Vele = Instance.new("BodyVelocity",Head)
  1230. Root.Anchored = false
  1231. Vele.MaxForce = Vector3.new(1,1,1) * math.huge
  1232. Vele.Velocity = Root.CFrame.LookVector * 10 + Vector3.new(0,30,0)
  1233. HA:Stop() CA:Play()
  1234. game.Debris:AddItem(Vele,.15)
  1235. holding = false
  1236. wait(.0)
  1237. ledgeavailable = true
  1238. end
  1239.  
  1240. UIS.InputBegan:Connect(function(Key,Chat)
  1241. if not holding then return end
  1242. if Key.KeyCode == Enum.KeyCode.Space and not Chat then
  1243. climb()
  1244. end
  1245. end)
  1246.  
  1247. if TouchGui then
  1248. TouchGui:WaitForChild("TouchControlFrame"):WaitForChild("JumpButton").MouseButton1Click:Connect(function()
  1249. if not holding then return end climb()
  1250. end)
  1251. end
  1252.  
  1253.  
  1254.  
  1255.  
  1256. while true do
  1257. repeat rs.RenderStepped:Wait() until sliding == false
  1258. rs.RenderStepped:Wait()
  1259. local r = Ray.new(root.Position,root.CFrame.LookVector*-6)
  1260. local hit,ray = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1261. if hit then
  1262. backhit = true
  1263.  
  1264. else
  1265. backhit = false
  1266. end
  1267.  
  1268. if camerakill == true then return end
  1269. if hum.FloorMaterial == Enum.Material.Air then
  1270. if landed == true then
  1271. landed = false
  1272. end
  1273. else
  1274. if landed == false then
  1275. landed = true
  1276.  
  1277. landdeler()
  1278. end
  1279.  
  1280. end
  1281. local killx,killy,killz = root.CFrame:ToEulerAnglesYXZ()
  1282. local nobadcf = CFrame.new(root.Position)*CFrame.Angles(0,killy,0)
  1283. local rclimber = Ray.new(Head.CFrame.p, nobadcf.LookVector * 6)
  1284.  
  1285. local killclimberray = Ray.new(Head.CFrame.p+Vector3.new(0,0.5,0), nobadcf.LookVector * 9)
  1286.  
  1287. local killmansraypart,killmansposition workspace:FindPartOnRayWithIgnoreList(killclimberray,ignorelist)
  1288.  
  1289. local part,position = workspace:FindPartOnRayWithIgnoreList(rclimber,ignorelist)
  1290. if not killmansraypart then
  1291.  
  1292.  
  1293. if part and ledgeavailable and not holding and not killmansraypart then
  1294. if part.Size.Y >= 4 and part.CanCollide == true and killmansraypart == nil and part.Transparency ~= 1 then
  1295. if Head.Position.Y >= (part.Position.Y + (part.Size.Y / 2)) - 1 and Head.Position.Y &lt;= part.Position.Y + (part.Size.Y / 2) and Hum.FloorMaterial == Enum.Material.Air and sliding == false and downed == false and wallrunning == true then
  1296. if HA.IsPlaying == false then
  1297. wallrunning = false
  1298. root.CFrame = nobadcf
  1299. randomclothrollsound(false)
  1300. HA:Play()
  1301. wallrunning = false
  1302. HA:AdjustSpeed(0)
  1303. HA.TimePosition = 1.3
  1304. end
  1305.  
  1306. Root.Anchored = true holding = true ledgeavailable = false
  1307. end
  1308. end
  1309. end
  1310. end
  1311. local r = Ray.new(root.Position,Vector3.new(0,1,0).Unit*-5.5)
  1312. local hit,ray = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1313. if hit then
  1314. floorpositiony = ray.Y
  1315. if hitfloor == false then
  1316. hitfloor = true
  1317. if root.Velocity.Y &lt; -60 then
  1318. if cdown == true then
  1319. root.Velocity = Vector3.new(root.Velocity.X,-10,root.Velocity.Z)
  1320. cdown = false
  1321.  
  1322. roll()
  1323. else
  1324. if root.Velocity.Y &lt; -90 then
  1325. downer()
  1326.  
  1327. end
  1328.  
  1329. end
  1330. end
  1331. end
  1332.  
  1333. else
  1334. if hitfloor == true then
  1335. hitfloor = false
  1336. end
  1337. end
  1338. local r = Ray.new(root.Position,root.CFrame.LookVector*1.8)
  1339. local hit,ray,rp = workspace:FindPartOnRayWithIgnoreList(r,ignorelist)
  1340. if hit then
  1341. fronthit = true
  1342. rppos = rp
  1343. else
  1344. fronthit = false
  1345. end
  1346. if hitfloor == true then
  1347.  
  1348. if cdown == true then
  1349. if flow < flowmin xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 8 then
  1350. if combatmusic.Volume ~= 0.5 then
  1351. combatmusic.Volume = 0
  1352. ambience.Volume = 0
  1353. explorationmusic.Volume =0.5
  1354. end
  1355. end
  1356.  
  1357. if timestanding ~= 0 then
  1358. timestanding = 0
  1359. end
  1360. if flow > flowmax then
  1361. flow = flowmax
  1362. end
  1363. else
  1364. flow = flow-flowmax/23
  1365. if combatmusic.Volume ~= 0.5 then
  1366. timestanding = timestanding+0.05
  1367. end
  1368.  
  1369. if timestanding > 18 then
  1370. timestanding = 0
  1371. tricksinarow = 0
  1372. if combatmusic.Volume ~= 0.5 then
  1373. if ambience.Volume ~= 0.5 then
  1374. ambience.Volume = 0.5
  1375. explorationmusic.Volume = 0
  1376. combatmusic.Volume = 0
  1377.  
  1378. end
  1379.  
  1380. end
  1381. end
  1382. if flow &lt; flowmin then
  1383. flow = flowmin
  1384. end
  1385. end
  1386.  
  1387.  
  1388.  
  1389. end
  1390. if downed == false then
  1391. hum.WalkSpeed = flow
  1392. else
  1393. hum.WalkSpeed = 1
  1394. end
  1395.  
  1396. end
Add Comment
Please, Sign In to add comment