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

Teleport script not functioning as intended?

-- VARIABLES DONT RENAME
local plrs = game.Players:GetChildren()
local t1 = game.Workspace.Teleport1 -- to add round you will have to make a new variable like this and make a new round function
local lobby = game.Workspace.LobbyPart
----------------------- 

function EndRound() --Preparing to end round.
    plrs.Character.HumanoidRootPart.Postion = lobby.Position
 
end



function Round1() -- Setting up for round 1.
    plrs.Character.HumanoidRootPart.Postion = t1.Position
end


wait (10) -- 10 seconds before round 1 starts

Round1() -- Starting Round 1.

wait (30) -- Round 1 lasts 30 seconds.

EndRound() -- Ending round.

I'm trying to make a minigame system for people to use except I do not know how to teleport players correctly, I'm mainly a builder. Code above.

3 comments

0

you gotta loop bro

0

looks like it came from the toolbox. jkjkjk. u can just take one from the toolbox

0

could u check the output? I just made a script a few days ago and i had character error.

1 answer

On lines 8 and 14, you spelt the first Positions wrong. They are written as Postion. Please fix them.

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