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
01 | local Tool = script.Parent |
04 | local event = Tool:WaitForChild( "RemoteEvent" ) |
08 | event.OnClientEvent:connect( function (...) |
10 | local anim = Tool:FindFirstChild(tuple [ 2 ] ) |
11 | if anim and humanoid then |
12 | local loadedanim = humanoid:LoadAnimation(anim) |
16 | themouse.Icon = "rbxasset;//textures\\GunWaitCursor.png" |
18 | themouse.Icon = "rbxasset;//textures\\GunCursor.png" |
24 | Tool.Equiped:connect( function (mouse) |
26 | humanoid = Tool.Parent:FindFirstChild( "Humanoid" ) |
28 | local anim = Tool:FindFirstChild( "IdleAnim3" ) |
29 | if anim and humanoid then |
30 | if loadedidleanim then |
33 | loadedIdleanim = humanoid:LoadAnimation(anim) |
34 | if loadedIdleanim then |
40 | themouse.Icon = "rbxasset;//textures\\GunCursor.png" |
44 | Tool.Unequipped:connect( function () |
45 | if loadedIdleanim then |