Positioning does not work when I'm standing at a higher plane

  1. I would like to make it so the model spawns beneath you

  2. The model does spawn beneath my character and works exactly as I wanted, however, if I stand on a higher piece of land, for example, a wall, it spawns above me.

  3. I have tried turning can collide off for all parts, still same issue, I believe it may be a code error but the code is so simple I don’t see that happening, code is below

local da  = game:GetService("ReplicatedStorage").Magic.ROCKULT:Clone()
			local offset = Vector3.new(0,-20,0)
			da:MoveTo(plr.Character.HumanoidRootPart.CFrame * offset)

Have you tried just using CFrame?

local offset = CFrame.new(0,-20,0)
da:MoveTo(plr.Character.HumanoidRootPart.CFrame * offset)

Or Simply Vector3?

local offset = Vector3.new(0,20,0)
da:MoveTo(plr.Character.HumanoidRootPart.Position - offset)

the item being moved is a model, therefore CFrame does not work, i also tried the other solution you sent with vector3 but it also does not work

if its a Model and you would Like to use CFrame

da.PivotTo(plr.Character.HumanoidRootPart.CFrame * offset)

works, however orientation of the model is now upside down, do you know how to fix this?

da.PivotTo(plr.Character.HumanoidRootPart.CFrame * offset * CFrame.Angles(0, 0, math.rad(180)))

That code is a bit too long, just multiply the CFrame by CFrame.Angles(0, 0, math.rad(180))

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.