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
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.