Player.kick() - Help

Hey, I wanted to know if it is possible to use formatting or rich text other than \n within kick messages, I’ve looked and so far can only see that you can use \n on plr:kick().

(Also I am not sure if it should be placed in #help-and-feedback:scripting-support please reply with the channel that should be used if so)

Basiaclly I want to create formatted kick message, and wanted to know if you can use any other code than just \n, any help will be apreciated thanks.

(This probaly is a stupid question, I have never used kick so I have no idea if this is the case)

Iirc, you can use formatting, but you can’t use richtext.

Thanks, that’s great, the only issue now is that I don’t know what formating language is used! Thank you so much!

You mean string formatting, right?

1 Like

Never heard of it lol, thanks!

if you want to show a custom gui before you kick you can do something like this

-- server script
local remoteEvent = game.ReplicatedStorage.RemoteEvent

local function KickPlayer(player, message)
	remoteEvent:FireClient(player, message)
	task.wait(5)
	player:Kick()
end

-- localsctipt
local remoteEvent = game.ReplicatedStorage.RemoteEvent

remoteEvent.OnClientEvent:Connect(function(message)
	script.Parent.TextLabel.Text = message
	script.Parent.Enabled = true
end)
3 Likes

Thanks for extra info on how to show custom UI, will use this for sure in my code!

if the kick is not urgent you could even wait for them to send you a event back with a OK button or something

2 Likes