Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

TeleportService is making separate servers for players?

For some reason, this script doesn't fill up my servers. Max server size is 18, and Preferred Player Count is 15.

Any idea what's wrong? Sometimes it let's like 3 people join the same server, other times it makes completely different ones for everyone.


local TeleportService = game:GetService("TeleportService")
local level1Id = 966545804
local level2Id = 857960791
 


local Button = script.Parent
function onClick()
 local player = game.Players.LocalPlayer
    if player then
	local frame = script.Parent.Parent.Parent.Loading
	 frame:TweenPosition(UDim2.new(0.5, 0,0.5, 0), "Out", "Bounce", 1)
	frame.LocalScript.Disabled = false
	script.Parent.Parent.Visible = false
	wait(3)
        TeleportService:Teleport(level2Id, player)
end
end

Button.MouseButton1Click:connect(onClick)

Thanks for reading

1 comment

0

1 answer

you can setting the player in

Develop>Places or which server>Configure place>Accses

set the Preferred Player Count to whatever you want, so if the player reach the number, new server will created and the Maximum Player Count is the Maximum Player

1 comment

0

Why cant I downvote without 100 rep.. sigh if youd read the question, its set to 15, but making a new server at 3. Thanks for the "help" anyways. Im sure that you had good intentions

This discussion is preserved as it was. New answers, comments, and votes are closed.