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

ILoading GUI isn't working?!?

Asked by 9 years ago

This is currently in a localscript. I want the Frame to pop up and the ImageLabel rotating. But the GUI altogether isn't showing. Please help!

local Load = script.Parent.Load
local Picture = script.Parent.ImageLabel
local PicRot = script.Parent.ImageLabel.Rotation
        wait(5)
        Load.Visible = true
        Picture.Visible = true
        PicRot = 0
        repeat
            PicRot = PicRot + 30
        until PicRot == 1800
        Load.Visible = false
        Picture.Visible = false

1 answer

Log in to vote
0
Answered by
lomo0987 250 Moderation Voter
9 years ago
local Load = script.Parent:WaitForChild("Load") -- Just makes it delay until it spawns in.
local Picture = script.Parent.ImageLabel
local PicRot = script.Parent.ImageLabel -- can't have it as a number.
        wait(5)
        Load.Visible = true
        Picture.Visible = true
        PicRot.Roation = 0
    for i = 1,60 do -- this should loop 60 times
    i = i + 1
    PicRot.Rotation = PicRot.Rotation + 30
    end
        Load.Visible = false
        Picture.Visible = false

this SHOULD be fixed and working. If it doesn't tell me the error from the output.

Ad

Answer this question