Every time a character dies, the particle emitter is being removed, what should I do to keep the particle emitter in the character until it's unequiped by a player?
on = false
Player = game.Players.LocalPlayer
Cost = 1
Coins = Player.leaderstats.Coins
script.Parent.MouseButton1Click:connect(function()
if on == true then
script.Parent.Parent.Parent.Parent.Parent.Character.Torso.ParticleEmitter.Parent = nil
on = false
script.Parent.Text = "Disabled"
elseif on == false and Coins.Value >= Cost then
local e = script.ParticleEmitter:Clone()
e.Parent = script.Parent.Parent.Parent.Parent.Parent.Character.Torso
script.Parent.Text = "Enabled"
on = true
end
end)

7 comments
Works as before, still as you die, particle emitter turns off
OK i will try to make anything better
is it a local script or normal script?
It is local script and (if it matters) it's inside text button
Ok in your ScreenGui just make ResetOnSpawn Disabled and this script will work.
Oh... Sorry I thought I disabled it before... Thanks for your help
Thanks for accepting as answer :)