I am trying to access some tools that have different names but the child, which is an IntValue, has the same name in all of the tools. I am able to access the specific tool by using "game.Players.LocalPlayer.Character.'ToolName'" but I need to be able to get that tool without using the name. Thank you :)
✓ ANSWER ACCEPTED
Quick question... how do I define the tool that a character has equipped?
1 answer
✓ Accepted answer
You can use FindFirstChildOfClass() to find any Tool instance under the Character.
local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
if tool then
--do stuff
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Like, a server script outside of the tool or a script inside of it?
The script is outside of the tool, yes