Advertisement
TeoMessiKing

Untitled

Mar 10th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.84 KB | None | 0 0
  1. --// Speed Run V5 \\--
  2. --// Scripted By TeoMessiKing \\--
  3.  
  4. wait(2)
  5.  
  6. local uis = game:GetService("UserInputService")
  7. local plr = game.Players.LocalPlayer
  8. local mouse = plr:GetMouse()
  9. local jump = false
  10. local run = false
  11. local fly = true
  12. local mag = wait()
  13. local character = plr.Character or plr.CharacterAdded:Wait()
  14. local anim = character.Humanoid:LoadAnimation(script.Animation)
  15. local debounce = false
  16. local cheats = false
  17. local speed = false
  18. local jumpcheat = false
  19. local ree = false
  20. local function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  21. local counter = 0
  22.  
  23.  
  24.  
  25.  
  26.  
  27. --// Custom Walk Script \\--
  28.  
  29. uis.InputBegan:Connect(function(key)
  30. if key.KeyCode == Enum.KeyCode.W then
  31. run=true
  32. print("Running")
  33. game.Workspace.CurrentCamera.FieldOfView = 70
  34. plr.Character.Humanoid.WalkSpeed = 16
  35. for i = 1,20 do
  36. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 0.5
  37. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 0.2
  38. wait()
  39. end
  40. end
  41. end)
  42.  
  43.  
  44. uis.InputEnded:Connect(function(key)
  45. if key.KeyCode == Enum.KeyCode.W then
  46. run=false
  47. print("Walking")
  48. for i=1,20 do
  49. wait()
  50. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 0.5
  51. plr.Character.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed - 0.2
  52. end
  53. end
  54. end)
  55.  
  56.  
  57. --// Custom Jump Script \\--
  58.  
  59. uis.InputBegan:Connect(function(key)
  60. if key.KeyCode == Enum.KeyCode.Space then
  61. jump=true
  62. workspace.CurrentCamera.FieldOfView = 70
  63. for i=1,10 do
  64. wait()
  65. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower + 1
  66. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 0.5
  67. end
  68. end
  69. end)
  70.  
  71.  
  72. uis.InputEnded:Connect(function(key)
  73. if key.KeyCode == Enum.KeyCode.Space then
  74. jump=false
  75. for i=1,10 do
  76. wait()
  77. plr.Character.Humanoid.JumpPower = plr.Character.Humanoid.JumpPower - 1
  78. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 0.5
  79. end
  80. workspace.CurrentCamera.FieldOfView = 70
  81. plr.Character.Humanoid.JumpPower = 50
  82. end
  83. end)
  84.  
  85.  
  86. --// Custom Fly Script (With Animation) \\--
  87.  
  88. uis.InputBegan:Connect(function(key)
  89. if key.KeyCode == Enum.KeyCode.F then
  90.  
  91. if plr.Character.HumanoidRootPart:findFirstChild("b") then
  92.  
  93. plr.Character.HumanoidRootPart.b:Destroy()
  94.  
  95. anim:Stop()
  96.  
  97. uis.MouseBehavior = Enum.MouseBehavior.Default
  98.  
  99. fly = false
  100.  
  101. game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  102.  
  103. for i=1,10 do
  104. wait()
  105. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 2
  106. end
  107. else
  108.  
  109. local bp = Instance.new("BodyVelocity")
  110. bp.Name = "b"
  111. bp.Parent = plr.Character.HumanoidRootPart
  112. bp.P = 7000
  113. anim:Play()
  114. for i=1,10 do
  115. wait()
  116. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 2
  117. end
  118. game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  119. fly = true
  120. repeat
  121. uis.MouseBehavior = Enum.MouseBehavior.LockCenter
  122. bp.Velocity = game.Workspace.CurrentCamera.CFrame.LookVector*100
  123. wait()
  124. until fly == false
  125. end
  126. end
  127. end)
  128.  
  129. --// Custom Special Abilities \\--
  130.  
  131. uis.InputBegan:Connect(function(key)
  132. if key.KeyCode == Enum.KeyCode.G then
  133. print("Gravity: Activated")
  134. for i=1,20 do
  135. game.Workspace.Gravity = 30
  136. print(20-i.." Seconds Left")
  137. wait(1)
  138. end
  139.  
  140. game.Workspace.Gravity = 196.2
  141. end
  142. end)
  143.  
  144. --// Cheats \\--
  145.  
  146. --// Cheat On/Off \\--
  147. plr.Chatted:Connect(function(msg)
  148. if msg == "!Cheats" then
  149. if not cheats then
  150. cheats = true
  151. print("Cheats On")
  152. elseif cheats then
  153. cheats = false
  154. print("Cheats Off")
  155.  
  156. end
  157. end
  158. end)
  159.  
  160.  
  161. --// Commands \\--
  162.  
  163. --// Speed Cheat \\--
  164.  
  165. plr.Chatted:Connect(function(msg)
  166. if msg == "!Speed" then
  167. if cheats then
  168. if not speed then
  169. speed = true
  170. repeat
  171. plr.Character.Humanoid.WalkSpeed = 100
  172. wait()
  173. until speed == false
  174. print("Speed On/Off")
  175. end
  176. if speed then
  177. speed = false
  178. end
  179. elseif not cheats then
  180. print("U Need To Turn On Cheats U Can Do That By Typing !Cheats")
  181. end
  182. end
  183. end)
  184.  
  185. --// Jump Cheat \\--
  186.  
  187. plr.Chatted:Connect(function(msg)
  188. if msg == "!Jump" then
  189. if cheats then
  190. if not jumpcheat then
  191. jumpcheat = true
  192. repeat
  193. plr.Character.Humanoid.JumpPower = 100
  194. wait()
  195. until jumpcheat == false
  196. print("Jump On/Off")
  197. end
  198. if jumpcheat then
  199. jumpcheat = false
  200. end
  201. elseif not cheats then
  202. print("U Need To Turn On Cheats U Can Do That By Typing !Cheats")
  203. end
  204. end
  205. end)
  206.  
  207.  
  208. --// Night Cheat \\--
  209.  
  210. plr.Chatted:Connect(function(msg)
  211. if msg == "!Night" then
  212. if cheats then
  213. game.Lighting.TimeOfDay = 0.1
  214. print("its night now spooky")
  215. end
  216. if not cheats then
  217. print("Turn On Cheats")
  218. end
  219. end
  220. end)
  221.  
  222.  
  223. --// Day Cheat \\--
  224.  
  225. plr.Chatted:Connect(function(msg)
  226. if msg == "!Day" then
  227. if cheats then
  228. game.Lighting.TimeOfDay = 14
  229. print("its day now")
  230. end
  231. elseif not cheats then
  232. print("Turn On Cheats")
  233. end
  234. end)
  235.  
  236.  
  237. --// Morning Cheat \\--
  238.  
  239. plr.Chatted:Connect(function(msg)
  240. if msg == "!Morning" then
  241. if cheats then
  242. game.Lighting.TimeOfDay = 6.13
  243. print("Its Morning")
  244. end
  245. elseif not cheats then
  246. print("Turn On Cheats")
  247. end
  248. end)
  249.  
  250.  
  251. --// REE Cheat \\--
  252.  
  253. plr.Chatted:Connect(function(msg)
  254. if msg == "!REE" then
  255. if cheats then
  256. if ree == false then
  257. ree = true
  258. print("REE MODE ON!! REEEEE")
  259. local sound = Instance.new("Sound")
  260. sound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  261. sound.Playing = true
  262. sound.SoundId = "rbxassetid://2866646141"
  263. sound.Volume = 2
  264. sound.Looped = true
  265. local anim = Instance.new("Animation")
  266. anim.AnimationId = "rbxassetid://02944714632"
  267. sound.MaxDistance = 10000
  268. game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim):Play()
  269. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  270. game.Workspace.Gravity = 20
  271.  
  272.  
  273. game.Lighting.FogStart = 1
  274. game.Lighting.FogEnd = 100
  275.  
  276.  
  277. repeat
  278. for i=1,10 do
  279. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 4
  280. wait()
  281. end
  282.  
  283.  
  284. wait()
  285. for i=1,10 do
  286. wait()
  287. game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 4
  288. end
  289.  
  290.  
  291.  
  292.  
  293. game.Lighting.FogColor = Color3.fromHSV(zigzag(counter),1,1)
  294.  
  295. counter = counter + 0.01
  296.  
  297.  
  298. until ree == false
  299.  
  300.  
  301.  
  302.  
  303. elseif ree == true then
  304. ree = false
  305. game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart.Sound:Destroy()
  306. game.Lighting.FogEnd = 100000
  307. game.Lighting.FogStart = 0
  308. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  309. game.Workspace.Gravity = 196.2
  310. end
  311. if not cheats then
  312. print("Turn On Cheats")
  313. end
  314. end
  315. end
  316. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement