Rotation of projectile displacement

I am trying to find projectile displacement and then rotate it around a point,
My problem is that I can’t find a solution for the z / x-axis

These are my angles they are in cosine and sin and multiplied by velocity to simplify my function

local v0 = {velo*math.cos(math.rad(45)),velo*math.sin(math.rad(45)),math.rad(90)}

This is my function that uses these angles to find displacement

local function displacement(v0,grav,t,velo)
--velo is 120
--t is 𝑥
	local answer = nil
	local xb = v0[1]*t + v0[3] 
	local yb = (v0[2]*t) - ((1/2)*grav)*t^2 + (v0[3]*t)
	local zb = v0[3]
	print(zb)
	answer = {xb,yb,zb}
	return answer
end

This is the base

local dis = displacement(v0,a[2],t,velo)
local part = Instance.new("Part")
part.Anchored = true
part.CanCollide = false
part.Size = Vector3.new(1.1,1.1,1.1)
part.Material = Enum.Material.Neon
part.Position = Vector3.new(dis[1]+org.X,dis[2]+org.Y,org.Z+ dis[3])
part.Parent = workspace

This just moves my entire function instead of rotating it around a point so im not sure what I need to do