Make an object only visible to player if in vehicleseat

  1. What do you want to achieve? Make an object only visible to the player if they are in a vehicle seat

  2. What is the issue? N/A

  3. What solutions have you tried so far? Already searched and can’t find much.

Any ideas are much appreciated, thanks!

Script

--Put this script in seat
script.Parent.Changed:Connect(function(changed)
    if changed == "Occupant" then
        if script.Parent.Occupant ~= nil then
            game.ReplicatedStorage.EVENTNAME:FireServer(game.Players:GetPlayerFromCharacter(script.Parent.Occupant.Parent))
        end
    end
end)

I belive that i helped you

  1. Detect if the player enters the seat (server-side)
  2. Use the RemoteEvent | Roblox Creator Documentation :FireClient() function.