Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enabled = true
- script.Parent.MouseButton1Click:Connect(function()
- if enabled then
- if (workspace.ChickenTruck:FindFirstChild("VehicleSeat") == nil) or (not workspace.ChickenTruck.VehicleSeat.Occupant)then
- workspace.ChickenTruck:Destroy()
- local cloned = game:GetService("ServerStorage").ChickenTruck:Clone()
- cloned.Parent = workspace
- cloned:MakeJoints()
- enabled = false
- script.Parent.BackgroundColor3 = Color3.fromRGB(85,0,0)
- script.Parent.Text = "Cooling down..."
- wait(15)
- enabled = true
- script.Parent.BackgroundColor3 = Color3.fromRGB(170,0,0)
- script.Parent.Text = "Regen Truck"
- else
- script.Parent.Text = "Occupied by " .. workspace.ChickenTruck.VehicleSeat.Occupant.Parent.Name
- wait(1)
- script.Parent.Text = "Regen Truck"
- end end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement