Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need help with ObjectValues and what they are?!

Asked by 8 years ago
Edited 8 years ago

I have come across object values and Im wondering what they are and how to change the values of them!

2 answers

Log in to vote
0
Answered by 8 years ago

An ObjectValue is an Instance which contains a reference value to another Instance.

local part = Instance.new("Part", workspace)
part.Name = "A Testy Test"

local objValue = Instance.new("ObjectValue", workspace)
objValue.Value = part

print(objValue.Value.Name)
Ad
Log in to vote
0
Answered by 8 years ago

I don't know much about them, but you can look at the wiki here!

http://wiki.roblox.com/index.php?title=API:Class/ObjectValue

Sorry that this isn't a proper answer

Answer this question