Client vs Server Touched event question

So, this is a very small experiment with 2 scripts and a remote event.

The server side:

-- Create part with instance.new() 
-- Make it print "Touched", when the part is touched
-- Parent it to workspace (Basic stuff)

-- Send to all clients, tweeninfo to move the part. 

Local script

-- On client event, create a tween with the info, and move the part. 

Now, this is pseudo code for how the concept works.
Im very confused right?
You would think, the touched event is made on the server side.
if the client moves the part, then the part only moves on the client side.
That is fundamentally true. You will see on the server side that the part does not move. The part on the server side is not moving, so it should not touch the player. However, the print event activates, meaning it does? I dont understand how this is possible? If someone wants to ask me more questions about this please do I will give you all the info you need.

2 Likes

You checking it in studio or player? I saw also that in studio touch events are detected on the client side probably because server is simulated on the computer.

.Touched is not server authoritative in this case, it is, in fact, relies on client because the player’s character is handled on client.

1 Like

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