#Wont teleport player

12 messages · Page 1 of 1 (latest)

vagrant ice
#

I added this to the end of my script to teleport the player to another place in the queue after the timer is over, however it wont teleport the player for some reason.

local function teleportPlayer()
if #queue > 0 then
billboard.Frame.Time.Script.Disabled = false

    local players = {}

    for i = 1, #queue do
        
        if game.Players:FindFirstChild(queue[i]) then
        
            table.insert(players,game.Players:FindFirstChild(queue[i]))
        else
            table.remove(queue, i)
        end
    end

    local server = TeleportService:ReserveServer(placeId)
    teleporting = true
    game:GetService("TeleportService"):TeleportToPlaceInstance(placeId, server, players)

    repeat wait() until #queue <= 0

    billboard.Frame.Time.Script.Disabled = true
    billboard.Frame.Time.Text = ""
    billboard.Frame.Time.TextColor3 = Color3.new(1, 0, 0)
    teleporting = false
end

end

while wait() do
seconds = 10 --How Many Seconds Till Teleporting.
for i=1, seconds do
seconds = seconds - 1
if billboard.Frame.Time.Script.Disabled == true then
billboard.Frame.Time.Text = "Teleporting in "..seconds.." seconds"
end
wait(1)
end
teleportPlayer()

end

vagrant ice
#

I did, nothing is happening

#

it just wont teleport

#

@frosty robin

#

I waited for 20 seconds and still nothihng happenend, third party tps are allowed

#

Yes, i have indicator that goes from 10 to 0 and then says "teleporting..." if a player is in the queue, and while that teleporting process the above sent Screenshot is what the output says

silver fossilBOT
#

studio** You are now Level 4! **studio

vagrant ice
#

Yes its all public and correct

#

its a place in the game

silver fossilBOT
#

studio** You are now Level 6! **studio

vagrant ice
#

yep

#

alr wait