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 ;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.

			Hitbox.Touched:Connect(function(Hit)
				if Hit.Parent ~= Player.Name then
					local GetHum = Hit.Parent:FindFirstChild("Humanoid")
					if GetHum then
						Folder:Destroy()
						GetHum:TakeDamage(12)
					end
				end
			end)

2 comments

0

What line is like 113? And what line is line 101?

0

if GetHum then is line 113 and 101 is elseif Combo == 4 then which I probably shouldve included in my question