Make a clean kick message

  1. What do you want to achieve?
    so i want to make a clean kick message like this picture below.

  2. What is the issue?
    i know how to make a kick message, but i dont quite know how they can make it multiple lines nicely.

what i can think of is just spamming spacebar until its nice, so is there anyway to make it??

2 Likes

You could use backslash + n (\n), it makes a new line in a string.

Example:

This is what it would look like:
image

5 Likes

In addition to the provided solution you could also utilise a long string. Long strings in Lua are denoted by text enclosed/enveloped in a pair of double square braces, they are displayed in the same format in which they are written.

local players = game:GetService("Players")
local player = players.LocalPlayer

player:Kick([[

1
2
3
4
5
6
7
8
9
0]])

image

7 Likes