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

Why does this return an interval error?

Asked by 8 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
if game:service'Players'.localPlayer.Character:FindFirstChild'Torso' then
            for i,v in pairs(workspace:WaitForChild("Training"):WaitForChild("spawns"):children()) do
                table.insert(spawns,v)
            end
            local SpawnTo = RandomFromTable(spawns)
            game:service'Players'.LocalPlayer.Character.Torso.CFrame=SpawnTo.CFrame
        else print'did not find torso!'end
        game.Players.LocalPlayer.TeamColor = BrickColor.new("Bright orange")
        script:WaitForChild("Training").Value = true
        GetClass(game.Players.LocalPlayer,script.Parent.Parent.ClassPicked.Value)
        wait(1)
        enabled = true

I don't know why it's doing this, I've tried printing the spawns but it doesn't give me any output. Can anybody help?

1
Give more info. Tell us things like where the error is, where the script is, what the script is. Also I sense somebody being a skiddie here because there's at least one deprecated thing there. User#6546 35 — 8y

Answer this question