Halo script problem

  1. What do you want to achieve?
    To make a functional halo.

  2. What is the issue? Include screenshots / videos if possible!
    https://gyazo.com/884ed0e2d44a15608f8ea0f4d7f46b8e
    The halo is in a wrong angle and im confused.

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

Script:

local NHalo = script.Parent
local Number = 1
local cf = CFrame.new
local cfa = CFrame.Angles



game:GetService("RunService").Stepped:Connect(function(t)
	local tpi=t%math.pi
	local AP=cf(0,-1.5+math.sin(tpi)/8,0)*cfa(0,tpi,0)
	NHalo.AttachmentForward = NHalo.AttachmentForward + Vector3.new(1,0,0)
	NHalo.AttachmentPos = Vector3.new(0,0,-1)	
	NHalo.AttachmentPoint = AP
	end)

Have you tried adding 90 degrees to the values in cfa(0,tpi,0)

Yes this is the result

https://gyazo.com/19947c005bbb2133895a587e136d13d0

Since the halo is round why are you spinning it with the angle cfa(0,tpi,0)?
I’d think you just want it to bob up and down with AP=cf(0,-1.5+math.sin(tpi)/8,0) then put the cfa(0,0,90) without the variable or whatever works to rotate the mesh 90 degrees.