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

Unexpected Symbol Error?

Asked by 9 years ago

****EDIT:**** I solved this particular error myself.

I'm getting an unexpected symbol error with this script that I can't pinpoint the cause of:

01local tool = script.Parent
02local user
03local IgnoreList = {"Handle", "Hat"}
04 
05 
06tool.Equipped:connect(function(mouse)
07 
08   user = tool.Parent
09 
10 
11   mouse.Button1Down:connect(function()
12 
13      local ray = Ray.new(tool.AimPart.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
14      local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, user)
15 
View all 46 lines...

According to the output log, the problem occurs at line 45. How do I fix this?

Answer this question