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

Tournament script error? [SIMPLE]

Asked by
Relatch 550 Moderation Voter
9 years ago
function ChooseDuelers()
    repeat wait() until game.Players.NumPlayers >=2
    for i = 20, 0, -1 do
        script.Lobby:Play()
        h = Instance.new("Hint",workspace)
        h.Text = "Round starting in: " ..i
        wait(1)
        h:Destroy()
    end
    local Players=Game.Players:GetPlayers() 
    local Chosen1, Chosen2 = math.random(1, #Players), 0
    repeat Chosen2 = math.random(1, #Players) until Chosen2 ~= Chosen1
    m = Instance.new("Message",workspace)
    m.Text = Players[Chosen1].Name.. " and " ..Players[Chosen2].Name.. " have been chosen!"
    wait(3)
    Players[Chosen1].Character:MoveTo(Vector3.new(-82.5, 0.59, 19))
    Players[Chosen2].Character:MoveTo(Vector3.new(-82.5, 0.59, -25))
    m.Text = "Duelers teleported, starting round."
    wait(3)
    m:Destroy()
    local chosen1 = game.Lighting.Chosen1:clone()
    chosen1.Parent = Players[Chosen1].Backpack
    local chosen2 = game.Lighting.Chosen2:clone()
    chosen2.Parent = Players[Chosen2].Backpack
    Players[Chosen1].Character.Humaniod.WalkSpeed = 0
    Players[Chosen2].Character.Humaniod.WalkSpeed = 0
    for i = 3, 0, -1 do
        m.Text = "Round starting in: " ..i
        wait(1)
    end
    for i = 30, 0, -1 do
        script.Lobby:Stop()
        script.Battle:Play()
        Players[Chosen1].Character.Humaniod.WalkSpeed = 16
        Players[Chosen2].Character.Humaniod.WalkSpeed = 16
        h = Instance.new("Hint",workspace)
        h.Text = "New round in: " ..i
        wait(1)
        h:Destroy()
        script.Battle:Stop()
    end
end

ChooseDuelers()

I got an error: Humaniod is not a valid member of Model Script 'Workspace.Script', Line 25 - global ChooseDuelers Script 'Workspace.Script', Line 44

1 answer

Log in to vote
1
Answered by
Merely 2122 Moderation Voter Community Moderator
9 years ago

You made a typo. It should be "Humanoid" instead of "Humaniod"

Ad

Answer this question