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

Add "control" (frame) to ScrollingFrame?

Asked by 4 years ago

I have a module in StarterPlayerScripts, and I want to be able to add a frame into it. If any of you know C#, kind of like a FlowLayoutPanel. I currently have this code:

        if not(_isAttachedFile) then
            local emailControl = Instance.new(game:WaitForChild("ServerStorage"):WaitForChild("emailControls"):WaitForChild("emailNoAttachment"):Clone())
            emailControl.Visible = true
            emailControl.Text = emailTitle
            emailControl.Parent = game:WaitForChild("StarterGui"):WaitForChild("mainUI"):WaitForChild("emailFrame"):WaitForChild("emailFrame"):WaitForChild("emailView"):WaitForChild("emailLists") 
        end

Answer this question