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
try to use WaitForChild instead of FindFirstChild and see if anything changes