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

how do i make the server check if a number values value has changed using a script?

Asked by 6 years ago
Edited 6 years ago

basically i want the value of the number value to be the text value but when the number value changes the text doesn't local scriptvalue = script.Parent.Value script.Parent.Parent.Text = scriptvalue basically i want this code to check everytime the value of the number value changes so that it can change the text of a text button the parent of this script is a numbervalue the parent of the number value is the text button

0
Please put your code so we can help you saSlol2436 716 — 6y
0
ok xxbrobroxx02 13 — 6y

1 answer

Log in to vote
0
Answered by
Despayr 505 Moderation Voter
6 years ago

You need to alert the server whenever it changes.

local scriptvalue = script.Parent
script.Parent.Parent.Text = scriptvalue.Value
scriptvalue.Changed:Connect(function()
wait(0.5)
script.Parent.Parent.Text = scriptvalue.Value
0
The text changes to 0 but on the screen its still 1 how do i fix it xxbrobroxx02 13 — 6y
Ad

Answer this question