There were a couple problems:
1. You didn't add a "then" on the if part.Name line.
2. You did part.Name("Drill"), it should be part.Name == "Drill"
3. You did stone.Destroy, it should be stone:Destroy() with a colon.
4. The entire thing wouldn't work anyways because you didn't call the function with an event (stone.Touched:connect(OnCollide)). |