Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

It errors and says: Expected 'then' got '=' Help?

if script.Parent.Parent.Parent.Parent.Character.Humaniod.Health = 100 end

1 answer

✓ Accepted answer

You misspelled 'Humanoid', you used one = instead of the == that you should use when checking equality, and forgot a 'then'.

if script.Parent.Parent.Parent.Parent.Character.Humanoid.Health == 100 then 
	--// Do stuff
end

Hope this helped.

1 comment

0

It helped me, thanks :)

This discussion is preserved as it was. New answers, comments, and votes are closed.