MaxproGlitcher

Script Béta pour véhicule

May 23rd, 2024
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.90 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local CoreGui = game:GetService("CoreGui")
  3. local RunService = game:GetService("RunService")
  4. local GuiService = game:GetService("GuiService")
  5. local LocalPlayer = Players.LocalPlayer or Players.PlayerAdded:Wait()
  6. local Mouse = LocalPlayer:GetMouse()
  7. local Toggled = false
  8. local Force = 10
  9. local Speed = 0.5
  10. local CharacterAdded
  11. local Seated = false
  12. local Force2 = 108*Force
  13. local Speed2 = 108*Speed
  14. local Settings = {}
  15. local LastSeatPart
  16. local CoreGuiAccessible = pcall(function()
  17. CoreGui:FindFirstChild("")
  18. end)
  19. local function CreateGUI()
  20. local ScreenGUI = Instance.new("ScreenGui")
  21. local Frame = Instance.new("Frame")
  22. local UICorner = Instance.new("UICorner")
  23. local UIGradient = Instance.new("UIGradient")
  24. local BOUNCE_Power = Instance.new("TextLabel")
  25. local Switch = Instance.new("ImageButton")
  26. local Frame2 = Instance.new("Frame")
  27. local JumpHeightButton = Instance.new("TextButton")
  28. local JumpSpeedButton = Instance.new("TextButton")
  29. local Frame3 = Instance.new("Frame")
  30. local CarHighestImage = Instance.new("ImageLabel")
  31. local SpeedImage = Instance.new("ImageLabel")
  32. local JumpHeightDown = false
  33. local SpeedJumpDown = false
  34. ScreenGUI.ResetOnSpawn = false
  35. ScreenGUI.IgnoreGuiInset = false
  36. Frame.Parent = ScreenGUI
  37. Frame.Size = UDim2.new(0, 540, 0, 241)
  38. Frame.Visible = true
  39. Frame.Position = UDim2.new(0.8, -270, 0.8, -120)
  40. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  41. Frame.Draggable = true
  42. Frame.Active = true
  43. UICorner.Parent = Frame
  44. UIGradient.Parent = Frame
  45. UIGradient.Enabled = true
  46. UIGradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(147, 147, 147)), ColorSequenceKeypoint.new(0.0104, Color3.fromRGB(90, 90, 90)), ColorSequenceKeypoint.new(1, Color3.fromRGB(185, 185, 185))})
  47. BOUNCE_Power.Parent = Frame
  48. BOUNCE_Power.Text = "BOUNCE"
  49. BOUNCE_Power.Font = Enum.Font.Arial
  50. BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
  51. BOUNCE_Power.TextSize = 28
  52. BOUNCE_Power.BackgroundTransparency = 1
  53. BOUNCE_Power.Position = UDim2.new(0.05, 0, 0.05, 0)
  54. BOUNCE_Power.Size = UDim2.new(0, 100, 0, 50)
  55. Switch.Parent = Frame
  56. Switch.Rotation = 180
  57. Switch.Position = UDim2.new(0.025, 0, 0.3, 0)
  58. Switch.Size = UDim2.new(0, 108, 0, 145)
  59. Switch.BackgroundTransparency = 1
  60. Switch.Image = "rbxassetid://16053972983"
  61. Frame2.Parent = Frame
  62. Frame2.Size = UDim2.new(0, 2, 0.9, 0)
  63. Frame2.BorderSizePixel = 0
  64. Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
  65. Frame2.Position = UDim2.new(0.8, 0, 0.05, 0)
  66. Frame3.Parent = Frame
  67. Frame3.Size = UDim2.new(0, 2, 0.9, 0)
  68. Frame3.BorderSizePixel = 0
  69. Frame3.BackgroundColor3 = Color3.new(0, 0, 0)
  70. Frame3.Position = UDim2.new(0.45, 0, 0.05, 0)
  71. JumpHeightButton.Parent = Frame
  72. JumpHeightButton.BorderSizePixel = 0
  73. JumpHeightButton.Size = UDim2.new(0.2, 0, 0.05, 0)
  74. JumpHeightButton.Position = UDim2.new(0.7, 0, 0.4, 12)
  75. JumpHeightButton.Text = ""
  76. JumpHeightButton.BackgroundColor3 = Color3.new(1, 1, 1)
  77. JumpSpeedButton.Parent = Frame
  78. JumpSpeedButton.BorderSizePixel = 0
  79. JumpSpeedButton.Size = UDim2.new(0.2, 0, 0.05, 0)
  80. JumpSpeedButton.Position = UDim2.new(0.35, 0, 0.4, 12)
  81. JumpSpeedButton.Text = ""
  82. JumpSpeedButton.BackgroundColor3 = Color3.new(1, 1, 1)
  83. CarHighestImage.Parent = Frame
  84. CarHighestImage.Size = UDim2.new(0, 48, 0, 48)
  85. CarHighestImage.Position = UDim2.new(0.7, 0, 0, 0)
  86. CarHighestImage.BackgroundTransparency = 1
  87. CarHighestImage.Image = "rbxassetid://16055947290"
  88. SpeedImage.Parent = Frame
  89. SpeedImage.Size = UDim2.new(0, 32, 0, 32)
  90. SpeedImage.Position = UDim2.new(0.35, 0, 0, 16)
  91. SpeedImage.BackgroundTransparency = 1
  92. SpeedImage.Image = "rbxassetid://13492318225"
  93. SpeedImage.ImageColor3 = Color3.new(0, 0, 0)
  94. JumpHeightButton.MouseButton1Down:Connect(function()
  95. JumpHeightDown = true
  96. end)
  97. JumpSpeedButton.MouseButton1Down:Connect(function()
  98. SpeedJumpDown = true
  99. end)
  100. Frame.MouseMoved:Connect(function(x, y)
  101. if JumpHeightDown then
  102. JumpHeightButton.Position = UDim2.new(0.7, 0, 0, math.clamp((y-Frame.AbsolutePosition.Y)-GuiService:GetGuiInset().Y, 50, 216))
  103. Settings[LastSeatPart]["Force"] = Force2/JumpHeightButton.Position.Y.Offset
  104. Settings[LastSeatPart]["JumpHeightY"] = JumpHeightButton.Position.Y.Offset
  105. end
  106. if SpeedJumpDown then
  107. JumpSpeedButton.Position = UDim2.new(0.35, 0, 0, math.clamp((y-Frame.AbsolutePosition.Y)-GuiService:GetGuiInset().Y, 50, 216))
  108. Settings[LastSeatPart]["Speed"] = Speed2/JumpSpeedButton.Position.Y.Offset
  109. Settings[LastSeatPart]["SpeedJumpY"] = JumpSpeedButton.Position.Y.Offset
  110. end
  111. end)
  112. JumpHeightButton.MouseButton1Up:Connect(function()
  113. JumpHeightDown = false
  114. end)
  115. Mouse.Button1Up:Connect(function()
  116. JumpHeightDown = false
  117. SpeedJumpDown = false
  118. end)
  119. JumpSpeedButton.MouseButton1Up:Connect(function()
  120. SpeedJumpDown = false
  121. end)
  122. Switch.Activated:Connect(function()
  123. if Switch.Rotation == 180 then
  124. Switch.Rotation = 0
  125. Settings[LastSeatPart]["Toggled"] = true
  126. BOUNCE_Power.TextColor3 = Color3.new(1/3, 1, 0)
  127. else
  128. Settings[LastSeatPart]["Toggled"] = false
  129. Switch.Rotation = 180
  130. BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
  131. end
  132. end)
  133. return ScreenGUI, BOUNCE_Power, Switch, JumpHeightButton
  134. end
  135. local function InitalizePlayer(Player)
  136. LocalPlayer = Player
  137. local Gui, BOUNCE_Power, Switch, JumpHeightButton = CreateGUI()
  138. Mouse = Player:GetMouse()
  139. Gui.Enabled = false
  140. if CharacterAdded then
  141. CharacterAdded:Disconnect()
  142. end
  143. local function InitalizeCharacter(Character)
  144. local function InitalizeHumanoid(Humanoid)
  145. local function seated()
  146. local SeatPart = Humanoid.SeatPart
  147. if SeatPart then
  148. Seated = true
  149. if SeatPart:IsA("Seat") and not string.find(string.lower(SeatPart.Name), "drive") then
  150. return
  151. end
  152. for _, check in pairs(SeatPart.Parent:GetChildren()) do
  153. if not (check == SeatPart) then
  154. if Settings[check] then
  155. SeatPart = check
  156. break
  157. end
  158. end
  159. end
  160. local Setting = Settings[SeatPart]
  161. if not Setting then
  162. local NewSetting = {
  163. ["Force"] = Force,
  164. ["JumpHeightY"] = 108,
  165. ["Speed"] = Speed,
  166. ["SpeedJumpY"] = 108,
  167. ["Toggled"] = false
  168. }
  169. Setting = NewSetting
  170. Settings[SeatPart] = NewSetting
  171. task.spawn(function()
  172. task.wait(0)
  173. local CSeatPart = SeatPart
  174. while true do
  175. if Settings[CSeatPart]["Toggled"] then
  176. local new = (CSeatPart.CFrame*Vector3.new(Settings[CSeatPart]["Force"], 0, 0))-CSeatPart.Position
  177. CSeatPart.AssemblyAngularVelocity = CSeatPart.AssemblyAngularVelocity+new
  178. task.wait(Settings[CSeatPart]["Speed"])
  179. end
  180. if not CSeatPart:IsDescendantOf(game) then
  181. Settings[CSeatPart] = nil
  182. break
  183. end
  184. task.wait(0)
  185. end
  186. end)
  187. end
  188. LastSeatPart = SeatPart
  189. if Setting["Toggled"] then
  190. Switch.Rotation = 0
  191. BOUNCE_Power.TextColor3 = Color3.new(1/3, 1, 0)
  192. else
  193. Switch.Rotation = 180
  194. BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
  195. end
  196. JumpHeightButton.Position = UDim2.new(0.7, 0, 0, Setting["JumpHeightY"])
  197. Gui.Enabled = true
  198. elseif LastSeatPart then
  199. Seated = false
  200. Gui.Enabled = false
  201. end
  202. end
  203. seated()
  204. Humanoid:GetPropertyChangedSignal("SeatPart"):Connect(seated)
  205. end
  206. local function InitalizeChild(v)
  207. if v:IsA("Humanoid") then
  208. task.spawn(InitalizeHumanoid, v)
  209. end
  210. end
  211. for _, v in pairs(Character:GetChildren()) do
  212. InitalizeChild(v)
  213. end
  214. Character.ChildAdded:Connect(InitalizeChild)
  215. end
  216. local function InitalizePlayerGui(PlayerGui)
  217. if CoreGuiAccessible then
  218. Gui.Parent = CoreGui
  219. else
  220. Gui.Parent = PlayerGui
  221. end
  222. end
  223. local function InitalizeChildInPlayerInstance(v)
  224. if v:IsA("PlayerGui") then
  225. InitalizePlayerGui(v)
  226. end
  227. end
  228. if Player.Character then
  229. InitalizeCharacter(Player.Character)
  230. end
  231. for _, v in pairs(Player:GetChildren()) do
  232. InitalizeChildInPlayerInstance(v)
  233. end
  234. Player.ChildAdded:Connect(InitalizeChildInPlayerInstance)
  235. CharacterAdded = Player.CharacterAdded:Connect(InitalizeCharacter)
  236. end
  237. Players:GetPropertyChangedSignal("LocalPlayer"):Connect(function()
  238. InitalizePlayer(Players.LocalPlayer)
  239. end)
  240. InitalizePlayer(LocalPlayer)
  241. local function InitalizeNetBypass()
  242. if sethiddenproperty then
  243. sethiddenproperty(LocalPlayer, "SimulationRadius", 100)
  244. else
  245. pcall(function()
  246. LocalPlayer.SimulationRadius = 100
  247. end)
  248. end
  249. local ReturnFakeEntityVelocity = true
  250. local ForceEntityVelocity = true
  251. RunService.Heartbeat:Connect(function()
  252. if ReturnFakeEntityVelocity == true then
  253. for seat, v in pairs(Settings) do
  254. if v["Toggled"] and not Seated then
  255. local returnfakevel = seat.AssemblyLinearVelocity
  256. seat.AssemblyLinearVelocity = Vector3.zero
  257. RunService.RenderStepped:Wait()
  258. seat.AssemblyLinearVelocity = returnfakevel
  259. end
  260. end
  261. end
  262. end)
  263. task.wait(0.45)
  264. RunService.Heartbeat:Connect(function()
  265. if ForceEntityVelocity == true then
  266. for seat, v in pairs(Settings) do
  267. if v["Toggled"] and not Seated then
  268. local forcerealvel = seat.AssemblyLinearVelocity
  269. seat.AssemblyLinearVelocity = Vector3.new(35, 0, 0)
  270. RunService.RenderStepped:Wait()
  271. seat.AssemblyLinearVelocity = forcerealvel
  272. end
  273. end
  274. end
  275. end)
  276. task.wait(0.65)
  277. ReturnFakeEntityVelocity = false
  278. end
  279. local BindableFunction = Instance.new("BindableFunction")
  280. local Fired = false
  281. BindableFunction.OnInvoke = function(Name)
  282. if Name == "Yes" and not Fired then
  283. Fired = true
  284. InitalizeNetBypass()
  285. end
  286. end
  287. game:GetService("StarterGui"):SetCore("SendNotification", {
  288. Title = "Net Bypass",
  289. Text = "Do you want Net Bypass applied? One advantage is that even if you get out of your vehicle, it can still be bouncing.",
  290. Button1 = "Yes",
  291. Button2 = "No",
  292. Duration = 15,
  293. Callback = BindableFunction,
  294. })
Advertisement
Add Comment
Please, Sign In to add comment