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
COMMUNITY QUESTION
Does the placement of "end" affect your script?
1 answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Just be careful that it doen't get confusing. <->