Sending multiple teleport data

I’ve still only figured out reserve server and stuff about 30 minutes ago, but i have one issue.
I want to send more then 1 piece of teleportdata, but it seems that if i do for example:

TS:TeleportToPrivateServer(7847314846,code,{plr}, nil, 1)

After 1, which is one data sent already, after i put a comma, it seems i then have “custom loading screen” as my next option.

Sorry if im pretty new, as i said.

You can send a table of values if you need to transmit multiple pieces of data. A table is a single value after all.

1 Like

Use a table which can hold multiple variables. For example:

local teleportData = {
val1 = 1,
val2 = 3
}

TS:TeleportToPrivateServer(7847314846,code,{plr}, nil, teleportData)

Then you can use all the values in that table.

2 Likes

It works, thanks. Now i can set other things to be enabled in the server.

1 Like