Answered by
6 years ago Edited 6 years ago
The reason for this is you do not have a system that is seeing if it is touching a player. So you part thinks that whatever it touches should be destroyed. A way to do this is finding the player and finding out if it exists. here is an example:
1 | script.Parent.Touched:Connect( function (touched) |
2 | local player = game:GetService( "Players" ):GetPlayerFromCharacter(touched.Parent) |
4 | script.Parent:Destroy() |
This script checks to see if a player touched the part before deleting.