The thing is I've made a streetlight script I tried two times the first I put the end in another line the other try I put end somewhere else and it worked so yeah
as long as you have the right amount of ends, and end)
isnt mixed up with end
. For example:
bleh = true script.Parent.Touched:connect(function(hit) hit:Destroy() if bleh = true then bleh = false end) end
this would return an error, because end)
and end
are swapped.