Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local CoreGui = game:GetService("CoreGui")
- local RunService = game:GetService("RunService")
- local GuiService = game:GetService("GuiService")
- local LocalPlayer = Players.LocalPlayer or Players.PlayerAdded:Wait()
- local Mouse = LocalPlayer:GetMouse()
- local Toggled = false
- local Force = 10
- local Speed = 0.5
- local CharacterAdded
- local Seated = false
- local Force2 = 108*Force
- local Speed2 = 108*Speed
- local Settings = {}
- local LastSeatPart
- local CoreGuiAccessible = pcall(function()
- CoreGui:FindFirstChild("")
- end)
- local function CreateGUI()
- local ScreenGUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIGradient = Instance.new("UIGradient")
- local BOUNCE_Power = Instance.new("TextLabel")
- local Switch = Instance.new("ImageButton")
- local Frame2 = Instance.new("Frame")
- local JumpHeightButton = Instance.new("TextButton")
- local JumpSpeedButton = Instance.new("TextButton")
- local Frame3 = Instance.new("Frame")
- local CarHighestImage = Instance.new("ImageLabel")
- local SpeedImage = Instance.new("ImageLabel")
- local JumpHeightDown = false
- local SpeedJumpDown = false
- ScreenGUI.ResetOnSpawn = false
- ScreenGUI.IgnoreGuiInset = false
- Frame.Parent = ScreenGUI
- Frame.Size = UDim2.new(0, 540, 0, 241)
- Frame.Visible = true
- Frame.Position = UDim2.new(0.8, -270, 0.8, -120)
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Draggable = true
- Frame.Active = true
- UICorner.Parent = Frame
- UIGradient.Parent = Frame
- UIGradient.Enabled = true
- 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))})
- BOUNCE_Power.Parent = Frame
- BOUNCE_Power.Text = "BOUNCE"
- BOUNCE_Power.Font = Enum.Font.Arial
- BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
- BOUNCE_Power.TextSize = 28
- BOUNCE_Power.BackgroundTransparency = 1
- BOUNCE_Power.Position = UDim2.new(0.05, 0, 0.05, 0)
- BOUNCE_Power.Size = UDim2.new(0, 100, 0, 50)
- Switch.Parent = Frame
- Switch.Rotation = 180
- Switch.Position = UDim2.new(0.025, 0, 0.3, 0)
- Switch.Size = UDim2.new(0, 108, 0, 145)
- Switch.BackgroundTransparency = 1
- Switch.Image = "rbxassetid://16053972983"
- Frame2.Parent = Frame
- Frame2.Size = UDim2.new(0, 2, 0.9, 0)
- Frame2.BorderSizePixel = 0
- Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame2.Position = UDim2.new(0.8, 0, 0.05, 0)
- Frame3.Parent = Frame
- Frame3.Size = UDim2.new(0, 2, 0.9, 0)
- Frame3.BorderSizePixel = 0
- Frame3.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame3.Position = UDim2.new(0.45, 0, 0.05, 0)
- JumpHeightButton.Parent = Frame
- JumpHeightButton.BorderSizePixel = 0
- JumpHeightButton.Size = UDim2.new(0.2, 0, 0.05, 0)
- JumpHeightButton.Position = UDim2.new(0.7, 0, 0.4, 12)
- JumpHeightButton.Text = ""
- JumpHeightButton.BackgroundColor3 = Color3.new(1, 1, 1)
- JumpSpeedButton.Parent = Frame
- JumpSpeedButton.BorderSizePixel = 0
- JumpSpeedButton.Size = UDim2.new(0.2, 0, 0.05, 0)
- JumpSpeedButton.Position = UDim2.new(0.35, 0, 0.4, 12)
- JumpSpeedButton.Text = ""
- JumpSpeedButton.BackgroundColor3 = Color3.new(1, 1, 1)
- CarHighestImage.Parent = Frame
- CarHighestImage.Size = UDim2.new(0, 48, 0, 48)
- CarHighestImage.Position = UDim2.new(0.7, 0, 0, 0)
- CarHighestImage.BackgroundTransparency = 1
- CarHighestImage.Image = "rbxassetid://16055947290"
- SpeedImage.Parent = Frame
- SpeedImage.Size = UDim2.new(0, 32, 0, 32)
- SpeedImage.Position = UDim2.new(0.35, 0, 0, 16)
- SpeedImage.BackgroundTransparency = 1
- SpeedImage.Image = "rbxassetid://13492318225"
- SpeedImage.ImageColor3 = Color3.new(0, 0, 0)
- JumpHeightButton.MouseButton1Down:Connect(function()
- JumpHeightDown = true
- end)
- JumpSpeedButton.MouseButton1Down:Connect(function()
- SpeedJumpDown = true
- end)
- Frame.MouseMoved:Connect(function(x, y)
- if JumpHeightDown then
- JumpHeightButton.Position = UDim2.new(0.7, 0, 0, math.clamp((y-Frame.AbsolutePosition.Y)-GuiService:GetGuiInset().Y, 50, 216))
- Settings[LastSeatPart]["Force"] = Force2/JumpHeightButton.Position.Y.Offset
- Settings[LastSeatPart]["JumpHeightY"] = JumpHeightButton.Position.Y.Offset
- end
- if SpeedJumpDown then
- JumpSpeedButton.Position = UDim2.new(0.35, 0, 0, math.clamp((y-Frame.AbsolutePosition.Y)-GuiService:GetGuiInset().Y, 50, 216))
- Settings[LastSeatPart]["Speed"] = Speed2/JumpSpeedButton.Position.Y.Offset
- Settings[LastSeatPart]["SpeedJumpY"] = JumpSpeedButton.Position.Y.Offset
- end
- end)
- JumpHeightButton.MouseButton1Up:Connect(function()
- JumpHeightDown = false
- end)
- Mouse.Button1Up:Connect(function()
- JumpHeightDown = false
- SpeedJumpDown = false
- end)
- JumpSpeedButton.MouseButton1Up:Connect(function()
- SpeedJumpDown = false
- end)
- Switch.Activated:Connect(function()
- if Switch.Rotation == 180 then
- Switch.Rotation = 0
- Settings[LastSeatPart]["Toggled"] = true
- BOUNCE_Power.TextColor3 = Color3.new(1/3, 1, 0)
- else
- Settings[LastSeatPart]["Toggled"] = false
- Switch.Rotation = 180
- BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
- end
- end)
- return ScreenGUI, BOUNCE_Power, Switch, JumpHeightButton
- end
- local function InitalizePlayer(Player)
- LocalPlayer = Player
- local Gui, BOUNCE_Power, Switch, JumpHeightButton = CreateGUI()
- Mouse = Player:GetMouse()
- Gui.Enabled = false
- if CharacterAdded then
- CharacterAdded:Disconnect()
- end
- local function InitalizeCharacter(Character)
- local function InitalizeHumanoid(Humanoid)
- local function seated()
- local SeatPart = Humanoid.SeatPart
- if SeatPart then
- Seated = true
- if SeatPart:IsA("Seat") and not string.find(string.lower(SeatPart.Name), "drive") then
- return
- end
- for _, check in pairs(SeatPart.Parent:GetChildren()) do
- if not (check == SeatPart) then
- if Settings[check] then
- SeatPart = check
- break
- end
- end
- end
- local Setting = Settings[SeatPart]
- if not Setting then
- local NewSetting = {
- ["Force"] = Force,
- ["JumpHeightY"] = 108,
- ["Speed"] = Speed,
- ["SpeedJumpY"] = 108,
- ["Toggled"] = false
- }
- Setting = NewSetting
- Settings[SeatPart] = NewSetting
- task.spawn(function()
- task.wait(0)
- local CSeatPart = SeatPart
- while true do
- if Settings[CSeatPart]["Toggled"] then
- local new = (CSeatPart.CFrame*Vector3.new(Settings[CSeatPart]["Force"], 0, 0))-CSeatPart.Position
- CSeatPart.AssemblyAngularVelocity = CSeatPart.AssemblyAngularVelocity+new
- task.wait(Settings[CSeatPart]["Speed"])
- end
- if not CSeatPart:IsDescendantOf(game) then
- Settings[CSeatPart] = nil
- break
- end
- task.wait(0)
- end
- end)
- end
- LastSeatPart = SeatPart
- if Setting["Toggled"] then
- Switch.Rotation = 0
- BOUNCE_Power.TextColor3 = Color3.new(1/3, 1, 0)
- else
- Switch.Rotation = 180
- BOUNCE_Power.TextColor3 = Color3.fromRGB(172, 172, 172)
- end
- JumpHeightButton.Position = UDim2.new(0.7, 0, 0, Setting["JumpHeightY"])
- Gui.Enabled = true
- elseif LastSeatPart then
- Seated = false
- Gui.Enabled = false
- end
- end
- seated()
- Humanoid:GetPropertyChangedSignal("SeatPart"):Connect(seated)
- end
- local function InitalizeChild(v)
- if v:IsA("Humanoid") then
- task.spawn(InitalizeHumanoid, v)
- end
- end
- for _, v in pairs(Character:GetChildren()) do
- InitalizeChild(v)
- end
- Character.ChildAdded:Connect(InitalizeChild)
- end
- local function InitalizePlayerGui(PlayerGui)
- if CoreGuiAccessible then
- Gui.Parent = CoreGui
- else
- Gui.Parent = PlayerGui
- end
- end
- local function InitalizeChildInPlayerInstance(v)
- if v:IsA("PlayerGui") then
- InitalizePlayerGui(v)
- end
- end
- if Player.Character then
- InitalizeCharacter(Player.Character)
- end
- for _, v in pairs(Player:GetChildren()) do
- InitalizeChildInPlayerInstance(v)
- end
- Player.ChildAdded:Connect(InitalizeChildInPlayerInstance)
- CharacterAdded = Player.CharacterAdded:Connect(InitalizeCharacter)
- end
- Players:GetPropertyChangedSignal("LocalPlayer"):Connect(function()
- InitalizePlayer(Players.LocalPlayer)
- end)
- InitalizePlayer(LocalPlayer)
- local function InitalizeNetBypass()
- if sethiddenproperty then
- sethiddenproperty(LocalPlayer, "SimulationRadius", 100)
- else
- pcall(function()
- LocalPlayer.SimulationRadius = 100
- end)
- end
- local ReturnFakeEntityVelocity = true
- local ForceEntityVelocity = true
- RunService.Heartbeat:Connect(function()
- if ReturnFakeEntityVelocity == true then
- for seat, v in pairs(Settings) do
- if v["Toggled"] and not Seated then
- local returnfakevel = seat.AssemblyLinearVelocity
- seat.AssemblyLinearVelocity = Vector3.zero
- RunService.RenderStepped:Wait()
- seat.AssemblyLinearVelocity = returnfakevel
- end
- end
- end
- end)
- task.wait(0.45)
- RunService.Heartbeat:Connect(function()
- if ForceEntityVelocity == true then
- for seat, v in pairs(Settings) do
- if v["Toggled"] and not Seated then
- local forcerealvel = seat.AssemblyLinearVelocity
- seat.AssemblyLinearVelocity = Vector3.new(35, 0, 0)
- RunService.RenderStepped:Wait()
- seat.AssemblyLinearVelocity = forcerealvel
- end
- end
- end
- end)
- task.wait(0.65)
- ReturnFakeEntityVelocity = false
- end
- local BindableFunction = Instance.new("BindableFunction")
- local Fired = false
- BindableFunction.OnInvoke = function(Name)
- if Name == "Yes" and not Fired then
- Fired = true
- InitalizeNetBypass()
- end
- end
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Net Bypass",
- Text = "Do you want Net Bypass applied? One advantage is that even if you get out of your vehicle, it can still be bouncing.",
- Button1 = "Yes",
- Button2 = "No",
- Duration = 15,
- Callback = BindableFunction,
- })
Advertisement
Add Comment
Please, Sign In to add comment