Weird Scripting Error, please help!

Hello, i’m syncing the sounds for a weapon from “Fe gun kit”, but whenever I test it I’m getting this weird error, and I can’t find out what it is.



I’ve looked all over the developer hub, I can’t find out how to fix it.

What happens is that in line 937 you placed an else and apparently an end is missing after that or I don’t know, maybe you should review it better or you could show the line on the left so we could guide ourselves better and I could say where is the error

1 Like

Screenshot (261)

Here is a full screenshot of the code.

yeah you are missing an end) at line 937 - 939

You are doing this:

    TacticalReloadAnim:GetMarkerChangedSignal:Connect(function()
        Handle.SlideRelease:Play()
     -- there is no end? (Line 938 - 939)
else

It should be this:

    TacticalReloadAnim:GetMarkerChangedSignal:Connect(function()
        Handle.SlideRelease:Play()
    end) -- Line 939
else
1 Like

Well, that did work, but now there’s another error.


You arent closing Reload at the very end, so it should be this:

        if Variables.ActuallyEquipped and Module.AutoReload and not (Variables.Ammo > 0) and ...
            Reload()
        end
    end)
end -- End at 2338

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.