--iLegimate-- for i = 1, #Players do wait(32) Players[i].PlayerGui.TopFrame:remove() end
It turns out that i have a screenGui inside of the player's PlayerGUI's and after a certain amount of time,I'd like to remove it. But this unfortunately isnt working. Anybody can solve it?
Fixed the code for you:
for i = 1,#Players do delay(32,function() --Use the delay function to fire a function after a set time Players[i].PlayerGui.TopFrame:Destroy() --Use Destroy() instead of remove() end) end