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

Cant seem to get them to position one after another?

Asked by 9 years ago

Basicly what i want to do is position each text label one after another lol

local banned 
local http = game:GetService("HttpService")
local url = "https://titanpad.com/ep/pad/export/2dZNsWuTIm/latest?format=txt"
local ret = http:GetAsync(url,true)
banned = http:JSONDecode(ret)

function update()
    banned = http:JSONDecode(ret)
    for i,v in pairs(script.Parent:GetChildren()) do
        if v.Name == "TextLabel" then
            v:Destroy()
        end
    end
    for i,v in pairs(banned) do
        lol = Instance.new("TextLabel",script.Parent)
        lol.Text = v
        lol.BackgroundTransparency = 1
        lol.TextScaled = true
        lol.Size = UDim2.new(1,0,.05,0)
        lol.Position = script.Parent.qq.Position + UDim2.new(0,0,0.05,0) -- I think this is the problem :l
    end
end

while wait(5) do
    update()
end

Answer this question