LocalWE
(WilliApple)
1
Hello developers! My clock is not working. When the player has been idle for 5+ seconds, the UI will pop up. However, it is not working
The code
game.Players.LocalPlayer.Idled:Connect(function(t)
print(t)
if t >= 5 then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end)
Also, that print(t) doesn’t work. No errors.
If you can help, please let me know, thanks WE.
Dorthsky
(askaye)
2
As said in the wiki (Player | Documentation - Roblox Creator Hub)
This event is usually fired two minutes after the game engine classifies the player as idle
So, you could maybe do something like
game.Players.LocalPlayer.Idled:Connect(function(t)
print(t)
if t >= 3 then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
end)
To make up for that 2 minutes
Hope this helps. (haven’t tested it so it may or may not work.)