Hi Everyone,
Just got a question. How would I make a particle emitter enable when the player touches the checkpoint. And then I also wanted it to be destroyed after the player touches it. Please help me out here.
Hi Everyone,
Just got a question. How would I make a particle emitter enable when the player touches the checkpoint. And then I also wanted it to be destroyed after the player touches it. Please help me out here.
You can put a script inside the checkpoint and do something like this:
checkpoint.Touched:Connect(function()
ParticleEmitter.Enabled = true
wait(1)
ParticleEmitter:Destroy()
end)
local particle = script.Parent.ParticleEmitter
particle.Enabled = false
local db = false
script.Parent.Touched:Connect(function(plr)
local Player = game:GetService("Players"):GetPlayerFromCharacter(plr.Parent)
if Player then
if db == false then
db = true
ParticleEmitter.Enabled = true
wait(1.5)
ParticleEmitter:Destroy()
end
end
end)