Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I find player through a script in a tool?

If I have a script in a tool, how do I find who player is?

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.

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.