This line doesnt work
player = script.Parent.Parent.Parent.Parent.Parent
is there a better way to locate the player who click on a button's backpack?
Plz herlp
If it's a LocalScript
player=Game.Players.LocalPlayer
Otherwise, just make sure you've counted the parents properly. The player would be equivalent to StarterGui plus one .Parent.