How do i Fix the Model from Moving Towards the Player

The Rig Just Keeps on Moving Towards The Players Camera
and I dont know why.

all help is helpful :grinning:

Script–

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local rig = workspace.Rig

game:GetService(“RunService”).RenderStepped:Connect(function()
local mousepos = mouse.Hit.Position
rig:MoveTo(mousepos)
end)

video–

The issue is that the mouse is hitting the rig instead of the ground. You can remedy this by adding a filter to the mouse:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local rig = workspace.Rig

mouse.TargetFilter = rig

game:GetService(“RunService”).RenderStepped:Connect(function()
	local mousepos = mouse.Hit.Position
	rig:MoveTo(mousepos)
end)

Also, this sort of question would be better suited for #help-and-feedback:scripting-support

1 Like