Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local Thonk = Instance.new("ScreenGui")
- local Bar = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Speed = Instance.new("TextButton")
- local Mountains = Instance.new("TextButton")
- local JP = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local Close = Instance.new("TextButton")
- local Mini = Instance.new("TextButton")
- local Name = Instance.new("TextLabel")
- local Open = Instance.new("Frame")
- local OpenBTN = Instance.new("TextButton")
- -- Properties
- Thonk.Name = "Thonk"
- Thonk.Parent = game.CoreGui
- Bar.Name = "Bar"
- Bar.Parent = Thonk
- Bar.Active = true
- Bar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Bar.BorderSizePixel = 0
- Bar.Draggable = true
- Bar.Position = UDim2.new(0.423520386, 0, 0.357366771, 0)
- Bar.Size = UDim2.new(0, 335, 0, 19)
- Main.Name = "Main"
- Main.Parent = Bar
- Main.BackgroundColor3 = Color3.new(0.219608, 0.219608, 0.219608)
- Main.BorderSizePixel = 0
- Main.Draggable = true
- Main.Position = UDim2.new(0, 0, 1, 0)
- Main.Size = UDim2.new(0, 335, 0, 92)
- Speed.Name = "Speed"
- Speed.Parent = Main
- Speed.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Speed.BorderSizePixel = 0
- Speed.Position = UDim2.new(0.041495353, 0, 0.073170729, 0)
- Speed.Size = UDim2.new(0, 82, 0, 38)
- Speed.Font = Enum.Font.Arial
- Speed.FontSize = Enum.FontSize.Size14
- Speed.Text = "Speed"
- Speed.TextColor3 = Color3.new(1, 1, 1)
- Speed.TextSize = 14
- Mountains.Name = "Mountains"
- Mountains.Parent = Main
- Mountains.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Mountains.BorderSizePixel = 0
- Mountains.Position = UDim2.new(0.334465683, 0, 0.073170729, 0)
- Mountains.Size = UDim2.new(0, 111, 0, 38)
- Mountains.Font = Enum.Font.Arial
- Mountains.FontSize = Enum.FontSize.Size14
- Mountains.Text = "Climb mountains"
- Mountains.TextColor3 = Color3.new(1, 1, 1)
- Mountains.TextSize = 14
- JP.Name = "JP"
- JP.Parent = Main
- JP.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- JP.BorderSizePixel = 0
- JP.Position = UDim2.new(0.710855842, 0, 0.0729999989, 0)
- JP.Size = UDim2.new(0, 82, 0, 38)
- JP.Font = Enum.Font.Arial
- JP.FontSize = Enum.FontSize.Size14
- JP.Text = "Jump height"
- JP.TextColor3 = Color3.new(1, 1, 1)
- JP.TextSize = 14
- TextBox.Parent = Main
- TextBox.BackgroundColor3 = Color3.new(0.184314, 0.184314, 0.184314)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.711384058, 0, 0.575690925, 0)
- TextBox.Size = UDim2.new(0, 82, 0, 29)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = "0"
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 14
- Close.Name = "Close"
- Close.Parent = Bar
- Close.BackgroundColor3 = Color3.new(1, 0, 0)
- Close.BackgroundTransparency = 1
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(0.925373137, 0, 0, 0)
- Close.Size = UDim2.new(0, 25, 0, 19)
- Close.ZIndex = 3
- Close.Font = Enum.Font.Arial
- Close.FontSize = Enum.FontSize.Size14
- Close.Text = "X"
- Close.TextColor3 = Color3.new(1, 1, 1)
- Close.TextSize = 14
- Mini.Name = "Mini"
- Mini.Parent = Bar
- Mini.BackgroundColor3 = Color3.new(0, 0.333333, 1)
- Mini.BackgroundTransparency = 1
- Mini.BorderSizePixel = 0
- Mini.Position = UDim2.new(0.850732148, 0, 0, 0)
- Mini.Size = UDim2.new(0, 25, 0, 19)
- Mini.ZIndex = 3
- Mini.Font = Enum.Font.Arial
- Mini.FontSize = Enum.FontSize.Size14
- Mini.Text = "-"
- Mini.TextColor3 = Color3.new(1, 1, 1)
- Mini.TextSize = 14
- Name.Name = "Name"
- Name.Parent = Bar
- Name.BackgroundColor3 = Color3.new(1, 1, 1)
- Name.BackgroundTransparency = 1
- Name.Position = UDim2.new(0.023584906, 0, 0, 0)
- Name.Size = UDim2.new(0, 218, 0, 19)
- Name.Font = Enum.Font.Arial
- Name.FontSize = Enum.FontSize.Size14
- Name.Text = "Vehicle Thonk Gui - Created by XYZ"
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextSize = 14
- Name.TextXAlignment = Enum.TextXAlignment.Left
- Open.Name = "Open"
- Open.Parent = Thonk
- Open.BackgroundColor3 = Color3.new(0.227451, 0.227451, 0.227451)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0, 0, 1, 0)
- Open.Size = UDim2.new(0, 110, 0, 47)
- OpenBTN.Name = "OpenBTN"
- OpenBTN.Parent = Open
- OpenBTN.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- OpenBTN.BorderSizePixel = 0
- OpenBTN.Position = UDim2.new(0, 0, 0.255319148, 0)
- OpenBTN.Size = UDim2.new(0, 110, 0, 24)
- OpenBTN.Font = Enum.Font.Arial
- OpenBTN.FontSize = Enum.FontSize.Size14
- OpenBTN.Text = "Open"
- OpenBTN.TextColor3 = Color3.new(1, 1, 1)
- OpenBTN.TextSize = 14
- --Send Chat Message
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
- Text = "Vehicle Thonk gui has loaded correctly!";
- Color = Color3.new(85, 255, 0);
- Font = Enum.Font.SourceSansBold;
- FontSize = Enum.FontSize.Size18;
- })
- --Send Chat Message
- function getcar()
- local plr = game.Players.LocalPlayer
- for i,v in pairs(game.Workspace.Vehicles:GetChildren()) do
- if v:IsA("Model") then
- if v.owner.Value == plr.Name then
- return v
- end
- end
- end
- return nil
- end
- Close.MouseEnter:connect(function()
- Close.BackgroundTransparency = 0
- end)
- Close.MouseLeave:connect(function()
- Close.BackgroundTransparency = 1
- end)
- Mini.MouseEnter:connect(function()
- Mini.BackgroundTransparency = 0
- end)
- Mini.MouseLeave:connect(function()
- Mini.BackgroundTransparency = 1
- end)
- Mini.MouseButton1Up:connect(function()
- if Main.Position == UDim2.new(0, 0, 1, 0) then
- Main.Position = UDim2.new(0, 0, 100, 0)
- Mini.Text = "+"
- else
- Main.Position = UDim2.new(0, 0, 1, 0)
- Mini.Text = "-"
- end
- end)
- Close.MouseButton1Up:connect(function()
- Open:TweenPosition(UDim2.new(0, 0, 0.435, 0), 'In', 'Quint', .5)
- Bar.Position = UDim2.new(1.423520386, 0, 1.357366771, 0)
- end)
- OpenBTN.MouseButton1Up:connect(function()
- Bar.Position = UDim2.new(0.423520386, 0, 0.357366771, 0)
- Open:TweenPosition(UDim2.new(0, 0, 1, 0), 'Out', 'Quint', .5)
- end)
- Mountains.MouseButton1Click:connect(function()
- local car = getcar()
- car.Handling.StickyWheels.Value = 100
- end)
- Speed.MouseButton1Click:connect(function()
- local car = getcar()
- car.Handling.RearWheelDrive.Force.Value = 3900
- car.Handling.FrontWheelDrive.Force.Value = 890
- car.Handling.StickyWheels.Value = 241
- car.Handling.FrictionOffroad.Value = 1724
- car.Handling.FrictionRoad.Value = 7114
- car.Handling.Torque.Value = 152045
- car.Handling.Nitro.NitroSpeed.Value = 1000000
- car.Handling.Nitro.NitroForce.Value = 52381
- end)
- JP.MouseButton1Click:connect(function()
- local car = getcar()
- car.Handling.TurboJump.TurboJumpHeight.Value = TextBox.Text
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement