Advertisement
ERROR_CODE

Game

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