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

What's wrong with my sword script?

Asked by 10 years ago

There is a little part in my script and there is a really dumb error that isn't making my sword

01tool.Activated:connect(function()
02    local clickdelta = tick() - lastclick
03    if clickdelta > swingtime  then
04        lastclick = tick()
05        hithumanoids = {}
06        if clickdelta < swingtime + conbowindow then
07            combo = (combo + 1) % 3
08        else
09            combo = 0
10        end
11        if player then
12            if combo == 0 then
13                event:FireClient(player, "RunAnimation", "SlashAnim2")
14                slashsound:Play()
15            elseif combo == 1 then
View all 25 lines...

Error: ')' expected (to close '(' at line 33 near 'end')*

*33 was supposed to be the start of the code.

1 answer

Log in to vote
0
Answered by 10 years ago

Change

1             end
2            end
3        end
4    end)
5end)

to

1             end
2            end
3        end
4    end
5end)

You had one too many ')'s.

0
Still doesn't work. It still has a error thing under the last. FancyFame 15 — 10y
Ad

Answer this question