Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

touched script not working?

Asked by 9 years ago

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?

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

Answer this question