How do I make a Gui appear when player sits on Vehicle seat? if script.Parent.Occupant then

if script.Parent.Occupant then
local player = game.Players.LocalPlayer
player.PlayerGui.ScreenGui.Enabled = true
else
if not sript.Parent.Occupant then
player.PlayerGui.ScreenGui.Enabled = false
end
end

5 comments

0

That is the script i made and seem not to work

0

Please help

0

whats the event? is it changed or touched

0

Changed

0

local scripts don't run in workspace, put it into the StarterPlayerScripts to be pro or StarterGui for simplicity.