New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Add "control" (frame) to ScrollingFrame?

Asked by 11 days 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