Hello! I am creating an avatar editor system! I would like to make it so there is a module script and it contains all of the items. Next to each item would be its properties such as the price the person who created it and its category, etc! It would then get all of the items from the module and clone a GUI frame for each item and change the things depending on what it says. However, I am unsure how to do this? Can I get support on how to do this!?? Thanks!
Here is a screenshot of a stream I watched that inspired this technique!
Well you could use a UIGrid object and a UIRatioAspect object to make the guis line up. To clone a gui for every item you could loop through that table like so:
for i,v in pairs(hats) do -- loops through the table
local hat = hats[v]
local newgui = gui:Clone() -- make sure to say what the gui is. This is cloning the gui.
newgui.Parent = -- wherever you want it to go
newgui.Title.Text = hat
newgui.Price.Text = hat.Price
newgui.Rarity.Text = hat.Rarity
end
If your trying to access ServerScriptService from a Local script unfortunately that is not possible, Only ServerScriptService can be accessed by a script.
Getting a module via serverscriptservice will print an error because the serverscriptservice can only be accessed by the server (scripts) and not by the client (local scripts). You should use a server side script.
Hmm. I’m not the best with camera’s and all but I don’t think you have to create a camera. It most likely is because of your math. Maybe try: camera.CameraSubject = cam