This is not working. I understand it's repetitive, but I just learned how to do this and I cannot do it right no matter what I try. Can anyone help? Thank you!
game.Players.PlayerAdded:connect(function(plr) -- Put this script in workspace wait(3) print("Player Has Entered Server") -- Every time a player's entered this prints. plr:WaitForDataReady("StarterGui").INTRO.IS.Visible = true wait(3) plr:WaitForDataReady("StarterGui").INTRO.IS.Visible = false plr:WaitForDataReady("StarterGui").INTRO.QFA.Visible = true wait(3) plr:WaitForDataReady("StarterGui").INTRO.IS.Visible = true wait(3) plr:WaitForDataReady("StarterGui").INTRO.IS.Visible = false end)
The WaitForDataReady() function is for DataPersistence, which is a semi-outdated service for storing player data. This is not likely what you're trying to access. StarterGui is the service used for cloning GUIs into players when they join. If you want to edit a player's GUI after they have joined, you should edit the GUI in their PlayerGui. Here is the fixed code:
game.Players.PlayerAdded:connect(function(plr) -- Put this script in workspace wait(3) print("Player Has Entered Server") -- Every time a player's entered this prints. plr.PlayerGui.INTRO.IS.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = false plr.PlayerGui.INTRO.QFA.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = false end)
It's their PlayerGui, not StarterGui.
game.Players.PlayerAdded:connect(function(plr) -- Put this script in workspace wait(3) print("Player Has Entered Server") -- Every time a player's entered this prints. repeat wait() until plr:findFirstChild("PlayerGui") plr.PlayerGui.INTRO.IS.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = false plr.PlayerGui.INTRO.QFA.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = true wait(3) plr.PlayerGui.INTRO.IS.Visible = false end)