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

How to get different values?

Asked by 4 years ago

I make a random obby script and i keep getting the same values and i don't know what to do....

here's my code:

    for i = 4,0,-1 do
        wait(1)
        local obbys = { workspace["Classroom 107"], workspace["Temple"], workspace["Skittle Speedway"]}
        local randomobby = obbys[math.random(#obbys)]
        local test = {workspace["Teleporters"].Door1.mapArea, workspace["Teleporters"].Door2.mapArea, workspace["Teleporters"].Door3.mapArea}
        local child = test[math.random(#test)]
        wait(1)
        child.Value = randomobby
    if i == 0 then
        break
    end
end
1
have you tried putting a 1 behind the #obbys and the #test firestarroblox123 440 — 4y
0
I'm so dumb , thank you! DragosGames 43 — 4y

Answer this question