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

Could you please help me with the particle when touched?

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

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.

2 comments

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.

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.

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