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

How to script ParticleEmitters on Touch? [closed]

Asked by 7 years ago

I've heard it's scriptable for Particles from particle emitters to be touched. What I'm trying to do is for each particle that's touched, it damages the humanoid (hit.Parent.Humanoid). Anyone know how to do it?

0
The API page doesn't show any events or functions related to what you are trying to accomplish. Therefore, your rumor about it being touchable could be false. User#18043 95 — 7y
0
ParticleEmitters do not have a touch event. XAXA 1569 — 7y
0
They said you can get the properties of particle emitters and then a radius.. DeathGunner132 120 — 7y
0
I know there's a way to script particles on touch but it doesnt really need to involve the event. DeathGunner132 120 — 7y
0
i already scripted all that.... greatneil80 2647 — 7y

Closed as Not Constructive by Void_Frost, PyccknnXakep, 2eggnog, and Thetacah

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?

1 answer

Log in to vote
0
Answered by 7 years ago

I guess what you could do is place a part at where the particles reach, change it's Transparency to 1, and then change CanCollide to false. Then put this script in the brick.

script.Parent.Touched:connect(function(hit)
          if hit.Parent:IsA('Model') and hit.Parent:FindFirstChild('Humanoid') then
             hit.Parent:FindFirstChild('Humanoid').Health = 0
    end
end
Ad