I want to make this green gate open for the player that steps onto the blue button. The gate should only open for the player that pressed it.
The code shown is the final attempt after rewriting fully 3 times using 3 different methods that all failed.
The script is a local script and is in game.StarterPlayer.StarterPlayerScripts
The door currently opens for everyone client sided but not the server.
The exact instructions for the door in order will be listed below:
- Button touched by player
- For the player that touched the button:
- Button changes colour to green
- Gate transparency becomes 0.5
- Gate CanCollide becomes false
- After 5 seconds stages 2, 3 and 4 will be reverted
Thanks to anyone who can help, been stuck on this for hours.


** You are now Level 1! **





