I’m working on a click-to-move system and funny enough the basic :MoveTo() isn’t working properly. It’s only nudging the player in the direction I want them to go like so:
I have two scripts and a RE controlling this.
-- SERVER SCRIPT
script:WaitForChild("MoveRemote").OnServerEvent:Connect(function(plr, mousepos)
plr.Character.Humanoid:MoveTo(mousepos.Position)
end)
-- LOCAL SCRIPT
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:Connect(function()
local mousePos = mouse.Hit
game.Workspace:WaitForChild("Movement"):WaitForChild("MoveRemote"):FireServer(mousePos)
end)
And a photo here, I’ve highlighted everything that’s important.
Can anyone tell me what’s happening here?
