Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local JailTrial = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Walk = Instance.new("TextButton")
- local InfAm = Instance.new("TextButton")
- local InfNit = Instance.new("TextButton")
- local Table = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- -- Properties
- JailTrial.Name = "JailTrial"
- JailTrial.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = JailTrial
- Main.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.152094066, 0, 0.359467447, 0)
- Main.Size = UDim2.new(0, 633, 0, 370)
- Walk.Name = "Walk"
- Walk.Parent = Main
- Walk.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- Walk.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- Walk.BorderSizePixel = 3
- Walk.Position = UDim2.new(0.687203765, 0, 0.189189196, 0)
- Walk.Size = UDim2.new(0, 187, 0, 50)
- Walk.Font = Enum.Font.SourceSans
- Walk.Text = "WalkSpeed(Q)"
- Walk.TextColor3 = Color3.new(1, 1, 1)
- Walk.TextScaled = true
- Walk.TextSize = 14
- Walk.TextWrapped = true
- InfAm.Name = "InfAm"
- InfAm.Parent = Main
- InfAm.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- InfAm.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- InfAm.BorderSizePixel = 3
- InfAm.Position = UDim2.new(0.35229063, 0, 0.189189196, 0)
- InfAm.Size = UDim2.new(0, 187, 0, 50)
- InfAm.Font = Enum.Font.SourceSans
- InfAm.Text = "Inf Ammo"
- InfAm.TextColor3 = Color3.new(1, 1, 1)
- InfAm.TextScaled = true
- InfAm.TextSize = 14
- InfAm.TextWrapped = true
- InfNit.Name = "InfNit"
- InfNit.Parent = Main
- InfNit.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- InfNit.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
- InfNit.BorderSizePixel = 3
- InfNit.Position = UDim2.new(0.0157977641, 0, 0.189189196, 0)
- InfNit.Size = UDim2.new(0, 187, 0, 50)
- InfNit.Font = Enum.Font.SourceSans
- InfNit.Text = "Inf Nitro"
- InfNit.TextColor3 = Color3.new(1, 1, 1)
- InfNit.TextScaled = true
- InfNit.TextSize = 14
- InfNit.TextWrapped = true
- Table.Name = "Table"
- Table.Parent = Main
- Table.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
- Table.BorderColor3 = Color3.new(1, 1, 1)
- Table.Position = UDim2.new(0.0156817138, 0, 0.0457540452, 0)
- Table.Size = UDim2.new(0, 612, 0, 39)
- Name.Name = "Name"
- Name.Parent = Table
- Name.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
- Name.BorderSizePixel = 0
- Name.Size = UDim2.new(0, 612, 0, 39)
- Name.Font = Enum.Font.Cartoon
- Name.Text = "JailTrail"
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextScaled = true
- Name.TextSize = 14
- Name.TextWrapped = true
- Main.Active = true
- Main.Selectable = true
- Main.Draggable = true
- InfAm.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.PlayerGui.MainGui.Ammo.MagSize.Name = "Lol"
- end)
- InfNit.MouseButton1Down:connect(function()
- game:GetService('Players').LocalPlayer.PlayerGui.MainGui.Nitro.Name = "Nitr"
- game:GetService('Players').LocalPlayer.PlayerGui.ProductGui.Nitro:Destroy()
- end)
- Walk.MouseButton1Down:connect(function()
- --This may be a little buggy, so beware.
- --Hold "Q" to speed up
- down = false
- velocity = Instance.new("BodyVelocity")
- velocity.maxForce = Vector3.new(100000, 0, 100000)
- ---vv Use that to change the speed v
- local speed = 150
- gyro = Instance.new("BodyGyro")
- gyro.maxTorque = Vector3.new(100000, 0, 100000)
- local hum = game.Players.LocalPlayer.Character.Humanoid
- function onButton1Down(mouse)
- down = true
- velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
- velocity.velocity = (hum.MoveDirection) * speed
- gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
- while down do
- if not down then break end
- velocity.velocity = (hum.MoveDirection) * speed
- local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
- gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
- wait(0.1)
- end
- end
- function onButton1Up(mouse)
- velocity.Parent = nil
- gyro.Parent = nil
- down = false
- end
- --To Change the key in those 2 lines, replace the "q" with your desired key
- function onSelected(mouse)
- mouse.KeyDown:connect(function(k) if k:lower()=="q"then onButton1Down(mouse)end end)
- mouse.KeyUp:connect(function(k) if k:lower()=="q"then onButton1Up(mouse)end end)
- end
- onSelected(game.Players.LocalPlayer:GetMouse())
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement