so im making this thing where the server detects if you have a certain thing serverScript:
if player.Inv.powerName then
print("YEs")
else
print("SIKE")
end
end
Thanks!
Probelem: i forgot about "FindFirstChild("") thats all!
so im making this thing where the server detects if you have a certain thing serverScript:
if player.Inv.powerName then
print("YEs")
else
print("SIKE")
end
end
Thanks!
Probelem: i forgot about "FindFirstChild("") thats all!
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
what is "inv"?
serverScript line 2 player.Inv is that a folder?
I guess he created a folder and called it 'Inv' for 'Inventory'
yes it is a folder 'Inv' is a folder in the player in short for 'Inventory'
then powerName isnt in inv
Use FindFirstChild() instead of trying to directly index it.
ok thanks u forgot about "FindFirstChild" thanks!