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

[SOLVED] Why am I getting this error with a Remote Event?

Asked by 5 years ago
Edited 5 years ago
game.Players.PlayerAdded:connect(function()
    shopevent:FireClient("CurrencyChange", gemtag.Value, bittag.Value)
end)

In the output it says: Unable to cast value to Object

gemtag and bittag are both IntValues. What does this mean?

UPDATE: forgot to include player parameter lol

1 answer

Log in to vote
0
Answered by 5 years ago

I think you may be doing this wrong in Value part. Are you including Value where you define both gemtag and bittag, because if you do, then that's the problem. You should include Value only once, either when you define variable or when you use it.

Ad

Answer this question