First off, I don’t much about scripting this is why I am asking this question. How would I change a number value using a command by inserting the command into the Developer Console? I have a tycoon and I want to change the value of my money. The location is “workspace.RedTycoon.Tycoons.CurrencyToCollect”. The CurrencyToCollect is the NumberValue I want to change.
workspace.RedTycoon.Tycoons.CurrencyToCollect.Value = --Put the value you want here
This should work.
1 Like
Wow your fast. I’ve been looking for something like this. Thanks a lot.
1 Like
Another question, if there was a space for Red Tycoon. Would it be typed as workspace.Red Tycoon.Tycoons.CurrencyToCollect.Value = 0or something else?
You’d get an error like this:
![]()
Any objects with names that have special symbols/spaces on them, just encase them with brackets
workspace["Red Tycoon"].Tycoons.CurrencyToCollect.Value = 0
That way it’ll know it’s a valid object regardless of how much things you put in it
1 Like