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

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:

Tycoon = script.Parent
Reference = Tycoon["Code a simple bot net: 20 monies"]
Reference.Parent = nil
Pllayer = Tycoon.Parent.Player
player = Game.Players:GetPlayerFromCharacter(Pllayer.Value)

Please tell me what is wrong and, how to fix it.

1 answer

Check your parent tree again "Tycoon.Parent"? Shouldn't Tycoon be the master parent?

1 comment

0

Ok, Tycoon's parent is computer, and computer has the value in it

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