Doesn't show anything on the logs.
script.Parent.Value:GetPropertyChangedSignal("Value"):Connect(function() local value = script.Parent.Value.Value local text = script.Parent.SurfaceGui.TextLabel.Text if value <= 2 then if value == 1 then text = "10 ?OS. ZALESIE" else --text = "CZAS " .. tostring():sub(1, -2) wait(1) text = "D?BOWA" end elseif value <= 4 then if value == 3 then text = "N/A" else text = "N/A" end else text = "N/A" end end)
Try using the .Changed function. You would do so like this:
script.Parent.Changed:Connect(function() local value = script.Parent.Value.Value local text = script.Parent.SurfaceGui.TextLabel.Text if value <= 2 then if value == 1 then text = "10 ?OS. ZALESIE" else -- text = "CZAS " .. tostring():sub(1, -2) wait(1) text = "D?BOWA" end elseif value <= 4 then if value == 3 then text = "N/A" else text = "N/A" end else text = "N/A" end end)
You cannot directly check if the value changed with the .Changed function. It is a function of the instance and not the property, hope this helps.
GetPropertyChangedSignal is deprecated i think try
script.Parent.Value.Changed:Connect(function() local value = script.Parent.Value.Value local text = script.Parent.SurfaceGui.TextLabel.Text if value <= 2 then if value == 1 then text = "10 ?OS. ZALESIE" else --text = "CZAS " .. tostring():sub(1, -2) wait(1) text = "D?BOWA" end elseif value <= 4 then if value == 3 then text = "N/A" else text = "N/A" end else text = "N/A" end end)
Use Changed instead.