Particles cannot immediately emit

I’m trying make a skill.It’s just shoot a part and emit particle.But i found particle cant immediateley emit.Only when i script “task.wait(1)” or wait more time it can be emitted.

local Hitbox = Instance.new("Part",game.Workspace)
			Hitbox.CFrame = CFrame.lookAt(Vector3.new(player.Character.HumanoidRootPart.Position.X,Hitbox.Position.Y,player.Character.HumanoidRootPart.Position.Z - 10),mhp)
			local p = script.SwordSkill1.Attachment.P:Clone()
			p.Parent = Hitbox
			p:Emit(2)
			Hitbox.Anchored = true
			task.wait()
			game.TweenService:Create(Hitbox,TweenInfo.new(0.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{CFrame = CFrame.lookAt(Vector3.new(player.Character.HumanoidRootPart.Position.X,Hitbox.Position.Y,player.Character.HumanoidRootPart.Position.Z - 10) + (mhp - Hitbox.Position).Unit * 25,mhp)}):Play()



i tried clone attachment,put the part under script…And some more ways.But i only can emit it after some seconds.

1 Like