I am working on an intro script for a friend and I am trying to make it play only the first time you join. I looked up how Data Persistence works and found that you can use some methods to make it easier. I have done this exactly the way the tutorial suggested, and it hasn't worked.
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
local joined = player:LoadString("AlreadyCome")
if joined == nil then
--DoIntroStuff
At the end of the script I have got
player:SaveString("AlreadyCome", "I'veBeenBefore")
player.PlayerGui.NewGui.Exit.MouseButton1Down:connect(function(mouse)
player.PlayerGui.NewGui:remove()
After looking at it through test mode, I can see that Boolean value 'DataReady' doesn't turn to true. Please help.

2 comments
Is there an out put? If there is then please tell us.
You can't test DataPersistance in Play Solo, and I believe it's also no possible in Start Server, which is why DataReady turn true.