Script Doesn't Work

the tool main script needs to be a server script so it sets the attribute where the server can see it – in a local script only the local client will see it set on the tool

and those prints would be in your touched function in your server script