Quick question with scripting

Okay I’m very new to scripting and the last thing I learned so far are variables but I just want to ask this quick question. Why when people are finished with a script they have multiple ends like this

if player.AccountAge < 10 then
Kick:(player,“Account not old enough”)

And why are they on an a new line? If you don’t understand what i’m saying I’ll try to explain it a better way.

1 Like

In programming we have to close if statements, loops, functions, etc. at some point since we can declare what happens at which loop, if statements, etc. in this range. (from declaration and all the way to the end)

It’s how you close the function

function text(x) -- parameter
-- anything we put in here, will only run up until end. in simple terms. if we don't close a function code would mess up. basically