I am using pathing finding for a custom character to reach point a to point b but it is acting odd
point A is the custom character(Siren head)
point B is a banana
not sure if it has something to do with siren head height
but I need help because siren head reacts like this trying to reach the banana
any help will be appreciated here is a test place I made for siren head
ForumSirenhead.rbxl (295.5 KB)
if you don’t want to open the game and just want to know the script here it is:
local clickdetector = script.Parent:FindFirstChild("ClickDetector") script.Parent.ClickDetector.MouseClick:Connect(function() local sirenhead = game.Workspace.SirenHead local humanoid = sirenhead.Humanoid local pathfindservice = game:GetService("PathfindingService") local path = pathfindservice:CreatePath() path:ComputeAsync(sirenhead.HumanoidRootPart.Position,game.Workspace.Bannana.Position) local waypoints = path:GetWaypoints() for i,waypoint in pairs(waypoints) do local p = Instance.new("Part",workspace) p.Position = waypoint.Position p.Size = Vector3.new(1,1,1) p.Anchored = true p.CanCollide = false p.Transparency = .5 p.BrickColor = BrickColor.Green() humanoid:MoveTo(waypoint.Position) humanoid.MoveToFinished:Wait() end end)