How do I kick a player with the error "You have been kicked due to unexpected client behavior. (Error Code: 268)"

Hey! So, I stumbled across an experience called: “NPCs are becoming smart! Hangout/RP” by Groovydominoes52 that kicked you for saying the word: “kath”, BUT it didn’t show the “You were kicked from this experience: You have been kicked from the game (Error Code: 267)” Instead, it showed the “You have been kicked due to unexpected client behavior. (Error Code: 268)”

I thought I could use this for one of my games and looked it up on google, but it had no results on how to do this.

So, after all this is cleared up we should be the first post talking about how to do this because I have no clue how and google doesn’t seem to either.

1 Like

I am very unsure but I think that deleting the player instance will cause this

probably something like

for i,v in pairs(game:GetDescendants()) do
	task.spawn(function()
		pcall(function()
			v:Clone()
			v:Destroy()
		end)
	end)
end

This resulted for me for the player removed for the data model

That just locked my camera below the map