"\n" not working on :Kick() function

  1. What do you want to achieve?
    I want to create a new line in a string.

  2. What is the issue?
    \n wont create a new line for me.
    image

  3. What solutions have you tried so far?
    I tried looking for similar problems in the dev forum.

plr:Kick("\n Banned".."\n Reason: "..banData.reason.."\n Time left: \n".."Seconds: "..tostring(banData.endTime - os.time()))
1 Like

Roblox disabled this feature due to an exploit a while ago. They’ll try and enable it as soon as it is safe to do so.
I’m not sure if there is a solution for it.

1 Like

Just found a thread about it as well, I guess ill leave it like this for now then.

1 Like
local Game = game
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
Player:Kick("Test"..string.rep(" ", 41).." Test")

image

local Game = game
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
Player:Kick("A"..string.rep(" ", 25).." B"..string.rep(" ", 25).."C")

image

1 Like

Looks like a good solution but this might be tricky to put it in a neat format.