Hi guys! I have a tool which is in the backpack. In the script in the tool, I try to change a value which is in the player but for some reason I get the error that "Products is not a valid member of Model"?! This is the hierarchy.
Player / (in the player are these...)
Backpack -Tool -Script in tool that changes the value
Products
- Value I am trying to change called Cash
I am using this script.
script.Parent.Parent.Products.Cash.Value = 0
Any ideas? Thanks

3 comments
When equipped tools go to the workspace so the parent is not the game player but the model of the player, all you need to do is go through game.players.[player name].Cash.Value to change the value
Thanks! But the tool is in the backpack? :)
The parent of the tool is changed when the player equipts the tool, you can see this happerning when you test the roblox project in solo mode.