Advertisement
Guest User

.

a guest
Mar 29th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. db = false
  2. local plr = game.Players.LocalPlayer
  3.  
  4. script.Parent.ClickDetector.MouseClick:Connect(function(player)
  5. local car = game.ServerStorage:WaitForChild("KMAR1")
  6. if not game.Workspace:FindFirstChild("car"..player.Name.."1") then
  7. if game.Players[plr]:GetRoleInGroup(5464012) >= 1 then
  8. if car ~= nil and db == false then
  9. db = true
  10. local CloneCar = car:Clone()
  11. CloneCar.Parent = game.Workspace
  12. CloneCar.Name = "car"..player.Name.."1"
  13. db = false
  14. end
  15. end
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement