Hey. I know I had a similiar problem. But this is another one. I am trying to get Values from a Folder. I have a little script which should see if this Value exists. But now, I just get the error "Attempt to index a nil value. Line 134"
Script:
for i, user in ipairs(UserCount4) do
NumberD2 = 0
repeat
NumberD2 = NumberD2 + 1
FName = "User" .. NumberD2
wait(0.1)
--Line 134
until workspace.AllPlayer:FindFirstChild(FName).Value == not nil

4 comments
if nil then print("yes") else print("nah") end
What he said.
Works fine, thanks.
can i answer so i can get rep?