Basically, I'm trying to make an object disappear when it touches a certain part. Whenever it touches it, it doesn't work. I used a print script to see if there's an error. However, my script prints out the error message but roblox doesn't. How do I get this to destroy?
Script:
script.Parent.Yummy.Touched:Connect(function(eaten) if eaten.Parent.Name == "Eat" then script.Parent:Destroy() else print("error!") end end)
You need a destroy the script