Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to script ParticleEmitters on Touch?

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?

5 comments

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.

0

ParticleEmitters do not have a touch event.

0

They said you can get the properties of particle emitters and then a radius..

0

I know there's a way to script particles on touch but it doesnt really need to involve the event.

0

i already scripted all that....

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.