Script and explorer discrepancy

I have a script that prints the children of a part that outputs this:
image
script:
image

however, the actual part contains 2 more objects that the script does not print (cup and liquid):
image
image

1 Like

That script would not make that error though.

This kind of error almost always happens because of something that was changed on the client but not replicated to the server. Check the Server view to make sure it is identical. It can also happen when using FindFirstChild while something is loading, try replacing this call with WaitForChild

2 Likes

In the first place, this does not have logic. In the second place, it is an if condition, therefore it does not affect the find first child. Also, what if you make a table and then insert the names of the children and then print the table, see, I don’t know, what would work?

I only have 1 server script changing things, and the functions within the script run on a proximity prompt (which occurs like 5 seconds after the game runs) so i don’t think loading is an issue

asi:

local tabla = {}
table.insert(tabla,v)
print(tabla)

that would overcomplicate things; im just trying to have the script find the parts within a part

Did you just see that the script is a bit longer or is it just me?
but in that case check the rest of the script or click on the output error because a print error that I remember is not like that

the error is from a function that requires the liquid part

The error comes from a function which calls for water.fill