Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- UPDATING SOON
- -- GUI VERSION 1.0
- local main = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local CarSpawn = Instance.new("TextButton")
- local DeleteCar = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local removeallcar = Instance.new("TextButton")
- local carspeed = Instance.new("TextLabel")
- -- FUNCTIONS
- main.Name = "main"
- main.Parent = game.CoreGui
- main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = main
- Frame.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- Frame.BorderColor3 = Color3.fromRGB(103, 221, 213)
- Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
- Frame.Size = UDim2.new(0, 190, 0, 57
- spawncar.Name = "spawncar"
- spawncar.Parent = Frame
- spawncar.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- spawncar.Size = UDim2.new(0, 44, 0, 28)
- spawncar.Font = Enum.Font.SourceSans
- spawncar.Text = "Up"
- spawncar.TextColor3 = Color3.fromRGB(0, 0, 0)
- spawncar.TextSize = 14.000
- desspawncar.Name = "desspawncar"
- desspawncar.Parent = Frame
- desspawncar.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- desspawncar.Position = UDim2.new(0, 0, 0.491228074, 0)
- desspawncar.Size = UDim2.new(0, 44, 0, 28)
- desspawncar.Font = Enum.Font.SourceSans
- desspawncar.Text = "desspawncar"
- desspawncar.TextColor3 = Color3.fromRGB(0, 0, 0)
- desspawncar.TextSize = 14.000
- removeallcar.Name = "removeallcar"
- removeallcar.Parent = Frame
- removeallcar.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- removeallcar.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
- removeallcar.Size = UDim2.new(0, 56, 0, 28)
- removeallcar.Font = Enum.Font.SourceSans
- removeallcar.Text = "removeallcar"
- removeallcar.TextColor3 = Color3.fromRGB(0, 0, 0)
- removeallcar.TextSize = 14.000
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 100, 0, 28)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "BACONHACK_26 CAR SPAWNER"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- carspeed.Name = "carspeed"
- carspeed.Parent = Frame
- carspeed.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
- carspeed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
- carspeed.Size = UDim2.new(0, 44, 0, 28)
- carspeed.Font = Enum.Font.SourceSans
- carspeed.Text = "1"
- carspeed.TextColor3 = Color3.fromRGB(0, 0, 0)
- carspeed.TextScaled = true
- carspeed.TextSize = 14.000
- carspeed.TextWrapped = true
- game.ReplicatedStorage.CarSpawn.OnServerEvent: Connect(function(player) local char player. Character or player.CharacterAdded: Wait()
- if not game.Workspace: FindFirstChild(player.Name.."Car") then age.Car:Clone() local car game. ReplicatedStorage.Car: Clone()
- car. Parent = workspace
- car: SetPrimary PartCFrame(char. Primary Part.CFrame CFrame.new(10,3,10))
- car.Name player.Name.."Car"
- end end)
- game.ReplicatedStorage.DeleteCar.OnServerEvent: Connect(function(player) if workspace: FindFirstChild(player.Name.."Car") then
- workspace: FindFirstChild(player.Name.."Car"): Destroy()
- end end)
- spawncar.MouseButton1Down:connect(function()
- game.ReplicatedStorage.CarSpawn:FireServer()
- end)
- desspawncar.MouseButton1Down:connect(function()
- game.ReplicatedStorage.DeleteCar:FireServer()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement