This is my script
function ono(hit) if hit.Parent.Name == "Workspace" then game.Workspace.a:Destroy()
end
end
script.Parent.uwowt.Touched:connect(ono)
I have gone throught it countless times, i think the problem is that i used another script to create the part "uwowt", so the part "uwowt" wasn't made at the start, only when another script made it, but is there anything wrong on the script that might be the problem?

4 comments
Im sorry the script looks messy
Maybe try editing this and put the Lua code in highlighted? :)
^ It will make it a lot clearer for us to see what the problem is!
thanks for the tip im new to this site i dont know how it all works