#script dont work
7 messages · Page 1 of 1 (latest)
local DriverSeat = game.Workspace.Car.DriverSeat
local Players = game:GetService("Players")
DriverSeat:GetPropertyChangedSignal("Occupant"):Connect(function()
local occupant = DriverSeat.Occupant
if occupant then
local character = occupant.Parent
local player = Players:GetPlayerFromCharacter(character)
if player then
print(player.Name)
end
end
end)
like this?
u mean my code or u modified the code ?
try my code n lmk if it works
ok thanks but btw should i put the code as a local or regular script, and in the car model, the driver seat, or the characterscripts ?
only do server script unless the the script is in the character