How to localize a script with stream enabled on

  1. What do you want to achieve?
    pull a lever to open a door but only for client not for whole server,

  2. What is the issue?
    when person clicks the lever the door opens for everyone

its a proximity prompt door if that matters… I don’t understand how I would get the door and lever to only work via client if scripts are inside the part or either in server-scripts…

When the prompt is trigged use a Remote Event then FireClient() to a Local script to open the door.

1 Like

does that mean I should keep the prompt inside of the part with a script calling on a local script?

Use a ServerScript in the part to detect when the player has successfully triggered the prompt, then using a remote event do :FireClient() and have a local script listening for it. The local script should be in PlayerGui.

2 Likes