game.Players.PlayerAdded:connect(function(plr)
-- put code that makes the players vehicle spawn here
local plrvalue = Instance.new("StringValue", game.Workspace)
plrvalue.Name = plr.Name
plrvalue.Value = plr.Name
local vehicle = game.Workspace.Vehicle -- vehicle name here
local vehicleseat = vehicle.VehicleSeat -- name of the vehicles driver seat here
if plrvalue == plr.Name then
vehicleseat.CanCollide = true else
vehicleseat.CanCollide = false
end
end)
|