Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Teleportation to multiple parts not working?

Asked by 6 years ago

So I have this main script in ServerScriptService and lines 20 - 29 are not working. Any idea what the problem could be?

local repilcatedstorage = game:GetService('ReplicatedStorage') local status = repilcatedstorage:WaitForChild('InfoValue') local club = game.ServerStorage.club while true do

while game.Players.NumPlayers < 1 do status.Value = 'There needs to be 2 or more players to begin' repeat wait(2) until game.Players.NumPlayers >- 1 end for i = 30,0, - 1 do status.Value = 'Match starting in '..i wait(1) end end wait (30) local spawns = club.Spawns:GetChildren() for i, v in pairs(game.Players:GetPlayers()) do local name = v.Name local check = game.Workspace:FindFirstChild(name) local humanoid = check:FindFirstChild("Torso") if check then print ("check is working") else error "Torso not found" if humanoid then print ("teleport works") else error "humanoid not found" check:MoveTo(spawns[i].Position) status.Value = 'Teleporting...' wait(1)

game.StarterGui.Backflip.Frame.LocalScript.Disabled = false

end end end

0
why didn't it convert to the professional display of code? TheLionLiar 39 — 6y

Answer this question