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

Why isn't the text changing?

local r = game.Workspace:FindFirstChild("Rounds")

r.Changed:Connect(function()
		wait(.1)
		script.Parent.Text = "Wave"..rc.Value

7 comments

0

You misspelled "r.Value" on line 05

0

oh thx

0

It still dosen't work

0

have you tried print statements to try and figure out where the problem is?

0

Maybe because you have it in a changed function it only changes the text when the value is changed so try copying the code inside the changed function and pasting it before the function and see if that works

0

Are there any errors?

0

It worked thx

1 answer

✓ Accepted answer

You seem to be missing an end for the Changed, also, I would recommend using GetPropertyChangedSignal for this instead

Fixed version:

local r = game.Workspace:FindFirstChild("Rounds")

r:GetPropertyChangedSignal("Value"):Connect(function()
        script.Parent.Text = "Wave"..r.Value
end)

You can learn more about GetPropertyChangedSignal here

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