i have this problem with my roblox game, so there spawns zombies aty a spawner and when they come out, i can claim them for my money, and when i claimed them, tehy walk to one of my 8 platforms in my base where i can collect money they are generating, but the problem is that it doesent stand on the platform its supposed to stand on
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I understand your issue with the Roblox game—it's frustrating when the zombies aren't behaving as expected! Let's break this down step by step to figure out why the zombies aren't standing on the correct platform after you claim them. I'll provide some troubleshooting tips, potential causes, and solutions based on common Roblox scripting issues. Since I'm an AI, I can't directly access or modify your game, but I can guide you through fixing it.
Step 1: Understand the Problem
From what you've described:
Zombies spawn at a spawner.
You claim them (probably through a click or proximity prompt), and they should then walk to one of your 8 platforms.
The issue is that they don't end up on the right platform—they might not move at all, get stuck, or end up on the wrong one.
This could be caused by several things, such as:
Pathfinding errors: Roblox's pathfinding system might not be set up correctly, leading to zombies not reaching their target.
Platform assignment logic: The script that assigns a specific platform to a zombie might be buggy or not working as intended.
Zombie movement or AI issues: After claiming, the zombie's movement script could be failing, or there might be obstacles in the way.
Detection problems: The game might not accurately detect when the zombie is "on" the platform, so it doesn't register correctly.
Step 2: Troubleshooting Tips
Start by gathering more information about your setup. This will help pinpoint the exact cause. Here's what you can do:
Check for Errors in the Output Console:
In Roblox Studio, run your game and look at the Output window (View > Output if it's not visible).
Look for any error messages related to pathfinding, movement, or scripting. For example:
Errors like "Pathfinding failed" or "Attempt to index nil" could indicate issues with your code.
If you see errors, share them with me, and I can help interpret them.
Add Debug Prints to Your Script:
Open your script in Roblox Studio (likely in a Script or LocalScript handling the zombie claiming and movement).
Add print() statements to track what's happening. For example:
When a zombie is claimed, print which platform is assigned.
When the zombie moves, print its current position and the target platform's position.
When the zombie "arrives," print whether it's on the correct platform.
Example code snippet (in Lua, which Roblox uses):
-- Assuming you have a function that handles claiming a zombie
function onZombieClaimed(zombie, player)
-- Assign a platform (e.g., randomly from a table of 8 platforms)
local platforms = workspace.Platforms:GetChildren() -- Adjust this to how your platforms are stored
local assignedPlatform = platforms[math.random(1, #platforms)]
-- Debug print for assignment
print("Zombie assigned to platform: " .. assignedPlatform.Name)
-- Tell the zombie to move to the platform
zombie.Humanoid:MoveTo(assignedPlatform.Position)
-- Optional: Set a target for better pathfinding
zombie.Humanoid.MoveToFinished:Connect(function(reached)
if reached then
print("Zombie reached position: " .. tostring(zombie.HumanoidRootPart.Position))
print("Target platform position: " .. tostring(assignedPlatform.Position))
-- Check if it's close enough to the platform
if (zombie.HumanoidRootPart.Position - assignedPlatform.Position).Magnitude < 5 then -- Adjust the distance threshold as needed
print("Zombie is on the correct platform!")
-- Add your money generation logic here
else
warn("Zombie is not on the correct platform! Off by " .. tostring((zombie.HumanoidRootPart.Position - assignedPlatform.Position).Magnitude) .. " studs")
end
end
end)
end
Run your game, claim a zombie, and check the Output console for these prints. This will show if the assignment is correct and if the zombie is getting close but not registering.
Test Zombie Movement Manually:
In Roblox Studio, use the "Test" mode to claim a zombie and watch its behavior.
Does the zombie move at all after claiming? If not, it could be a pathfinding or movement issue.
Try moving the zombie directly to a platform using the MoveTo function in the command bar (e.g., workspace.Zombie.Humanoid:MoveTo(Vector3.new(x, y, z))) to see if pathfinding works in general.
Inspect Your Platform Setup:
How are your 8 platforms defined? Are they:
Individual Parts or Models in the workspace?
Named specifically (e.g., "Platform1", "Platform2") or stored in a folder (e.g., workspace.Platforms)?
If they're not easily accessible in your script, that could cause assignment issues.
Ensure the platforms are anchored or have collision settings that allow zombies to stand on them. If they're not solid, the zombie might "fall through" or not detect it properly.
Step 3: Common Causes and Fixes
Based on similar issues I've seen in Roblox games, here are some likely causes and how to fix them:
Pathfinding Not Set Up:
Roblox uses the PathfindingService for more reliable movement. If you're just using Humanoid:MoveTo(), it might not handle complex paths well (e.g., if there are walls or uneven terrain).
Fix: Use PathfindingService to create a path to the platform. Here's a basic example:
local PathfindingService = game:GetService("PathfindingService")
function moveZombieToPlatform(zombie, targetPosition)
local path = PathfindingService:CreatePath()
path:ComputeAsync(zombie.HumanoidRootPart.Position, targetPosition)
-- Check if the path was found
if path.Status == Enum.PathStatus.Success then
-- Follow the path
for _, waypoint in pairs(path:GetWaypoints()) do
zombie.Humanoid:MoveTo(waypoint.Position)
-- Wait for the zombie to reach each waypoint (optional, with a timeout)
zombie.Humanoid.MoveToFinished:Wait() -- This waits until the move is finished
end
print("Zombie reached the end of the path!")
else
warn("Pathfinding failed with status: " .. tostring(path.Status))
end
end
Call this function when a zombie is claimed, passing the platform's position.
Make sure your map is set up for pathfinding: Go to the Model tab in Roblox Studio, select your terrain or base, and ensure "Generate Pathfinding Mesh" is enabled.
Platform Assignment Issues:
If the wrong platform is being assigned (e.g., due to a random selection bug), the zombie might go to the correct spot but not the one you expect.
Fix: Ensure your platform assignment logic is solid. For example:
Store your platforms in a table and assign one randomly or based on logic (e.g., least occupied platform).
Example:
local platforms = {} -- Populate this with your 8 platforms, e.g., in a folder
for _, platform in pairs(workspace.Platforms:GetChildren()) do
table.insert(platforms, platform)
end
function assignPlatform()
return platforms[math.random(1, #platforms)]
end
If you want zombies to go to specific platforms based on rules (e.g., proximity or player choice), add that logic.
Zombie Not "Standing" on the Platform:
Even if the zombie reaches the platform, it might not stay there or the game might not detect it.
Fix:
Use a proximity check (like in the debug code above) to snap the zombie to the platform if it's close.
Step 4: Next Steps
Share More Details: If you can provide:
The relevant parts of your script (e.g., the claiming and movement code).
How the platforms are set up (e.g., are they in a folder? Do they have specific names?).
Any error messages from the Output console.
A description of what happens when you claim a zombie (e.g., do they move but stop short, or not move at all?).
I'll be able to give more targeted advice or even suggest specific code fixes.
Test Incrementally: Start by fixing one part at a time. For example, first ensure the platform assignment works, then test movement, and finally add the money generation.
If you're new to scripting, Roblox has great resources like the Developer Hub (search for "Pathfinding" or "Humanoid Movement") or tutorials on YouTube. If you need help with code, feel free to paste your script here, and I'll review it!
Let me know how it goes—I'm here to help! 😊
User
this is my script from befopre: local CoreEvent = game.ReplicatedStorage:WaitForChild("CoreEvent")
local NPCFolder = game.ServerStorage:WaitForChild("NPCFolder")
-- Handle base locking
for i, v in pairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") then
local Base = v
Base.LockBase.Touched:Connect(function(hit)
if hit.Parent.Name == Base.Owner.Value and Base.LockBase.IsLocked.Value == false then
Base.LockBase.IsLocked.Value = true
CoreEvent:FireAllClients("LockBase", Base)
task.delay(60, function()
Base.LockBase.IsLocked.Value = false
end)
end
end)
end
end
game.Players.PlayerAdded:Connect(function(plr)
for i, v in pairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") and v.Owner.Value == "None" then
v.Owner.Value = plr.Name
v.Sign.SignGUI.SignTextLabel.Text = plr.Name .. "'s Base"
break
end
end
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local Steals = Instance.new("NumberValue")
Steals.Name = "Steals"
Steals.Value = 0
Steals.Parent = leaderstats
local Rebirths = Instance.new("NumberValue")
Rebirths.Name = "Rebirths"
Rebirths.Value = 0
Rebirths.Parent = leaderstats
local Cash = Instance.new("NumberValue")
Cash.Name = "Cash"
Cash.Value = 100
Cash.Parent = leaderstats
local OwnedUnits = Instance.new("Folder")
OwnedUnits.Name = "OwnedUnits"
OwnedUnits.Parent = plr
plr.CharacterAdded:Connect(function(Character)
for i, v in pairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") and v.Owner.Value == plr.Name then
Character:PivotTo(v.Spawner.CFrame)
end
end
end)
end)
game.Players.PlayerRemoving:Connect(function(plr)
local Base = nil
for i, v in ipairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") and v.Owner.Value == plr.Name then
Base = v
Base.Owner.Value = "None"
Base.Sign.SignGUI.SignTextLabel.Text = "Empty Base"
end
end
if Base then
for i,v in ipairs(Base:GetChildren()) do
if string.find(v.Name, "Platform") then
local Platform = v
Platform.CurrentUnit.Value = "None"
Platform.Collector.CollectorGUI.CollectTextLabel.text = ""
Platform.Collector.CollectorGUI.MoneyTextLabel.text = ""
if Platform:FindFirstChild("Rig") then
Platform.Rig.Status.Value = "Inactive"
task.wait(1)
Platform.Rig:Destroy()
end
end
end
end
local function ChooseRandomNPC()
local TotalWeight = 0
Assistant
I appreciate you sharing your script—it gives me a clear view of what's going on! Based on the code, I can see why the zombies might not be standing on the correct platform after being claimed. Let's break this down step by step, identify the likely causes, and provide fixes. I'll keep it straightforward and actionable.
Quick Summary of the Issue
From your script:
Zombies spawn and move through checkpoints using NPCMove.
When a player claims a zombie via the ProximityPrompt in BuyNPC, it assigns the zombie to an available platform, moves it using Humanoid:MoveTo, and then pivots it to a specific offset relative to the platform.
The problem likely stems from the movement or positioning logic in BuyNPC, specifically:
The MoveTo function might not always get the zombie exactly to the target due to pathfinding issues or obstacles.
The pivot offset (CFrame.new(100, 6, -140)) could be placing the zombie far away from the platform or in an incorrect spot. This offset seems unusually large (100 studs in the X-direction is a lot for a typical Roblox character), which might explain why it's not "standing" on the platform.
Other potential issues include:
Pathfinding failures if the map has complex terrain or obstacles.
The zombie might be moving correctly but not ending up at the exact spot you expect due to the relative CFrame calculation.
No error checking for whether the move was successful, so the zombie could get stuck or misplaced without any feedback.
Step-by-Step Analysis and Fixes
I'll focus on the BuyNPC function since that's where the claiming and movement happen. Here's how we can improve it.
1. Potential Cause: Incorrect Pivot Offset
In your code, after the zombie finishes moving, you use:
This applies a large offset (100 studs in X, 6 in Y, -140 in Z) and rotates the zombie 180 degrees. If this offset isn't calibrated to your platform's size and orientation, the zombie could end up floating, underground, or far away.
Fix: Use a smaller, more precise offset based on your platform's actual dimensions. For example, if the platform is a part or model, you might want the zombie to stand directly on top of it. Aim for an offset that places the zombie's feet at the platform's surface.
Suggested change: Replace the offset with something smaller, like to start (which would place the zombie at the platform's exact CFrame), and adjust from there. Or use a specific "stand point" part on each platform for better accuracy.
Make the platform a "stand" point by adding a invisible part (e.g., a small anchored part) at the exact spot you want the zombie to stand, and move the zombie to that part's position.
If your zombies are based on Roblox characters, ensure they have a HumanoidRootPart for movement. If they're custom models, you might need to add a Humanoid.
Other Common Issues:
Obstacles or Collisions: Check for invisible walls, other objects, or even other zombies blocking the path. You can use Roblox's collision tools in Studio to visualize and fix this.
Script Timing: If the claiming script runs too quickly, the zombie might not be fully loaded. Add a small wait (e.g., wait(0.1)) after spawning or claiming.
Event Connections: Ensure that events like Touched or ProximityPrompt.Triggered are connected properly for claiming and money collection.
for _, v in ipairs(NPCS) do
TotalWeight += v.Chance
end
local RandomWeight = math.random() * TotalWeight
local Current = 0
for _, v in ipairs(NPCS) do
Current += v.Chance
if RandomWeight <= Current then
return v.model.Rig
end
end
end
local function NPCMove(NPC)
local CheckPointNumber = 1
NPC.Humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
local AT = NPC.Humanoid.Animator:LoadAnimation(NPC.WalkAnimation)
AT:Play()
NPC.Humanoid.moveToFinished:Connect(function()
if NPC:FindFirstChild("HumanoidRootPart") and NPC.HumanoidRootPart.ProximityPrompt.Enabled == false then
AT:Stop()
return
end
CheckPointNumber += 1
if CheckPointNumber == #workspace.CheckPoints:GetChildren() then
NPC:Destroy()
else
NPC.Humanoid:MoveTo(workspace.CheckPoints["CheckPoint"..CheckPointNumber].Position)
end
end)
end
local function GenerateMoney(SpecificNPCFolder, NPC, AssignedPlatform)
NPC.Money.Changed:Connect(function()
AssignedPlatform.Collector.CollectorGUI.MoneyTextLabel.Text = "$"..NPC.Money.Value
end)
AssignedPlatform.Collector.Touched:Connect(function(Hit)
if Hit.Parent.Name == AssignedPlatform.Parent.Owner.Value then
local Player = Game.Players:FindFirstChild(Hit.Parent.Name)
Player.leaderstats.Cash.Value += NPC.Money.Value
NPC.Money.Value = 0
end
end)
while NPC.Status.Value == "Active" do
NPC.Money.Value += SpecificNPCFolder.MoneyPerSecond.Value
task.wait(1)
end
end
local function BuyNPC(Player, NPC, SpecificNPCFolder)
if Player.leaderstats.Cash.Value >= SpecificNPCFolder.Price.Value then
local AssignedPlatform = nil
for i,v in ipairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") and v.Owner.Value == Player.Name then
local Base = v
for j,f in ipairs(Base:GetChildren()) do
if string.find(f.Name, "Platform") then
local Platform = f
if Platform.CurrentUnit.Value == "None" then
AssignedPlatform = Platform
break
end
end
end
end
end
if AssignedPlatform == nil then
return
end
NPC.Parent = AssignedPlatform
NPC.HumanoidRootPart.ProximityPrompt.Enabled = false
AssignedPlatform.CurrentUnit.Value = NPC.NPCName.Value
Player.leaderstats.Cash.Value -= SpecificNPCFolder.Price.Value
local Unit = Instance.new("StringValue")
Unit.Name =SpecificNPCFolder.Name
Unit.Value = SpecificNPCFolder.Name
Unit.Parent = Player.OwnedUnits
NPC.Humanoid:MoveTo(AssignedPlatform.Platform.Position)
local AT = NPC.Humanoid.Animator:LoadAnimation(NPC.WalkAnimation)
AT:Play()
NPC.Humanoid.MoveToFinished:Connect(function()
AT:Stop()
NPC:PivotTo(
AssignedPlatform.Platform.CFrame *
CFrame.new(100, 6, -140) *
CFrame.Angles(0, math.rad(180), 0)
)
AssignedPlatform.Collector.CollectorGUI.CollectTextLabel.Text = "Collect"
NPC.Status.Value = "Active"
task.delay(1, function()
NPC.HumanoidRootPart.Anchored = true
end)
GenerateMoney(SpecificNPCFolder, NPC, AssignedPlatform)
end)
end
end
local function SpawnNPC()
local NPC = ChooseRandomNPC()
local NPCModel = NPC:Clone()
NPCModel.Parent = workspace
local SpecificNPCFolder = NPCFolder[NPCModel.NPCName.Value]
NPCModel.Head.InfoGUI.PriceTextLabel.Text = ""..SpecificNPCFolder.Price.ValueNPCModel.Head.InfoGUI.Name"..SpecificNPCFolder.MoneyPerSecond.Value.."/s"
NPCModel:PivotTo(workspace.Spawner.CFrame)
-- After MoveToFinished, instead of the large offset, use a smaller one or no offset
NPC:PivotTo(AssignedPlatform.Platform.CFrame * CFrame.new(0, 3, 0)) -- Adjust the Y-offset (e.g., 3 studs up) to make the zombie stand on top of the platform
Test this in Roblox Studio by manually adjusting the numbers. Use the "Move Tool" to measure the correct offset from the platform's center to where you want the zombie to stand.
2. Potential Cause: Unreliable Movement with MoveTo
You're using NPC.Humanoid:MoveTo(AssignedPlatform.Platform.Position), which is simple but can fail if there are obstacles, uneven terrain, or if the path is blocked. If the zombie doesn't reach the exact position, the pivot might place it incorrectly.
Fix: Use Roblox's PathfindingService for more robust movement. It can handle complex paths and avoid getting stuck. Here's an updated version of the movement logic:
Add this function to your script (e.g., above BuyNPC):
local PathfindingService = game:GetService("PathfindingService")
local function MoveToTargetWithPathfinding(humanoid, targetPosition)
local path = PathfindingService:CreatePath()
path:ComputeAsync(humanoid.Parent.HumanoidRootPart.Position, targetPosition)
if path.Status == Enum.PathStatus.Success then
for _, waypoint in pairs(path:GetWaypoints()) do
humanoid:MoveTo(waypoint.Position)
humanoid.MoveToFinished:Wait() -- Wait for the zombie to reach each waypoint
end
return true -- Success
else
warn("Pathfinding failed for zombie with status: " .. tostring(path.Status))
return false -- Failure
end
end
-- Use the new pathfinding function
local moveSuccess = MoveToTargetWithPathfinding(NPC.Humanoid, AssignedPlatform.Platform.Position)
if moveSuccess then
-- Proceed with the rest (stop animation, pivot, etc.)
AT:Stop()
NPC:PivotTo(AssignedPlatform.Platform.CFrame * CFrame.new(0, 3, 0)) -- Use the fixed offset here
AssignedPlatform.Collector.CollectorGUI.CollectTextLabel.Text = "Collect"
NPC.Status.Value = "Active"
task.delay(1, function()
NPC.HumanoidRootPart.Anchored = true
end)
GenerateMoney(SpecificNPCFolder, NPC, AssignedPlatform)
else
warn("Zombie failed to move to platform: " .. AssignedPlatform.Name)
-- Optional: Destroy or reposition the zombie if movement fails
end
This ensures the zombie follows a computed path and only proceeds if the movement is successful.
3. Add Debugging to Track Positions
To confirm if the zombie is reaching the platform, add print statements or use Roblox's logging. This will help you see exactly where the zombie ends up.
Fix: Add debug prints in the MoveToFinished connection (or in the pathfinding callback). For example:
NPC.Humanoid.MoveToFinished:Connect(function(reached)
if reached then
print("Zombie reached move target. Current position: " .. tostring(NPC.HumanoidRootPart.Position))
print("Target platform position: " .. tostring(AssignedPlatform.Platform.Position))
-- Check distance to ensure it's close enough
local distance = (NPC.HumanoidRootPart.Position - AssignedPlatform.Platform.Position).Magnitude
if distance > 5 then -- Adjust threshold as needed (e.g., 5 studs)
warn("Zombie is not close to platform! Distance: " .. distance)
else
print("Zombie is on or near the platform!")
end
else
warn("Zombie did not reach the move target!")
end
-- Then do the pivot and other logic
AT:Stop()
NPC:PivotTo(AssignedPlatform.Platform.CFrame * CFrame.new(0, 3, 0))
-- ... rest of your code
end)
Run your game in Roblox Studio, claim a zombie, and check the Output console for these messages. This will tell you if the zombie is getting close but not registering correctly.
4. Other Improvements
Platform Assignment Logic: Your current logic in BuyNPC loops through all bases and platforms to find an available one. This works but could be optimized. If you're having issues with the wrong platform being assigned, add a debug print after assignment:
if AssignedPlatform then
print("Assigned platform: " .. AssignedPlatform.Name .. " to zombie: " .. NPC.Name)
else
warn("No available platform found for player: " .. Player.Name)
end
This will help confirm that the correct platform is being selected.
Ensure Platforms Are Set Up Correctly: In the workspace, make sure:
Each platform has a Platform part (or whatever you're using for positioning) with proper collision (e.g., CanCollide = true).
If the platforms are moving or dynamic, that could cause issues—ensure they're anchored.
Add a small, invisible part (e.g., named "StandPoint") to each platform at the exact spot where zombies should stand. Then, move the zombie to that part's position instead of AssignedPlatform.Platform.Position.
Handle Edge Cases: What if the zombie is claimed while moving? Or if there are multiple players? Add checks to ensure the NPC isn't already assigned or moving when claimed.
Error Handling in General: Your script has a lot of good structure, but add more warnings or failsafes. For example, check if AssignedPlatform or NPC.Humanoid exists before using them to avoid nil errors.
Updated BuyNPC Function with Fixes
Here's a revised version of your BuyNPC function incorporating the suggestions:
local function BuyNPC(Player, NPC, SpecificNPCFolder)
if Player.leaderstats.Cash.Value >= SpecificNPCFolder.Price.Value then
local AssignedPlatform = nil
-- Find an available platform (unchanged, but add debug if needed)
for i,v in ipairs(workspace:GetChildren()) do
if v:FindFirstChild("Owner") and v.Owner.Value == Player.Name then
local Base = v
for j,f in ipairs(Base:GetChildren()) do
if string.find(f.Name, "Platform") then
local Platform = f
if Platform.CurrentUnit.Value == "None" then
AssignedPlatform = Platform
break -- Exit the inner loop once a platform is found
end
end
end
if AssignedPlatform then break end -- Exit outer loop if platform found
end
end
if AssignedPlatform == nil then
warn("No available platform for player: " .. Player.Name)
return -- Exit if no platform is free
end
-- Assign NPC to platform
NPC.Parent = AssignedPlatform
NPC.HumanoidRootPart.ProximityPrompt.Enabled = false
AssignedPlatform.CurrentUnit.Value = NPC.NPCName.Value
Player.leaderstats.Cash.Value -= SpecificNPCFolder.Price.Value
local Unit = Instance.new("StringValue")
Unit.Name = SpecificNPCFolder.Name
Unit.Value = SpecificNPCFolder.Name
Unit.Parent = Player.OwnedUnits
-- Use pathfinding for better movement
local moveSuccess = MoveToTargetWithPathfinding(NPC.Humanoid, AssignedPlatform.Platform.Position) -- Use the new function I suggested
if moveSuccess then
local AT = NPC.Humanoid.Animator:LoadAnimation(NPC.WalkAnimation)
AT:Stop() -- Stop animation after move (or play it during move if desired)
-- Pivot to a better position (adjust offset as needed)
NPC:PivotTo(AssignedPlatform.Platform.CFrame * CFrame.new(0, 3, 0)) -- Start with small offset; test and tweak
-- Debug distance check
local distance = (NPC.HumanoidRootPart.Position - AssignedPlatform.Platform.Position).Magnitude
if distance > 5 then
warn("Zombie is not on platform! Distance: " .. distance)
else
print("Zombie successfully on platform!")
end
AssignedPlatform.Collector.CollectorGUI.CollectTextLabel.Text = "Collect"
NPC.Status.Value = "Active"
task.delay(1, function()
NPC.HumanoidRootPart.Anchored = true
end)
GenerateMoney(SpecificNPCFolder, NPC, AssignedPlatform)
else
warn("Movement failed for zombie: " .. NPC.Name .. " to platform: " .. AssignedPlatform.Name)
-- Optional: Reset or destroy the zombie
end
end
end
Testing and Next Steps
Test in Roblox Studio:
Run your game in "Play Solo" mode.
Claim a zombie and watch its movement in the 3D view.
Check the Output console for debug prints to see positions and distances.
If the zombie still doesn't stand correctly, measure the exact CFrame offset needed (use Roblox Studio's tools to position a test part).
Common Pitfalls to Watch For:
Anchoring Too Early: If the zombie is anchored before it's in the right spot, it might stay misplaced. The delay in your code should help, but test it.
Map Issues: Ensure your base and platforms are set up for pathfinding. In Roblox Studio, go to the "Model" tab, select your terrain, and click "Generate Pathfinding Mesh" if it's not already done.
Performance: If you have many zombies, pathfinding might lag—optimize by reusing paths or simplifying the map.
Share More Feedback:
After trying these changes, let me know what happens (e.g., error messages, debug output, or if the zombie moves but still ends up wrong).
If you can share more details (like a screenshot of your platforms or the exact behavior), I can refine this further.
You've got a solid script foundation— with these tweaks, it should work much better. Hang in there, and let's get those zombies standing where they belong! 😊