#help with movement

1 messages · Page 1 of 1 (latest)

lime gorge
#

so like why is it sliding?


--LOCAL SCRIPT
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()


mouse.Button1Down:Connect(function()
    local worldPosition = mouse.Hit.Position
    game.ReplicatedStorage.moveReq:FireServer("stickbasher1", worldPosition)
end)

---------------------
--SERVER SCRIPT
game:GetService("ReplicatedStorage").moveReq.OnServerEvent:Connect(function(player: Player, unit: string, pos: Vector3)
    print("Request recieved")
    
    local unithumanoidinst = game:GetService("Workspace").islanders[unit].Humanoid
    
    unithumanoidinst:MoveTo(pos)
end)

fading badger
#

PlatformStand: Make sure the Humanoid.PlatformStand is set to false.

No Pathfinding: Use PathfindingService for better movement control if you want the unit to avoid obstacles.

Anchored Parts: Ensure the unit’s parts are not anchored or non-collidable.

#

@lime gorge

lime gorge
#

its set to false
i'm not using pathfinding for reasons
none of the parts are anchored.

vagrant dockBOT
#

studio** You are now Level 3! **studio

lime gorge
#

so idk what im doing wrong

fading badger
#

Ensure PlatformStand is off

#

Move the Humanoid using Humanoid:MoveTo() but with better handling

lime gorge
#

it is off
Im using MoveTo() as shown in the code

swift crater
#

ur cooked

fading badger
#

holy

lime gorge
#

nvm i got it working