What is the bug appearing in my combat system that I can't get to work?
Hello! Right now I'm scripting a combo based fighting game but there seems to be a error when i look at Script Analysis. This is the error, Error:(118,8) Syntax error: Expected 'end' (to close 'then' at line 101), got <eof>;did you forget to close 'then' at line 113?
I don't think that I needed to add another end for the then part. Heres my code.
1 | Hitbox.Touched:Connect( function (Hit) |
2 | if Hit.Parent ~ = Player.Name then |
3 | local GetHum = Hit.Parent:FindFirstChild( "Humanoid" ) |