i=true script.Parent[ZoneModelName]:MoveTo(Vector3.new(0,10000,0));(script.Parent[ZoneModelName]:Clone()).Parent=game.ServerStorage script.Parent.RemoteEvent.OnServerEvent:Connect(function(G,R,d,q)if i then i=false local G=(game.ServerStorage:WaitForChild(ZoneModelName)):Clone()G.Parent=game.Workspace G.PrimaryPart=G.Main G:SetPrimaryPartCFrame(CFrame.new(Vector3.new(R,d+1,q)))G.Main.Touched:Connect(function(G)if G.Parent:FindFirstChild(MobHumanoidName)then G.Parent[MobHumanoidName].Health=G.Parent[MobHumanoidName].Health-Damage end end)wait(Cooldown)i=true end end)
--------------------)
i = true
script.Parent[ZoneModelName]:MoveTo(Vector3.new(0, 10000, 0))
script.Parent[ZoneModelName]:Clone().Parent = game.ServerStorage
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, X, Y, Z)
	if i then
		i = false
		local zone = game.ServerStorage:WaitForChild(ZoneModelName):Clone()
		zone.Parent = game.Workspace
		zone.PrimaryPart = zone.Main
		zone:SetPrimaryPartCFrame(CFrame.new(Vector3.new(X, Y + 1, Z)))
		zone.Main.Touched:Connect(function(hit)
			if hit.Parent:FindFirstChild(MobHumanoidName) then
				hit.Parent[MobHumanoidName].Health = hit.Parent[MobHumanoidName].Health - Damage
			end
		end)
		wait(Cooldown)
		i = true
	end
end)
