Advertisement
DarkHorse89

Drive Cars Down A Hill

Aug 31st, 2023 (edited)
1,154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.45 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Robojini/Tuturial_UI_Library/main/UI_Template_1"))()
  2.  
  3. local window = library.CreateLib("JUICEFW Drive Cars Down A Hill", "RJTheme3") -- Creates the window
  4.  
  5. local MainTab = window:NewTab("Main Tab")
  6. local main_menu = MainTab:NewSection("Main")
  7. local main_teleport_menu = MainTab:NewSection("Teleport")
  8. local main_scripts = MainTab:NewSection("Scripts")
  9.  
  10. local UtilsTab = window:NewTab("Utils")
  11. local main_utils_menu = UtilsTab:NewSection("Main")
  12.  
  13. main_menu:NewSlider("Player speed", "Change player`s speed", 500, 0, function (s)
  14. game.Players.LocalPlayer.Humanoid.WalkSpeed = s
  15. end)
  16. speeds = 1
  17.  
  18. local speaker = game:GetService("Players").LocalPlayer
  19.  
  20. local chr = game.Players.LocalPlayer.Character
  21.  
  22. nowe = false
  23.  
  24. main_menu:NewButton("Toggle Fly", "Toggle Flying", function()
  25. if nowe == true then
  26. nowe = false
  27.  
  28. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  29. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  30. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  31. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  32. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  33. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  34. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  35. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  36. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  37. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  38. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  39. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  40. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  41. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  42. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  43. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  44. else
  45. nowe = true
  46.  
  47. for i = 1, speeds do
  48. spawn(function()
  49.  
  50. local hb = game:GetService("RunService").Heartbeat
  51.  
  52.  
  53. tpwalking = true
  54. local chr = game.Players.LocalPlayer.Character
  55. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  56. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  57. if hum.MoveDirection.Magnitude > 0 then
  58. chr:TranslateBy(hum.MoveDirection)
  59. end
  60. end
  61.  
  62. end)
  63. end
  64. game.Players.LocalPlayer.Character.Animate.Disabled = true
  65. local Char = game.Players.LocalPlayer.Character
  66. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  67.  
  68. for i,v in next, Hum:GetPlayingAnimationTracks() do
  69. v:AdjustSpeed(0)
  70. end
  71. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  72. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  73. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  74. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  75. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  76. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  77. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  78. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  79. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  80. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  81. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  82. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  83. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  84. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  85. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  86. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  87. end
  88.  
  89. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  90. local plr = game.Players.LocalPlayer
  91. local torso = plr.Character.Torso
  92. local flying = true
  93. local deb = true
  94. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  95. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  96. local maxspeed = 50
  97. local speed = 0
  98. local bg = Instance.new("BodyGyro", torso)
  99. bg.P = 9e4
  100. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  101. bg.cframe = torso.CFrame
  102. local bv = Instance.new("BodyVelocity", torso)
  103. bv.velocity = Vector3.new(0,0.1,0)
  104. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  105. if nowe == true then
  106. plr.Character.Humanoid.PlatformStand = true
  107. end
  108. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  109. game:GetService("RunService").RenderStepped:Wait()
  110.  
  111. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  112. speed = speed+.5+(speed/maxspeed)
  113. if speed > maxspeed then
  114. speed = maxspeed
  115. end
  116. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  117. speed = speed-1
  118. if speed < 0 then
  119. speed = 0
  120. end
  121. end
  122. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  123. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  124. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  125. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  126. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  127. else
  128. bv.velocity = Vector3.new(0,0,0)
  129. end
  130. -- game.Players.LocalPlayer.Character.Animate.Disabled = true
  131. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  132. end
  133. ctrl = {f = 0, b = 0, l = 0, r = 0}
  134. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  135. speed = 0
  136. bg:Destroy()
  137. bv:Destroy()
  138. plr.Character.Humanoid.PlatformStand = false
  139. game.Players.LocalPlayer.Character.Animate.Disabled = false
  140. tpwalking = false
  141. else
  142. local plr = game.Players.LocalPlayer
  143. local UpperTorso = plr.Character.UpperTorso
  144. local flying = true
  145. local deb = true
  146. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  147. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  148. local maxspeed = 50
  149. local speed = 0
  150.  
  151.  
  152. local bg = Instance.new("BodyGyro", UpperTorso)
  153. bg.P = 9e4
  154. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  155. bg.cframe = UpperTorso.CFrame
  156. local bv = Instance.new("BodyVelocity", UpperTorso)
  157. bv.velocity = Vector3.new(0,0.1,0)
  158. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  159. if nowe == true then
  160. plr.Character.Humanoid.PlatformStand = true
  161. end
  162. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  163. wait()
  164.  
  165. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  166. speed = speed+.5+(speed/maxspeed)
  167. if speed > maxspeed then
  168. speed = maxspeed
  169. end
  170. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  171. speed = speed-1
  172. if speed < 0 then
  173. speed = 0
  174. end
  175. end
  176. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  177. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  178. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  179. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  180. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  181. else
  182. bv.velocity = Vector3.new(0,0,0)
  183. end
  184.  
  185. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  186. end
  187. ctrl = {f = 0, b = 0, l = 0, r = 0}
  188. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  189. speed = 0
  190. bg:Destroy()
  191. bv:Destroy()
  192. plr.Character.Humanoid.PlatformStand = false
  193. game.Players.LocalPlayer.Character.Animate.Disabled = false
  194. tpwalking = false
  195. end
  196. end)
  197.  
  198. main_menu:NewSlider("Flying speed", "Change player`s flying speed", 500, 1, function (s)
  199. speeds = s
  200. if nowe == true then
  201. tpwalking = false
  202. for i = 1, speeds do
  203. spawn(function()
  204. local hb = game:GetService("RunService").Heartbeat
  205.  
  206. tpwalking = true
  207. local chr = game.Players.LocalPlayer.Character
  208. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  209. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  210. if hum.MoveDirection.Magnitude > 0 then
  211. chr:TranslateBy(hum.MoveDirection)
  212. end
  213. end
  214. end)
  215. end
  216. end
  217. end)
  218.  
  219. main_teleport_menu:NewButton("Teleport 10 studs forward", "Teleports player 10 studs forward", function()
  220. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -10)
  221. end)
  222.  
  223. main_teleport_menu:NewButton("Teleport 10 studs up", "Teleports player 10 studs up", function()
  224. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 10, 0)
  225. end)
  226.  
  227. main_teleport_menu:NewButton("Teleport 10 studs down", "Teleports player 10 studs down", function()
  228. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -10, 0)
  229. end)
  230. main_teleport_menu:NewButton("Teleport 20 studs forward", "Teleports player 20 studs forward", function()
  231. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -20)
  232. end)
  233.  
  234. main_teleport_menu:NewButton("Teleport 20 studs up", "Teleports player 20 studs up", function()
  235. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 20, 0)
  236. end)
  237.  
  238. main_teleport_menu:NewButton("Teleport 20 studs down", "Teleports player 20 studs down", function()
  239. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -20, 0)
  240. end)
  241.  
  242. main_scripts:NewButton("Coordinates Grabber", "Execute Coordinates Grabber Gui", function()
  243. spawn(function ()
  244. loadstring(game:HttpGet("https://pastebin.com/raw/M4TtucPi", true))()
  245. end)
  246. end)
  247.  
  248. main_scripts:NewButton("Dark Dex Stable", "Execute Dark Dex Stable", function()
  249. spawn(function ()
  250. loadstring(game:HttpGet("https://raw.githubusercontent.com/loglizzy/dex-custom-icons/main/main.lua"))()
  251. end)
  252. end)
  253.  
  254. main_scripts:NewButton("Simple Spy", "Execute Simply Spy", function()
  255. spawn(function ()
  256. loadstring(game:HttpGet("https://pastebin.com/raw/rqgZVWGw"))()
  257. end)
  258. end)
  259.  
  260. main_scripts:NewButton("BTools", "Execute BTools", function()
  261. spawn(function ()
  262. loadstring(game:HttpGet("https://pastebin.com/raw/JpEmyNa0"))()
  263. end)
  264. end)
  265.  
  266. main_utils_menu:NewButton("Remove Mines", "Removes Mines", function()
  267. for _, v in pairs(game:GetService("Workspace").Obstacles.BASIN_SERIES.BellMines:GetChildren()) do
  268. v:Destroy()
  269. end
  270. for _, v in pairs(game:GetService("Workspace").Obstacles.BASIN_SERIES.DeepSeaMines:GetChildren()) do
  271. v:Destroy()
  272. end
  273. for _, v in pairs(game:GetService("Workspace").Obstacles.BASIN_SERIES.SmallDeepSeaMines:GetChildren()) do
  274. v:Destroy()
  275. end
  276. for _, v in pairs(game:GetService("Workspace").Obstacles.REFACTOR_SERIES.Mines:GetChildren()) do
  277. v:Destroy()
  278. end
  279. for _, v in pairs(game:GetService("Workspace").Obstacles.REFACTOR_SERIES.ExplosiveBarrels:GetChildren()) do
  280. v:Destroy()
  281. end
  282. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement