Hello Developers!
I want to get the player from tool.Equipped finding the Player ancestor of the tool.
There are 2 functions for this, but I don’t know which one to use.
Can someone tell me the difference between those 2?
Hello Developers!
I want to get the player from tool.Equipped finding the Player ancestor of the tool.
There are 2 functions for this, but I don’t know which one to use.
Can someone tell me the difference between those 2?
One uses the code that IsA uses, which means if you do BasePart, it’ll find any object that is a basepart (part, wedge, truss etc.)
The other simply just checks ClassName and uses that when finding an object.
Just to make sure, I need to use tool:FindFirstAncestorOfClass(“Player”) to get the player from the tool, right?
This only works if the tool is in the backpack, if its equipped, you need to use Players:GetPlayerFromCharacter.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.