Yes, sorry for all the questions, but I really need your help. I need this script to make a Gui visible if times == 0, but the script just doesn't do anything.
player = game.Players.LocalPlayer
mouse = player:GetMouse()
times = 10
mouse.Move:connect(function()
player.PlayerGui.Screensaver.Main.Visible = false
times = 10
end)
while true do
wait(1)
times = times - 1
print("Screenz:".. times)
end
while true do
if times == 0 then
player.PlayerGui.Screensaver.Main.Visible = true
wait(1)
else
print("ScreenSaver Not Active, time waited is not enough.")
end
end
--Thanks in Advance!

2 comments
Other than using a loop and not putting that argument the loop is waiting for in a separate if gate within the idled connection. This is pretty good. However he shouldn't use a loop for that.. When the mouse idles you are running the idles connection AND the loop. Thats inefficient.
No, the loop is not running. It only runs if the condition(times == 0) is true.