Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is rplayer a number value?

Asked by
chafava -113
5 years ago
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

0
Is this in a local script or a server script? DesignerOfGames -7 — 5y
0
server script chafava -113 — 5y
0
Is the "Wood" value a NumberValue or a BoolValue? Check its class name. Y_VRN 246 — 5y
0
Wood is an IntValue altough every time I set text to IntValues it still works chafava -113 — 5y

Answer this question