I want to the character to follow the mouse movement while anchored. I’ve used BodyGyro but it only works while unanchored.
local function startA(input, inputProccessed)
if CanPress == false then
CanPress = true
if inputProccessed then
return
end
if input.KeyCode == Enum.KeyCode.G then
print("yo")
Hold = true
HATrack:Play()
HATrack:AdjustSpeed(0)
game.ReplicatedStorage.FireFist:FireServer()
Torso.Anchored = true
RunService.RenderStepped:Connect(function()
-- print("Hi")
BG2.MaxTorque = Vector3.new(10^5, 10^5, 10^5)
BG2.CFrame = CFrame.new(Torso.CFrame.Position, mouse.Hit.p)
end)
end
end
CanPress = false
end
I’ve also used
local MouseMoveFunction
MouseMoveFunction = mouse.Move:Connect(function()
Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y,
0))
if not KeyDown()then
MoveMouseFunction:Disconnect()
end
)
Which works while anchored but it is choppy.
Does anybody have any suggestion on how I would do this?