So whenever a rig run into the base when you buy it and reached the base after anchoring it it still run
Code-
for num,platform in pairs(container:GetChildren()) do
if platform.Occupied.Value == false then
local point = v.Point
local hum = soldier:FindFirstChild("Humanoid")
soldier.Parent = platform
coins.Value -= price
repeat hum:MoveTo(point.Position) until hum.MoveToFinished:Wait() or script.Parent == platform
soldier.PrimaryPart.Anchored = true
price *= 2
soldier.PrimaryPart.CFrame = platform.CFrame + Vector3.new(0,3.5,0)
platform.Occupied.Value = true
local copy = Instance.new("IntValue",plrfolder)
copy.Name = soldier.Name
copy.Value = num
prox.Enabled = false
buyevent:FireClient(plr,soldier.Sell)
stealEvent:FireClient(plr,soldier.Steal)
prox:Destroy()
break
end
end