Idea Script Kicked

Could someone send me a script of when the player dies he is kicked from the game but the kicked message is different when he dies again? like a random message

1 Like

Please Read the Rules of the Scripting Support Category.

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Source

do, you mean somthing like this:

local randomssg = {
	"You got kicked!",
	"You died!",      --Random Messages!
	"Game over!",
	"Oops, try again!",
	"Better luck next time!",
}

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local humanoid = char:WaitForChild("Humanoid")
		humanoid.Died:Connect(function()
			local randomIndex = math.random(1, #randomssg)
			plr:Kick(randomssg[randomIndex])
		end)
	end)
end)

2 Likes

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