I have a loading screen that randomly chooses an image and text from a table. It then makes a loop until the whole assets are loaded.
local Text1 = "Did you know this game started as a dare?"
local Text2 = "Did you know Elon Musk's Home is Mars?"
local Text3 = "Only big brain people know the hidden message."
local Text4 = "This game was inspired by SpaceX!"
local Text5 = "There's a Starman Waiting in the sky ♫"
local Text6 = "Subscribe to Foxyth_Dev you big CHAD."
local Text7 = "ur wifi might be bad that's why."
local Text8 = "Assets finished loaded:" .. AmountLoaded
local TextTable = {Text1, Text2, Text3, Text4, Text5, Text6, Text7, Text8}
--Text^
local Images = {"rbxgameasset://Images/Finsihed Nouvant", "rbxgameasset://Images/YAYYYY", "rbxgameasset://Images/AtlasRoverMarkOne!", "rbxgameasset://Images/Drone atmospheric- Theourus mark II- sceneryincluded"}
--My Image ids^
local ImageBackground = script.Parent.BackgroundImage1
--My Image Background^
The looped code:
local RandomTextLoop = coroutine.wrap(function()
while LoadingAssetStatus == true do
TextEnter1:Play()
LoadingText2.Text = TextTable[math.random(1, 8)]
wait(3)
TextLeave1:Play()
wait()
TextEnter2:Play()
LoadingText1.Text = TextTable[math.random(1, 8)]
wait(3)
TextLeave2:Play()
wait()
end
end)
Now I want to make sure it won’t select the same thing again. I’ve tried looking here, but I can’t find the correct word. I’ve thought also of making another table where it’s named last selected
so I can move the one selected to my last selected table. I’m pretty confused. Help is greatly appreciated!
Edit: NOT SELECT