#ImageLabel not showing up in SurfaceGui

1 messages · Page 1 of 1 (latest)

sinful lodge
#

oops wrong pic

#

heres the code

warped fable
#

is that made in roblox UI?

sinful lodge
warped fable
#

thats cool bro

#

whats it meant to do

#

the imagelabel

sinful lodge
#

you have to click the the buttons on the left that correspond to the color on the right

#

which spawn every 3-5 seconds

#

if there are more than 7 of them you lose

warped fable
#

send full script here

#

not ss please

sinful lodge
#
    -- variables
    local rs = game:GetService("RunService")
    local rannum = math.random(3,5)
    local rannumseed = math.random(1,1000000)
    local colorlist = {Color3.fromRGB(37, 14, 130), Color3.fromRGB(130, 1, 3), Color3.fromRGB(47, 130, 29)}
    local color = workspace.Color:Clone()
    local colorgui = workspace.NOS:WaitForChild("MonitorScreen").ColorGui
    local surfacegui = workspace.NOS.MonitorScreen.SurfaceGui
    local coloramnt = 0
    --the actual ai
    print(rannum)
    rs.RenderStepped:Connect(function(deltatime)
        rannum -= deltatime
        if rannum <= 0 then
            math.randomseed(os.time())
            rannum = math.random(3,5)
            print(rannum)
            color.ImageColor3 = colorlist[math.random(1,3)]
            color.Parent = colorgui
            color.Name = "Color"..tostring(coloramnt)
            coloramnt += 1
            if coloramnt >= 1 then
                local xoffset = 112-4*coloramnt
                color = color:Clone()
                color.Position = UDim2.new(0,xoffset,0,18)
            end
            if coloramnt >= 7 then
            end
        end
    end)
end
MontiorAi()
warped fable
#

math.randomseed(os.time())
rannum = math.random(3,5)

#

set the seed outside rs.renderstepped

#

also workspace.Color:Clone()???

#

shouldnt you be cloning a frame or imagelabel from replicatedstorage?

#

also it isnt parented to anything

#

newColor.Parent = xxx

#

set that

sinful lodge
warped fable
#

its not the cause of the issue, just something to improve QoL