RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a moving dad"
-- server script local dad = Instance.new("Model") dad.Name = "Dad" dad.Parent = game.Workspace local humanoid = Instance.new("Humanoid") humanoid.Parent = dad local torso = Instance.new("Part") torso.Name = "Torso" torso.Anchored = false torso.Size = Vector3.new(2, 2, 1) torso.Parent = dad local head = Instance.new("Part") head.Name = "Head" head.Anchored = false head.Size = Vector3.new(2, 1, 1) head.Parent = dad head.CFrame = torso.CFrame * CFrame.new(0, 1.5, 0) local pfs = game:GetService("PathfindingService") local path = pfs:CreatePath() local waypoints = {} local function moveDad() local startPoint = dad.HumanoidRootPart.Position local endPoint = Vector3.new(math.random(-50, 50), 0, math.random(-50, 50)) path:ComputeAsync(startPoint, endPoint) waypoints = path:GetWaypoints() for _, waypoint in ipairs(waypoints) do dad.Humanoid:MoveTo(waypoint.Position) dad.Humanoid.MoveToFinished:Wait() end end while true do moveDad() wait(2) end