Self.CONTROL_ACTION_PRIORITY, )ĬontextActionService:BindActionAtPriority("jumpAction", handleJumpAction, false, Self.CONTROL_ACTION_PRIORITY, )ĬontextActionService:BindActionAtPriority("moveRightAction", handleMoveRight, false, Self.CONTROL_ACTION_PRIORITY, )ĬontextActionService:BindActionAtPriority("moveLeftAction", handleMoveLeft, false, Self.CONTROL_ACTION_PRIORITY, )ĬontextActionService:BindActionAtPriority("moveBackwardAction", handleMoveBackward, false, ContextActionService:BindActionAtPriority("moveForwardAction", handleMoveForward, false, Here are the lines that seem to be related. Could it be erroring because it’s in a modulescript? That’s right, basically, PathfindingService is used to just create a Path instance for you to use, since you can’t create Path objects using Instance.I am unsure where the error is occurring, but ContextActionService:BindAction seems to be used in the keyboard control module for movement. To create a Path, you can use PathfindingService:CreatePath. These functions above are only available to the Path instance. You can get the waypoints using Path:GetWaypoints and loop through them for the npc to walk to each waypoint using :MoveTo() You can also combine your script with this service to make your npc move smartly to random destinations, using its main function Path:ComputeAsync(startingpoint, randomdestination) make ur npc walk around parts using the service.tell you if it successfully created the path (if it doesn’t, something might be blocking the way between the npc and the destination point). PathfindingService use smart system to create a path using waypoints from the starting point to the ending point for your npc. You can use PathfindingService to achieve that.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |