I'm trying to make a tool that burns whatever bricks you click on. Currently returns " Workspace.Tool.Script:15: 'end' expected (to close 'function' at line 12) near 'else'"
function Burn(part)
print "burning part"
fire = Instance.new("Fire")
fire.parent = part
for burning=0,1, 0.1 do
wait(1)
part.Transparency = burning
end
part:Destroy()
end
function Button1Down(mouse)
setfireto = mouse.Target
if setfireto == nil then return end
else Burn(setfireto)
end
end

1 comment
The second problem in your code is that 'parent' on Line 4 is not capitalized - I think that fixes the problem.