The soft shutdown problem (Player has been removed from the datamodel.)

I’ve been trying to figure out why all soft shutdowns I want to use, doesn’t work.

Everytime I shutdown the server, it shows the ui and then immediately kicks me for “Player has been removed from the datamodel.”

I’ve tried these:

Quenty’s Soft Shutdown.
Merely’s Soft shutdown.
Wheez’s Soft shutdown.

and then some smaller.

None of them made their work. I’ve been trying making separated places for shutdown and teleporting players there. Doesn’t work as well.

There are no client log errors or anything.
The pictures shows what happens if I will press “Shutdown all servers” button. And yes, I have private servers available.

well player removed from datamodel could be the script or roblox probs the script
an example of this would be

game.Players:ClearAllChildren()

Maybe try using this softshutdown

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

if (game.VIPServerId ~= "" and game.VIPServerOwnerId == 0) then
	-- this is a reserved server without a VIP server owner
	local m = Instance.new("Message")
	m.Text = "This is a temporary lobby. Teleporting back in a moment."
	m.Parent = workspace

	local waitTime = 5

	Players.PlayerAdded:connect(function(player)
		wait(waitTime)
		waitTime = waitTime / 2
		TeleportService:Teleport(game.PlaceId, player)
	end)

	for _,player in pairs(Players:GetPlayers()) do
		TeleportService:Teleport(game.PlaceId, player)
		wait(waitTime)
		waitTime = waitTime / 2
	end
else
	game:BindToClose(function()
		if (#Players:GetPlayers() == 0) then
			return
		end

		if (game:GetService("RunService"):IsStudio()) then
			return
		end

		local m = Instance.new("Message")
		m.Text = "Rebooting servers for update. Please wait"
		m.Parent = workspace
		wait(2)
		local reservedServerCode = TeleportService:ReserveServer(game.PlaceId)

		for _,player in pairs(Players:GetPlayers()) do
			TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, { player })
		end
		Players.PlayerAdded:connect(function(player)
			TeleportService:TeleportToPrivateServer(game.PlaceId, reservedServerCode, { player })
		end)
		while (#Players:GetPlayers() > 0) do
			wait(1)
		end	

		-- done
	end)
end


Nope, nothing. No ClearAllChildren was found or anything. It just doesn’t let the script teleport during the shutdown

it could be roblox or something
or your place has a backdoor script that stops you from teleporting

hell nah, all scripts are made by myself. all models are made by paid builder and i’ve checked them all. i think the problem is roblox

what script are you putting the soft shutdown into?
server
local
module
?

server
words, words, words, words, words

it does the same thing with verified and really known soft shutdown scripts. none of em works

Maybe click migrate to latest update ? it will automatically teleport you to latest version

i think this will be the last possible option

This is an OG kick message. It occurs when the player object is destroyed and can be called from both client and server. A simple game.Players:ClearAllChildren() or player:Destroy() should trigger it. Check if any scripts are messing with the integrity of player objects during the events that the shutdown triggers.

I found out that the Datastore2 during shutdown sets player’s parent to nil.

That’s probably the issue, you should add a special case for that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.