My game is going to have several image pictures and I need to know, how do you check to see if an image is loading like for an image button etc. Is there anyway of doing this or is it impossible? I searched the internet and couldn't find anything of use, maybe you guys know how too.
Here's the loading script so far:
local DataStore = game:GetService("DataStoreService"):GetDataStore("Money") local Player = script.Parent.Parent.Parent local info = script.Parent.Info local loadinginfo = script.Parent.LoadingScreen.LoadingInfo info.Visible = false repeat wait() until game.Players[Player.Name].PlayerGui.MainScreen loadinginfo.Text = "Loading Player Stats" local PlayerKey = "user_" .. Player.userId --// Never use the player's name as a key. local money = game.Players[Player.Name].PlayerGui.MainScreen.Money money.Value = DataStore:GetAsync(PlayerKey) --// Retrieving the value of the saved key. wait(1) loadinginfo.Text = "Loading Images"
Well this answer might sound very obvious but you go to test than play solo or if that doesn't work check for the errors or something else that went wrong if that doesn't work than save your game on-line and play it and see if the GUI loaded. BUT if you wanted to output your answer than use if's for's and while's then print whatever you want to define. Because I'm only an intermediate Scripter.