How to make a ParticleEmitter stop when the player touches the part

Hi! So, I am basically making a game which includes some checkpoints/stages. I have added a ParticleEmitter to the checkpoint part which works perfectly fine. However, I am stuck on how to make a script that will turn of the ParticleEmitter off when the player touches the part. I have searched all over DevForum but none of them work.

This is the simple video to show you particle effect on the checkpoint part:
robloxapp-20210112-1118078.wmv (1.6 MB)

This is where it is located, simply a part with a ParticleEmitter in it:

image

So basically, my aim is to make a script that will make the ParticleEmitter stop when the player touches the part (Stage 1 Part in the image above).

Any help would be really appreciated, thanks a lot
DannyGT7

Use Touched Event.
When a player touches the part, it destroys the ParticleEmitter.

Yeah, just use a touched event

local particle = Path_To_ParticleEmiter

script.Parent.Touched:Connect(function(hit)
	local player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if player then
		particle.Enabled = false -- just disable it
	end
end)
1 Like

Using an Instance.Touched event will work.

local ParticleEmitter = workspace:WaitForChild("Stage 1 Part").ParticleEmitter

script.Parent.Touched:Connect(function(hit) - Opens the .Touched function.
	local Player = game.Players:GetPlayerFromCharacter(hit.Parent) -- Retrieves the player when the character touches the part.
	if Player then -- If the player has touched the part then.
		ParticleEmitter .Enabled = false -- Disable the emitter.
	end
end)