I’m trying to create a self check-in system for my airline. When the game starts it is gonna create frames of selectable classes based on a number i set in a module script. So if I set 6 in the module script it would create 6 of this frame. (I already have the code to create the frame) All I need is to have a loop for creating all these frames.
I currently have no code associated to this as I have no clue on how to do this. A simple script that loops through a number and creates frames according to that number. If possible also set a different name for each frame. So one is named “1” the second “2” and so on… Any help is appreciated!
You could name each of those frames in ‘1’, ‘2’, etc… or in unique names you choose.
Make sure you dont have any other thing named the same as them, before you clone/put them in the UI
And you can clone the gui for 6 times, but make sure when it has 6 of that, break/stop the loop/function.
Another issue.
I’m trying to get a text label to say the name of the class from the module script. But this doesnt seem to work. Since they are named as “Class1Name” that would replicate to the first frame. But how would I do this? Do I have to change the name in Module or?
You could trigger the proximity with the player as the parameter, and then, you can clone the image/button/frame into a Player Gui’s list, notice : because it’s on the server, everyone technically would be able to see his frame that has been added into his gui.
Players.AviaTeamm.PlayerGui.SCI.MainFrame.CheckInFrame.AttributeFrame.ClassFrames.5.ClassClient:14: attempt to index nil with ‘5’ It does this to everyone of the frames ‘1’ ‘2’ ‘3’