Bloxynet
(Bloxy)
June 25, 2021, 1:54pm
#1
Is there a way to use the PathfindingService and disabling the player’s movement control while the PathfindingService is walking? I’m trying to make the player walk to a part using the PathfindingService but I don’t want the player to move by the player himself!
I think the PathfindingService needs the WASD control to move…
Is there any way? I would highly appreciate that!
I’m not quite sure what you mean. Pathfinding doesn’t require a player or controls to move anything.
Bloxynet
(Bloxy)
June 25, 2021, 2:03pm
#3
Basically, I want the player walk to a part while using PathfindingService, however the player can just walk away, which I don’t want
I’ve never really used PathfindingService before, so I’m pretty new to it
You can simply disable player controls until the character has reached its target point.
2 Likes
asgm
(asgm)
June 25, 2021, 2:07pm
#5
How would you do that though…
1 Like
Bloxynet
(Bloxy)
June 25, 2021, 2:08pm
#6
That’s weird…
I tried to do that several times but it didn’t work. I wanted to make a video to show you but it works now! Pretty weird but thanks, haha!
asgm
(asgm)
June 25, 2021, 2:10pm
#8
Oh wow, never knew that existed. Thanks!
Bloxynet
(Bloxy)
June 25, 2021, 2:11pm
#9
No problem, with controls:Enable() you can enable the movement again.
1 Like