local Q=script.Parent local B=script.Parent.Parent local Z=B.Configuration.FlyRange while true do wait(5)if(Q.Position-B.Center.CenterPart.Position).magnitude>Z.Value then Q.GlowScript.Disabled=true Q.MoveScript.Disabled=true Q:destroy()break end end
-- Remove the fly when it flew too far from the center.

local Fly = script.Parent
local Model = script.Parent.Parent
local Range = Model.Configuration.FlyRange

while true do
	wait(5)
	if (Fly.Position - Model.Center.CenterPart.Position).magnitude > Range.Value then
		Fly.GlowScript.Disabled = true
		Fly.MoveScript.Disabled = true
		Fly:destroy()
		break
	end
end
