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

im getting an error "expected end to close function at line 8 got eof" what am i doing wrong?

Asked by 5 years ago
Edited 5 years ago

here is my code If you know what im doing wrong please tell me

01local Tool = script.Parent
02 
03 
04local event = Tool:WaitForChild("RemoteEvent")
05 
06 
07 
08event.OnClientEvent:connect(function(...)
09    local tuple = {...}
10       local anim = Tool:FindFirstChild(tuple[2])
11        if anim and humanoid then
12        local loadedanim = humanoid:LoadAnimation(anim)
13        if loadedanim then
14            loadedanim:Play()
15            if themouse then
View all 48 lines...

2 answers

Log in to vote
0
Answered by 5 years ago

You're missing a end) at line 22

0
Thank you so much! Skinnygrowler 6 — 5y
Ad
Log in to vote
1
Answered by 5 years ago

You're missing a lot of ends there buddy. For every if you need an end, and for every connect(function() you need an end).

0
He's not really missing that many ends if you count them, they're just really odly placed, not like normal format PureLiteStudio 80 — 5y

Answer this question