script.Parent.Touched:connect(function(m)
if m.name == "Sand" then
m:Destroy()
end
end)
I have put this script inside of a part, and basically it's function is that if the brick "Sand" touches it, that "Sand" brick gets destroyed. However it does not seem to be working even after I've tried to mess around with it, and the developer console gives me no feedback on any errors. Could anyone help me understand the problem?

4 comments
CAPITALS m.Name :P
Also capital C for Connect but technically it'll still work without it
i have never seen anyone use a capital C for connect
^ Probably because the scripts you see are old/people are just used to :connect more. It’s recommended to use :Connect() as :connect() is deprecated.