Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local driver = whoever is the driver of the car
  2.  
  3. game.Players.PlayerRemoving:Connect(function(player)
  4.     if player.Name == driver.Name then
  5.             script.Parent.Parent:Destroy()
  6.     end
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement