Running into this issue while trying to get a building script I’ve been working on functioning properly
CFrame the camera’s set to: CFrame.new(0, 59, -6, -1, 0, 0, 0, 0, 1, 0, 1, -0)
And the means of moving the object:
CurrentPart:PivotTo(CFrame.new(math.round(MousePoint.X),2.75,math.round(MousePoint.Z)) * CFrame.Angles(0,math.rad(CURRENT_DEGREE),0))
The building works perfectly fine when the camera isn’t being manipulated
switch z and x, probably a translation error
ssurakkuu
(ssurakkuu)
July 26, 2023, 10:10pm
#3
Either that or just make the X and Y into negative values, as it seems the part is just going in the opposite directions of your mouse movements.
Nah, it seems more likely to be mismatched values. The asset moves perpendicular to the mouse.
ssurakkuu
(ssurakkuu)
July 26, 2023, 10:14pm
#5
After rewatching it I seem what you mean, moving mouse up and the part goes the left, mb
Even after changing the values, distance remains between the object and mouse, and I’m assuming it’s something to do with the camera being moved because the building works perfectly fine when the camera isn’t manipulated.
Possibly, are you using raycasting or another method?
Originally was using Mouse.Hit, then I switched over to RayCasting and received the same results