Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Does the placement of "end" affect your script?

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

1 comment

0

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

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.