my current code
clonedWeapon.CFrame = CFrame.new(gatePosition)
clonedWeapon.CFrame = CFrame.lookAt(gatePosition, mousehit)
I’m trying to make it so that the end of the model is right in front of the portal
my current code
clonedWeapon.CFrame = CFrame.new(gatePosition)
clonedWeapon.CFrame = CFrame.lookAt(gatePosition, mousehit)
I’m trying to make it so that the end of the model is right in front of the portal
I’m confused what the problem is? It seems in the second image this is fixed.
In case the code is resulting in the first image just multiply your weapons CFrame by
CFrame.Angles(math.rad(90),0,0)
IMPORTANT NOTE: Test each Vector Rotation, me putting the 90 degree rotation in the X vector is just a completely random guess.