This is a local script placed under a TextLabel, which is intended to update Text with a Changed number Value, but it fails to do so while the print function does actually print out changed numbers. How do I update the Text through this script?
P.S. value is NumberValue
local value = script.Parent.Value
function updatedValue()
script.Parent.Text = "Difficult Buttons Clicked:"..value.Value.."/10"
end
value.Changed:Connect(print, updatedValue)
value.Value = 0
strangely, print placed in updatedValue function only prints out Value either when putting value.Value = 0 before or after whole function of updatedValue
somehow the print value placed inside updatedValue made the script work with value.Value = 0 being placed above the function, well i have to thank you for your debug suggestion which made it work