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

Could you please help me with the particle when touched?

Asked by 6 years ago

Seems like I can't find out how to make a part activate an particle when the player touches it and when he moves out of the part the particle's lifetime becomes 0 ( deactivates slowly ), can you help me with that? Thanks for reading.

1 answer

Log in to vote
0
Answered by 6 years ago

I'm just going to give you a simple Touched/TouchEnded code which triggers the particle emitter. You can easily figure out the rest.


local ParticleE = workspace.ParticleEmitter -- Pos. of Particle E. local TouchButton = workspace.TouchButton -- Touch button TouchButton.Touched:Connect(function() -- Enable the particle emitter ParticleE.Enabled = true end) TouchButton.TouchEnded:Connect(function() -- Disable the particle emitter ParticleE.Enabled = false end)

I'm not going to give you everything you ask for, sometimes you're better off learning how to do it on your own by searching around. Like I have.

0
Agreed, try learning by searching online. I started off scripting by creating my own admin script. If I didn't know how to script a command then I would find another admin script (in free models) that has the command and learn how they coded it. hellmatic 1523 — 6y
0
Thank you, I'm a bit new in developing. Plus I understand that you don't give the whole script once I assume you've been through some times learning how to script. Still thank you for the scripting part. SuperDiamondPlayer4 0 — 6y
Ad

Answer this question