How to trigger a script when a TextLabel becomes visible

Greetings,

I am trying to make a system that shows how many points are added, what can I use so that a LocalScript inside the TextLabel can detect when it’s visible? I tried .Changed but this deletes it since I am copying it from ServerStorage. Please help me! Thank you.

You would need to either have the script disabled first, or use a module script function once you want it to occur.

local ModuleScript = require(Path)

TextLabel:GetPropertyChangedSignal("Visible"):Connect(function()
if TextLabel["Visible"] == true then
ModuleScript:RunFunctionCode()
-- run the function from the module script
end
end
1 Like

Thank you! I am going to try the script disabled first method since its the one I need

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.