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

Is the following line of code valid?

And if not, are there any methods to make it so?

----Player has been defined before in this script scenario
local Lo_Var = Player.Status.Value

1 answer

✓ Accepted answer

No, you can't.

The LocalScript saves the value, and basically turns it into a static value.

To remedy this, us the .Changed event:

local val = Player.Status
local Lo_Var = val.Value

val.Changed:connect(function()
	Lo_Var = val.Value
end)

Hope I helped!

~TDP

1 comment

0

Thank you!

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