So, I have a Motor6d which is attached to any tool the player selects, now what I want to do is kinda make it rotate around the camera, the problem is it rotates around like the Part0, or its parent, idk which one lol.
But anyhow it makes the tool rotating look odd, cause again, I need it to rotate around the camera.
Now from my testing with its properties theres no way to just do it straight up, so I was wondering if there is a way using CFrames and stuff to make seem as if if was rotating around the camera.
This is my current code:
-- ||
RunService.RenderStepped:Connect(function(DeltaTime)
-- // Camera //
local LookingUp = Camera.CFrame.LookVector.Unit:Dot(Vector3.new(0,1,0))
-- // Move Tool
if Tool then
if CameraModule:IsFirstPerson() then
ToolConnect.C0 = CFrame.Angles(math.rad(90 * LookingUp),0,0) * (CFrame.new(0,2,-1))
print('First Person')
else
ToolConnect.C0 = CFrame.Angles(math.rad(90 * LookingUp),0,0) * CFrame.new(0,0.5,0)
end
end
end)
Thanks in advanced!