local Players = game:GetService("Players")
local Player = game.Players:FindFirstChildWhichIsA("Player")
wait(5)
wait(5)
repeat wait() until Player.Endings.World.Value == 2 --Endings is a folder inside of player and world is a value inside of that folder
--rest of code
COMMUNITY QUESTION
Why does this say attempted to index nil with parent?
1 answer
Put wait(5) at the top of the code, i think your script runs before the players even are in the game and so it index nil.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
you don't reference a parent anywhere in these lines. can we see the rest of the script?