If I have a script in a tool, how do I find who player is?
✓ ANSWER ACCEPTED
How do I find player through a script in a tool?
2 answers
✓ Accepted answer
Or if it's a server script,
local player = Game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
Use this:
local player = Players.LocalPlayer
that is how you locate it. Tools oftenly use localscript so use localscript to use the line above.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
isn't it local player = game.Players.LocalPlayer