This LocalScript is supposed to wait until Loading is visible, open a Gui, then wait 10 seconds. If it is still visible (This is important!) Then it needs to make in invisible, and make results visible. It works perfectly in PlaySolo, but in-game doesn't work. Help please!!!
Here's the LocalScript
player = game.Players.LocalPlayer
gui = player.PlayerGui.ScreenGui
loading = script.Parent
results = gui.results
loading.Changed:connect(function(property)
local value = property
loading.worked.Visible = true
wait(5)
if loading.Visible == true then
wait(1)
loading.Visible = false
results.Visible = true
wait()
end
end)

2 comments
What is line 6 used for, and why is the identifier 'property' necessary? I do not any of those two used anywhere in the code, also, have you considered using the 'WaitForChild' method? [Parent:WaitForChild(Child)]
Actually, I have no idea what that is for lol. I got this script from somebody else and edited it, idk what it is for lol