#Adding to window from server plugin

1 messages · Page 1 of 1 (latest)

mental ivy
#

Hi all, I was just wondering how I could add an element to a window from a server plugin

When I try this it gives me the error below

local window =
    Remote.MakeGui(
    plr,
    "Window",
    {
        Name = "UniformList",
        Title = "Uniforms",
        Icon = server.MatIcons["Menu"],
        Size = {270, 300},
        MinSize = {150, 100},
        Content = children,
        Ready = true
    }
)

window:Add(
    "ImageLabel",
    {
        Image = "rbxassetid://531490964"
    }
)

white badger
mental ivy
white badger
#

I think someone found a good way to do it

#

i can help ya when i get home

mental ivy
#

ty

sleek flint
#

Yeah, there’s definitely a way to do that from the server. I remember having done so in the past.

white badger
#

MakeGui doesn't return the UI back to the server

#

so i dont think thats possible 🙂

#

even if it did that wouldnt really

sleek flint
white badger
#

o

#

interesting

#

so you can literally add to it and it will just work

#

im not sure how because it uses some weird wrapping thing on client

#

that def wont work on astra anymore

sleek flint
#

I think so, I’ve done it before with a YesNoPrompt I seem to recall.

sleek flint
winter sparrow
#

MakeGui isn't a returning function.

mental ivy
#

i’ve tried that, iirc that just returns the user’s response

#

but I found a solution in another thread that involved using a client plugin to clone into the theme