game.Players[Player].Stats.Wood.Value = game.Players[Player].Stats.WoodOld.Value is giving Workspace.Tree.Handler:25: bad argument #2 to '?' (string expected, got Object)
Wood and WoodOld are both a IntValue
Thanks
game.Players[Player].Stats.Wood.Value = game.Players[Player].Stats.WoodOld.Value is giving Workspace.Tree.Handler:25: bad argument #2 to '?' (string expected, got Object)
Wood and WoodOld are both a IntValue
Thanks
You mean?
game.Players[Player].Stats.Wood.Value = game.Players[Player].Stats.WoodOld.Value
I suggest to you to use:
game.Players.LocalPlayer.Stats.Wood.Value = game.Players.LocalPlayer.Stats.WoodOld.Value
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Please post the entire script. [Player] hasn't been defined.
Also, describe what you're attempting to create.