I have this script in the ServerScriptService and it throws an error, anyone know how to fix or why it throws an error?
game.OnClose:connect(function()
wait(20)
end)
I have this script in the ServerScriptService and it throws an error, anyone know how to fix or why it throws an error?
game.OnClose:connect(function()
wait(20)
end)
You can learn more about this on the ROBLOX Wiki, But the layout on the ROBLOX Wiki has:
game.OnClose = function()--I think this is How you lay it out.
print 'Closing, waiting'
wait(3)
print 'Done'
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
It work! Thanks