What type of script would be better for a tool giver?
As you all know, a tool giver can be implemented via:
A local script inside screen GUI, starter pack, starterplayerscripts, etc.
that detects mouse input and gets the part[mouse.target] with the necessary script for cloning the needed tool from replicated storage and other similar functions.
or
A server script inside the part with a click detector and get the player through the first argument for the Touched function
which method would be better,
also, reply with your reason,
The main criteria for judging is performance.
Tools should be handed out by the server, not the client. Here’s two reasons I can think of as of right now:
If the tool is controlled by a server-script, it won’t work as the script hasn’t noticed that the tool has been parented by the client (the change wouldn’t replicate).
Never trust the client: As in, do the logic on the server.
I see no reason for you to handle tools on the client.
The data within the tool can be changed on the client through some sort of local script within the client, its just you have to give out the tool from the server since otherwise it wont replicate.