Accessing Backpack from Server?
I'm trying to access a value inside the Players Backpack via a script from the server:
02 | local find = game.Players.LocalPlayer.Backpack.Player_Inv:FindFirstChild( "Lock Pick" ) |
04 | if find.Amount.Value > 0 then |
05 | script.Parent:Destroy() |
06 | find.Amount.Value = find.Amount.Value - 1 |
11 | script.Parent.ClickDetector.MouseClick:connect(onClick) |
Scripts like these have worked in the past, so I'm not sure what the problem is here. Also, there is nothing printed in the output related to this script. Help?