Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is the bug appearing in my combat system that I can't get to work?

Asked by 3 years ago

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.

            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)
0
What line is like 113? And what line is line 101? co_existance 141 — 3y
0
if GetHum then is line 113 and 101 is elseif Combo == 4 then which I probably shouldve included in my question PrestonsWeekends 20 — 3y

Answer this question