I'm working on a new Tycoon style of game (not the usual boring stuff) and i need a script that access to that IntValue object and changes the number, so far i just came up to this but seems it doesn't work
My idea is to create random parts with an IntValue file which stores a value, so far i could create instances which creates the part and the IntValue file in it. But i don't know how to give that IntValue file a random number to store when the part is created and the file in it too.
Thanks for read
I am not too sure what you are wanting but this is what I though you wanted.
--First off, find the part value. TheValue.Value = math.random(1,5) --This gives a value 1 - 5.