Hi!, I’ve been trying to find a better solution of shutting down a server other than just
for _,Player in pairs(game.Players:GetPlayers()) do
Player:Kick("Manual shutdown")
end
game.Players.PlayerAdded:Connect(function(Player)
Player:Kick("Manual shutdown")
end)
because said code above seems to have a problem where whenever the manual shutdown occur by using that code, certain players will still be able to join the said server resulting in infinite loading. I’ve also tried to combine Soft shutdown script made by Merely
with the manual shutdown but I’ve reach the rock bottom of not being able to figuring anything out.