Answered by
8 years ago Edited 8 years ago
This is simple,
Let's start with the Touched Event
,
1 | script.Parent.Touched:connect( function (part) |
I'm using anonymous functions.
The touched event returns the part that touched whatever it's detecting.
Let's get the parent and look for a force field in the parent,
2 | script.Parent.Touched:connect( function (part) |
3 | if part.Parent:FindFirstChild( "ForceField" ) then |
Here's a link to a gif of what the Force Field looks like inside of the character,
Now that we know the Force Field exists, let's delete it,
2 | script.Parent.Touched:connect( function (part) |
3 | if part.Parent:FindFirstChild( "ForceField" ) then |
4 | part.Parent:FindFirstChild( "ForceField" ):Destroy() |
And that's about all!
I Hope I Helped!
Good Luck!
If I did help, please don't forget to accept this answer! It helps a lot.
Closed as Not Constructive by M39a9am3R
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?