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