I have a script that checks that if a shirt exists in my player character and then removes it but it always says that 'Shirt is not a valid member of Model "Workspace.EiOooAxea" '
Code:
if not char.Shirt then
else
char.Shirt:Destroy()
end
I have a script that checks that if a shirt exists in my player character and then removes it but it always says that 'Shirt is not a valid member of Model "Workspace.EiOooAxea" '
Code:
if not char.Shirt then
else
char.Shirt:Destroy()
end
Use FindFirstChild()
if not char:FindFirstChild("Shirt") then
else
char.Shirt:Destroy()
end
This discussion is preserved as it was. New answers, comments, and votes are closed.