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

How do you 'link' a number value with a property?

By this, I mean that the property goes up once something's added to the value. For example, I tried this:

v.BrickColor.r = script.Parent.RedVal

All help will be appreciated :)

1 answer

✓ Accepted answer

What I think you mean is that you want a variable that follows a certain property. What you need to do is redefine it. I personally like using the changed event

local propertyvalue = game.Workspace.Part.Name

game.Workspace.Part.Changed:connect(function(prop)
	if prop == "BrickColor" then
		propertyvalue = prop
	end
end)

Do me a favor and mark my answer as right

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