How would I position this effect in front of the player

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

So I am trying to face the effect part in front of the player with a random x,z positions.

  1. What is the issue? Include screenshots / videos if possible!

I got something very weird that I do not want. The thing that I want is this (763) [NEW] Akaza showcase on All Star Tower Defense | Roblox - YouTube (Go to 6:05). I got something like this:

and this
image. So in a certain rotation it displays correctly but otherwise it doesn’t. How would I get it to position in the front always no matter what position it is facing

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have tried this How to make a part spawn in front of a player - Help and Feedback / Scripting Support - DevForum | Roblox but it didn’t work.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local HRP = Character.HumanoidRootPart
local effects = {}
local randomNumber = math.random(1,5)
						
for i = 1, randomNumber do
	local effect = game.Workspace.AirPunch:Clone()
							
	effect.CFrame = HRP.CFrame * CFrame.new(Vector3.new(10, math.random(1,5), 10) * HRP.CFrame.lookVector)
	effect.Parent = workspace
	table.insert(effects, (#effects+1), effect) -- Insert into effects table
end
						
wait(5)
for i, v in pairs(effects) do
	v:Destroy()
end

Thanks,
Indelton

You should use ToWorldSpace, it will always place the part in front no matter what it’s orientation is.
Object and World Space (roblox.com)

local HRP = Character.HumanoidRootPart
local effects = {}
local randomNumber = math.random(1,5)
						
for i = 1, randomNumber do
	local effect = game.Workspace.AirPunch:Clone()
							
	effect.CFrame = HRP.CFrame:ToWorldSpace(CFrame.new(0, math.random(1,5), 0))
	effect.Parent = workspace
	table.insert(effects, (#effects+1), effect) -- Insert into effects table
end
						
wait(5)
for i, v in pairs(effects) do
	v:Destroy()
end

I’m no scripter but maybe make a raycast?

I got this when their faced in a opposite direction from the world.
image

And if their not I got what I want:
image

Here’s the code:

local Torso = Character.Torso
local effects = {}
local randomNumber = math.random(1,5)
						
for i = 1, randomNumber do
	local effect = game.Workspace.AirPunch:Clone()
							
	effect.CFrame = Torso.CFrame:ToWorldSpace(CFrame.new(math.random(1,10),math.random(1,5), math.random(1,10)))
	effect.Parent = workspace
	table.insert(effects, (#effects+1), effect) -- Insert into effects table
end
						
wait(5)
for i, v in pairs(effects) do
	v:Destroy()
end

Never mind it works. It was because of another script that tweened it