I want this script to repeat, tried to add a while true do but it didn't work. Anyone know how I can fix it and make it repeat forever?
script.Parent.ClickDetector.MouseClick:Connect(function(player)
if player then
player:WaitForChild("PlayerGui").ScreenGui.Frame.Visible = true
end
end)

6 comments
Normal script or Local script?
normal
Why would u want to make it repeat forever ?
they want it to repeat because if they click, it works, but then if they do it again, it doesnt work. same problem for me.
I don't understand why you want it running forever, but you also want it to run when you click something? It can be either or, not both.
You can't just make it repeat forever. The script is waiting for a confirmed player to click it then do the following.