Changed (Event)/value: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs (removed category methods) |
(Adding information) |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Event | <onlyinclude>{{Event | ||
|name = Changed | | name = Changed | ||
|arguments = type ''[[Value (Property)|Value]]'' | | arguments = type ''[[Value (Property)|Value]]'' | ||
|description = Fired after the ''Value'' property is changed | | description = Fired after the ''Value'' property is changed. This is present but does not work in 2008M, it uses the other version of this event instead. | ||
|objects = [[BoolValue]], [[BrickColorValue]], [[CFrameValue]], [[Color3Value]], [[IntValue]], [[NumberValue]], [[ObjectValue]], [[StringValue]], [[Vector3Value]], [[RayValue]] | | objects = [[BoolValue]], [[BrickColorValue]], [[CFrameValue]], [[Color3Value]], [[IntValue]], [[NumberValue]], [[ObjectValue]], [[StringValue]], [[Vector3Value]], [[RayValue]] | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{Clear floats}} | |||
{{Example|<syntaxhighlight lang="lua" line> | |||
local function onChanged(value) | |||
print(value) -- value of the StringValue | |||
end | |||
workspace.StringValue.Changed:connect(onChanged) | |||
</syntaxhighlight>}} | |||
</ | |||
See [[Value (Property)]] for list of types. | See [[Value (Property)]] for list of types. |
Latest revision as of 12:47, 6 June 2023
Changed ( type Value ) | |
Description | Fired after the Value property is changed. This is present but does not work in 2008M, it uses the other version of this event instead. |
---|---|
Member of: | BoolValue, BrickColorValue, CFrameValue, Color3Value, IntValue, NumberValue, ObjectValue, StringValue, Vector3Value, RayValue |
Example
local function onChanged(value)
print(value) -- value of the StringValue
end
workspace.StringValue.Changed:connect(onChanged)
See Value (Property) for list of types.