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!

7 comments

0

what is "inv"?

0

serverScript line 2 player.Inv is that a folder?

0

I guess he created a folder and called it 'Inv' for 'Inventory'

0

yes it is a folder 'Inv' is a folder in the player in short for 'Inventory'

0

then powerName isnt in inv

0

Use FindFirstChild() instead of trying to directly index it.

0

ok thanks u forgot about "FindFirstChild" thanks!