Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.