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

[REPOST] Vote gui not appearing correctly?

Asked by 4 years ago
Edited 4 years ago

So I have a menu that's supposed to pop up and the players can click on a player to vote to eliminate them. It kinda worked before, but I changed it because it started from the bottom up. I'm trying to get it to go from the top down. Here's the script ``` local pplforgui = game.Players:GetPlayers() for a, b in pairs(pplforgui) do

local votegui = game.ServerStorage.VoteGui:Clone()
votegui.Parent = b.PlayerGui

local people = #pplforgui
local counter = 0
for c, d in pairs(votegui.Buttons:GetChildren()) do
    counter = counter + 1   
    if counter <= people then
        if d.Name == ("Person" .. counter) then
            local personforbox = pplforgui[counter]
            d.ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..personforbox.Name
            d.TextLabel.Text = personforbox.Name
        end
    else
        d.Visible = false   
    end
end

end ``` Here's the explorer for the gui https://imgur.com/KODMjWU

If any more info is required, I'll try to supply it. *I do not get an output, and here is the result of my own script. https://imgur.com/oUFjLYV. Here is the intended result https://imgur.com/IIEYwEk.

0
The output of your script is not what you're saying. Can you try and be more descriptive? What do you mean by 'from the top down'? Also, how is the gui not 'appearing correctly' - What are you trying to accomplish? pidgey 548 — 4y
0
I edited the question DaBrainlessOne 129 — 4y
0
You're trying to have it appear above the screen then come down onto the player's screen? superawesome113 112 — 4y
0
No I just want a list of all the players that goes from top to bottom... DaBrainlessOne 129 — 4y

Answer this question