Advertisement
igdegoo

Untitled

Nov 11th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. enabled = true
  2. script.Parent.MouseButton1Click:Connect(function()
  3. if enabled then
  4. if (workspace.ChickenTruck:FindFirstChild("VehicleSeat") == nil) or (not workspace.ChickenTruck.VehicleSeat.Occupant)then
  5. workspace.ChickenTruck:Destroy()
  6. local cloned = game:GetService("ServerStorage").ChickenTruck:Clone()
  7. cloned.Parent = workspace
  8. cloned:MakeJoints()
  9. enabled = false
  10. script.Parent.BackgroundColor3 = Color3.fromRGB(85,0,0)
  11. script.Parent.Text = "Cooling down..."
  12. wait(15)
  13. enabled = true
  14. script.Parent.BackgroundColor3 = Color3.fromRGB(170,0,0)
  15. script.Parent.Text = "Regen Truck"
  16. else
  17. script.Parent.Text = "Occupied by " .. workspace.ChickenTruck.VehicleSeat.Occupant.Parent.Name
  18. wait(1)
  19. script.Parent.Text = "Regen Truck"
  20. end end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement