Why are the particles not emitting, I’ve done everything right, I think…(the code for the emitter is at the bottom of the script)
local rs = game:GetService("ReplicatedStorage")
local remote = rs.RemoteEvent
local player = game:GetService("Players")
remote.OnServerEvent:Connect(function(player, argz)
local char = player.Character
local hum = char:WaitForChild("Humanoid")
local humrp = char:FindFirstChild("HumanoidRootPart")
local parteffect = rs.Effects.Particlewow
local shock = rs.Effects["Particle shock"]
if "Skill" == argz then
local track = Instance.new("Animation")
track.AnimationId = "rbxassetid://17043149832"
local Anim = hum:LoadAnimation(track)
Anim:play()
task.wait(1)
local lighteffect = parteffect:Clone()
lighteffect.Parent = workspace
lighteffect.Anchored = true
lighteffect.Transparency = 1
lighteffect.CanCollide = false
lighteffect.CFrame = humrp.CFrame
lighteffect.Orientation = humrp.Orientation
lighteffect.Attachment.ParticleEmitter:Emit(100)
game.Debris:AddItem(lighteffect, 5)
local shockclone = shock:Clone()
shockclone.Parent = workspace
shockclone.Anchored = true
shockclone.Transparency = 1
shockclone.CanCollide = false
shockclone.CFrame = humrp.CFrame + Vector3.new(-10,0,0)
shockclone.Orientation = humrp.Orientation
shockclone.Attachment.ParticleEmitter:Emit(100)
game.Debris:AddItem(shockclone, 5)
end
end)