I want to make a particle emitter start emitting particles when you press left-click.
I clone a particle emitter from the replicatedstorage to the uppertorso. Then I want to destroy the particle emitter but it just says that Destroy is not a part of the particle emitter.
script
local Particle = game.ReplicatedStorage.ParticleEmitter
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character
uis.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local ToolValue = player.ToolValue.Value
player.leaderstats.Power.Value = player.leaderstats.Power.Value + ToolValue
local clonedParticle = Particle:Clone()
clonedParticle.Parent = character.UpperTorso
wait(1)
character.UpperTorso.ParticleEmitter:Destory()
end
end)
I’ve tried to change the “character.UpperTorso.ParticleEmitter:Destory()” to clonedParticle:Destory()