so i am trying to make a sword do no damage when it hits a shield:
while true do
if script.Parent.Handle.CFrame == game.Workspace:FindFirstChild(Shield).VariantShield.detect.CFrame then
damage = 0
slash_damage = 0
lunge_damage = 0
wait(1)
end
end``
does findfirstchild look for something in workspace called 'Shield'
the issue comes with this:
19:45:48.166 - Argument 1 missing or nil
kinda new to scripting so if u can please help thanks

1 comment
You're trying to find something NAMED Shield, therefore, Shield should be in quotes like this: "Shield"