Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this say attempted to index nil with parent?

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

1 comment

0

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

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.