local work = Instance.new("ObjectValue")
work.Parent = game.Players.LocalPlayer.Backpack
work.Value = game.Players.LocalPlayer.Backpack
local rplayer = work.Parent
game.ReplicatedStorage.Mine:FireServer(target, rplayer, stonereward)

And then this happens

if rplayer.PlayerGui.HUD.Inventory.Stuff.Wood.Value == false then -- error >:(

Apprently, while firing the even it says it is a number value wtf

Also I used work as object value because of other scripting troubles

4 comments

0

Is this in a local script or a server script?

0

server script

0

Is the "Wood" value a NumberValue or a BoolValue? Check its class name.

0

Wood is an IntValue altough every time I set text to IntValues it still works