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

script isn't finding the path even if it exists?

I know this has happened to people before, this always makes me stop developing because of its annoyance...

local p = script.Parent.Parent.Parent.Parent.Parent
local pn = p.Name
local f = game.ServerStorage.PlayerData:FindFirstChild('Store'):FindFirstChild(pn)
if f.Setting1.Value == true then
	--script

I always get an error of something like

attempt to index upvalue 'f' (a nil value)

1 comment

0

try to use WaitForChild instead of FindFirstChild and see if anything changes

1 answer

"try to use WaitForChild instead of FindFirstChild and see if anything changes"

Credit: mybituploads

This discussion is preserved as it was. New answers, comments, and votes are closed.