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

On my output it says "attempt to index number with 'Value'" and I dont know what to do?

Asked by 3 years ago

Heres the script

timer = 10
repeat wait()
    configs.Status.Value = "Map vote: ".. timer

    wait(1)
    timer = timer - 1       

until timer == 0 configs.Status.Value = "..."

local map local highest = 0 for i, v in pairs(rStorage.Votes:GetChildren()) do if v:IsA("IntValue") then local curMap = maps:FindFirstChild(v.Name) if v.Value > highest.Value and curMap then map = curMap end end end

if map then configs.Status.Value = map.Name else map = maps:GetChildren()[1] configs.Status.Value = map.Name end wait(3)

wait() end

1 answer

Log in to vote
0
Answered by 3 years ago

Nvm I fixed it.

Ad

Answer this question