RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"write a navigation script that completes obbies"
-- This script will attempt to navigate through an obby, but may not work for all obbies local Players = game:GetService("Players") local PathfindingService = game:GetService("PathfindingService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local startPoint = character.HumanoidRootPart.Position local endPoint = game.Workspace.EndPoint.Position local path = PathfindingService:CreatePath() path:ComputeAsync(startPoint, endPoint) local waypoints = path:GetWaypoints() for _, waypoint in ipairs(waypoints) do humanoid:MoveTo(waypoint.Position) humanoid.MoveToFinished:Wait() if waypoint.Action == Enum.PathWaypointAction.Jump then humanoid.Jump = true end end