While going through Studio, I found Values, like string value, bool value, int value, and I was wondering how I use them, and why I should use them in scripts.
Hi jack,
Thanks,
Best regards,
~~ KingLoneCat
Values can be used for stats. Like... Cash ( IntValue, NumberValue), Ranks(StringValue). BoolValue is mostly used for checking if something is true, or not. Then there are values, that are used for coloring(Color3Value, BrickColorValue) which are storing values, for changing color of objects ( GUI propertes, Parts and another stuff...) The last values are used to store position (CFrameValue, Vector3Value), with them you can change position of parts and another stuff. All of those values can be used for much more, this is only example!
Also there is, ObjectValue,that is holding objects reference. Then there is RayValue which I don't know what is it used for.
They can be also used in conditional statements http://robloxdev.com/articles/Conditional-Statements-in-Lua.