I'm trying to make the camera that follows a focus move around like clash of clans or league of legends.
The way I initially had it was set up with key inputs but I want it to be using the mouse. Right now I'm just trying to figure out how to make the camera follow the mouse even when no button is being held down.
I've also tried current pos - orig pos for dragging.
The camera doesn't really go in the direction of the mouse I'm guessing it has something to do with world space..? Any help?
dragSpeed = 0.001
userInput.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
print("Moving to: ",input.Position)
move_vector = Vector3.new(input.Position.X*dragSpeed,0,input.Position.Y*dragSpeed)
end
end)

1 comment
The camera follows a part. The part is move to the vectors location, I was just trying to figure out to get it to go in the direction of the mouse.