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

0

Im sorry the script looks messy

0

Maybe try editing this and put the Lua code in highlighted? :)

0

^ It will make it a lot clearer for us to see what the problem is!

0

thanks for the tip im new to this site i dont know how it all works