Script Cannot read value from a string value?
I am making a tycoon, the owner's name is stored in a string value.
My script keeps telling me this:
17:26:30.336 - Unable to cast value to Object
17:26:30.336 - Script 'Workspace.Computer.Tycoon.BNScript', Line 5
17:26:30.336 - Stack End
and my code is this:
2 | Reference = Tycoon [ "Code a simple bot net: 20 monies" ] |
4 | Pllayer = Tycoon.Parent.Player |
5 | player = Game.Players:GetPlayerFromCharacter(Pllayer.Value) |
Please tell me what is wrong and, how to fix it.