Advertisement
RobBobDev

VehicleSeat with ProximityPrompt

Apr 24th, 2022
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local seat = script.Parent
  2. local proximity = script.Parent.ProximityPrompt
  3.  
  4. local players = game.Players
  5.  
  6. players.PlayerAdded:Connect(function(player)
  7.  
  8.     proximity.Triggered:Connect(function()
  9.  
  10.         seat:Sit(player.Character.Humanoid)
  11.  
  12.     end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement