How Client-Side work?

The f- how client-side work?!
Okay. I am beginner in programming/coding. I am learning about module and client and server.
And I am working on obstacles. I scripted the falling platform if you touch the platform, the platform will unanchored itself and fall.

But the problem is
The script is local and yet people can see it when a player touched it, it fell. I would prefer only each person see it on their own screen.

The Video:
https://gyazo.com/2d6d8a6aef413992f42045edf0addd9f

Solution?
I couldn’t find one. To be honest, I am so confused.

1 Like

I assume the only way it is doing the same effect for everyone is because the Touched event reacts to everyone, so when anyone touches the part it will react the same. In your LocalScript you need to add another check to make sure the Player touching it is equal to Players.LocalPlayer else it will keep running the same code for each person who touches it.

1 Like

Oh… that make senses. How come I didn’t see this lol… I’m in shock ngl.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.