Im working on a game and I would like to disconnect a Player, so that his game instance does not sync with the server! Is that possible? The disconnected player should still be able to walk around in his instance but should not be connected!
As far as you’re explaining it, it isn’t quite possible as I know of, but there might be a few hacky ways.
A few methods.
simple player:Destroy() instead of player:Kick() (but this will also destroy the character)
sending a remote to delete the player’s NetworkReplicator
function DisconnectClient()
game.NetworkClient.NetworkReplicator:Destroy()
end
Roblox automatically has a network checker to see if a player is still online, so offline verions are not possible as of rn.
Cloning all children in the workspace, detsroying the origionals and destroying all other players. This would be in a local script of course
local player = game.Players.LocalPlayer
function BasicCopy()
for _, v in ipairs(workspace:GetChildren()) do
if v ~= player.Character then
if not game.Players:GetPlayerFromCharacter(v) then
v:Clone().Parent = workspace
end
v:Destroy()
end
end
for _, v in ipairs(game.Players:GetChildren()) do
if v ~= player then
v:Destroy()
end
end
end
My bad, I thought roblox developers had permission to use this command. This means only the internal game/roblox has access to this. It is stupid. As a secondary solution, here it is:
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("BasePart") then
v:SetNetworkOwnership(nil)
end