Hello. I created a drawing game, and I made an option to share drawings.
As long as the drawing has more frames, it takes a lot more time to create the data table of the drawing.
Each frame has it’s own information table inside that table: Size, Color and Position that are saved.
In the average drawing there would be approximately 5000 frames.
What is the best way of doing this preventing significant delay on sharing the drawing as the for loop that I use is yields firing the remote event (reaching 4-7 seconds or more)?
3 Likes
The only way I could think of is two options:
-
When they draw a frame add it to the table that you are going to send, and when they delete a frame delete it from the table. That way the table should be fully loaded when they are done.
-
Do you mean saving to a datastore or saving it so you can share it with other players. If you want to save it with other players then couldn’t you just clone the main frame and parent that frame to their ShareGui.
2 Likes
Can you post your code? It’s easier to help if we understand how you’re doing things
Thank you both for helping!
1 Like