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

Why is brick not being removed?

I'm learning to script through a tutorial but this simple script will not work in solo mode.

function touch()
	scripts.Parent:remove()
end

script.Parent.Touched:connect(touch)

Output: Disconnected event because of exception

1 answer

function touch()
    script.Parent:remove() --there was an s in the word "script" (scriptS)
end

script.Parent.Touched:connect(touch)

Also I don't think you should be learning scripting through a tutorial. Tutorials make you memorize functions and stuff, making it hard. But if you learn by looking at scripts in free models and changing them to fit your need, you'll learn scripting actually probably in the same time if you did a tutorial, because like I said, a tutorial is hard to follow and memorize, but what I did (learning by looking at scripts in free models and changing them to fit your need), it's the same amount of time, and it's easy!

This discussion is preserved as it was. New answers, comments, and votes are closed.