Maquina de clonagem
Key RequiredUniversal Patched

Maquina de clonagem

Universal ScriptXA330XA330 159 views 37 executesUpdated Aug 24, 2026
Unrated
00
Lua Script•291 lines (8706 chars)
-- LocalScript: StarterPlayerScripts
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local StarterGui = game:GetService("StarterGui")
local localPlayer = Players.LocalPlayer

local totalClones = 0

-- Logs de Ativação no Output (Console)
print("========================================")
print("[PHOENIX CORE]: Script ativado com sucesso!")
print("========================================")

-- Interface UI (Phoenix Status)
local function getOrCreatePhoenixUI()
	local playerGui = localPlayer:WaitForChild("PlayerGui")
	local sg = playerGui:FindFirstChild("PhoenixUI")
	
	if not sg then
		sg = Instance.new("ScreenGui")
		sg.Name = "PhoenixUI"
		sg.ResetOnSpawn = false
		sg.Parent = playerGui

		local frame = Instance.new("Frame")
		frame.Name = "MainFrame"
		frame.Size = UDim2.new(0, 320, 0, 50)
		frame.Position = UDim2.new(0.5, -160, 0.75, 0)
		frame.BackgroundColor3 = Color3.fromRGB(15, 25, 20)
		frame.BorderSizePixel = 2
		frame.BorderColor3 = Color3.fromRGB(0, 255, 120)
		frame.Visible = false
		frame.Parent = sg

		local title = Instance.new("TextLabel")
		title.Name = "StatusTitle"
		title.Size = UDim2.new(1, 0, 0.5, 0)
		title.BackgroundTransparency = 1
		title.TextColor3 = Color3.fromRGB(0, 255, 120)
		title.Font = Enum.Font.GothamBold
		title.TextSize = 14
		title.Text = "PHOENIX CORE"
		title.Parent = frame

		local desc = Instance.new("TextLabel")
		desc.Name = "StatusDesc"
		desc.Size = UDim2.new(1, 0, 0.5, 0)
		desc.Position = UDim2.new(0, 0, 0.5, 0)
		desc.BackgroundTransparency = 1
		desc.TextColor3 = Color3.fromRGB(200, 255, 220)
		desc.Font = Enum.Font.Gotham
		desc.TextSize = 12
		desc.Text = "INITIALIZING..."
		desc.Parent = frame
	end

	local frame = sg:WaitForChild("MainFrame")
	return frame, frame:WaitForChild("StatusTitle"), frame:WaitForChild("StatusDesc")
end

local uiFrame, uiTitle, uiDesc = getOrCreatePhoenixUI()

local function updateUI(titleText, descText)
	uiFrame.Visible = true
	uiTitle.Text = titleText
	uiDesc.Text = descText
end

-- Construção da Câmara de Clonagem 3D com Tela Corrigida
local function createCloningChamber(cframe)
	totalClones += 1

	local pod = Instance.new("Model")
	pod.Name = "ProjectPhoenixPod"

	local base = Instance.new("Part")
	base.Size = Vector3.new(8, 1, 8)
	base.CFrame = cframe * CFrame.new(0, -0.5, 0)
	base.Material = Enum.Material.SmoothPlastic
	base.Color = Color3.fromRGB(20, 20, 20)
	base.Anchored = true
	base.CanCollide = true
	base.Parent = pod

	local terminal = Instance.new("Part")
	terminal.Size = Vector3.new(3, 3, 1)
	terminal.CFrame = cframe * CFrame.new(-3.5, 1.5, 0) * CFrame.Angles(0, math.rad(90), 0)
	terminal.Material = Enum.Material.Metal
	terminal.Color = Color3.fromRGB(30, 30, 30)
	terminal.Anchored = true
	terminal.CanCollide = true
	terminal.Parent = pod

	local screen = Instance.new("Part")
	screen.Size = Vector3.new(2.6, 1.8, 0.1)
	-- Rotação ajustada para a tela ficar virada para frente da câmara
	screen.CFrame = terminal.CFrame * CFrame.new(0, 0, 0.51) * CFrame.Angles(0, math.rad(180), 0)
	screen.Material = Enum.Material.SmoothPlastic
	screen.Color = Color3.fromRGB(10, 15, 12)
	screen.Anchored = true
	screen.CanCollide = false
	screen.Parent = pod

	-- Interface SurfaceGui
	local surfaceGui = Instance.new("SurfaceGui")
	surfaceGui.Face = Enum.NormalId.Front
	surfaceGui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
	surfaceGui.PixelsPerStud = 100
	surfaceGui.Parent = screen

	local mainContainer = Instance.new("Frame")
	mainContainer.Size = UDim2.new(1, 0, 1, 0)
	mainContainer.BackgroundColor3 = Color3.fromRGB(5, 15, 10)
	mainContainer.BorderSizePixel = 0
	mainContainer.Parent = surfaceGui

	local uiCorner = Instance.new("UICorner")
	uiCorner.CornerRadius = UDim.new(0, 8)
	uiCorner.Parent = mainContainer

	local header = Instance.new("TextLabel")
	header.Size = UDim2.new(1, -10, 0, 25)
	header.Position = UDim2.new(0, 5, 0, 2)
	header.BackgroundTransparency = 1
	header.TextColor3 = Color3.fromRGB(0, 255, 120)
	header.Font = Enum.Font.Code
	header.TextSize = 14
	header.TextXAlignment = Enum.TextXAlignment.Left
	header.Text = "> PHOENIX_OS v2.4"
	header.Parent = mainContainer

	local statsLabel = Instance.new("TextLabel")
	statsLabel.Size = UDim2.new(1, -10, 0, 35)
	statsLabel.Position = UDim2.new(0, 5, 0, 25)
	statsLabel.BackgroundTransparency = 1
	statsLabel.TextColor3 = Color3.fromRGB(0, 220, 255)
	statsLabel.Font = Enum.Font.Code
	statsLabel.TextSize = 13
	statsLabel.TextXAlignment = Enum.TextXAlignment.Left
	statsLabel.TextYAlignment = Enum.TextYAlignment.Top
	statsLabel.Text = string.format("DEATHS DETECTED: %d\nCLONE ITERATION: #%04d", totalClones, totalClones)
	statsLabel.Parent = mainContainer

	local consoleLog = Instance.new("TextLabel")
	consoleLog.Size = UDim2.new(1, -10, 1, -65)
	consoleLog.Position = UDim2.new(0, 5, 0, 62)
	consoleLog.BackgroundTransparency = 1
	consoleLog.TextColor3 = Color3.fromRGB(150, 255, 180)
	consoleLog.Font = Enum.Font.Code
	consoleLog.TextSize = 10
	consoleLog.TextXAlignment = Enum.TextXAlignment.Left
	consoleLog.TextYAlignment = Enum.TextYAlignment.Top
	consoleLog.TextWrapped = true
	consoleLog.Text = "$ sys_init --force\n$ sync_dna --subject=" .. localPlayer.Name .. "\n$ print_status: REGENERATING..."
	consoleLog.Parent = mainContainer

	local glass = Instance.new("Part")
	glass.Shape = Enum.PartType.Cylinder
	glass.Size = Vector3.new(10, 6, 6)
	glass.CFrame = cframe * CFrame.new(0, 5, 0) * CFrame.Angles(0, 0, math.rad(90))
	glass.Material = Enum.Material.Glass
	glass.Color = Color3.fromRGB(0, 255, 120)
	glass.Transparency = 0.5
	glass.CanCollide = false
	glass.Anchored = true
	glass.Parent = pod

	local light = Instance.new("PointLight")
	light.Color = Color3.fromRGB(0, 255, 100)
	light.Range = 20
	light.Brightness = 5
	light.Parent = base

	pod.Parent = workspace
	return pod
end

-- Processo de Respawn
local exactDeathCFrame = nil

local function handlePhoenixRespawn(deathCFrame, char)
	local pod = createCloningChamber(deathCFrame)
	local humanoid = char:WaitForChild("Humanoid", 5)
	local hrp = char:WaitForChild("HumanoidRootPart", 5)

	-- Aplica a imortalidade adicionando um ForceField
	local forceField = Instance.new("ForceField")
	forceField.Visible = false
	forceField.Parent = char

	if humanoid then
		humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
	end

	if hrp then
		-- Posiciona o jogador dentro da cápsula e ancora temporariamente
		char:PivotTo(deathCFrame * CFrame.new(0, 3, 0))
		hrp.Anchored = true
	end

	-- Sequência Visual de Status na UI
	task.spawn(function()
		updateUI("PHOENIX CORE", "POWERING CLONING CHAMBER")
		task.wait(0.8)
		updateUI("MEMORY BACKUP", "SYNCHRONIZING AVATAR DATA")
		task.wait(0.8)
		updateUI("CLONE BODY", "INITIALIZING REPLACEMENT BODY")
		task.wait(0.8)
		updateUI("PHOENIX ONLINE", "CONSCIOUSNESS TRANSFER COMPLETE")
		task.wait(0.8)
		uiFrame.Visible = false
	end)

	task.wait(3.2)

	-- Libera os movimentos e remove a imortalidade
	if hrp then
		hrp.Anchored = false
	end

	if forceField then
		forceField:Destroy()
	end

	-- Fade Out dos elementos
	local tweenInfo = TweenInfo.new(1)
	for _, part in ipairs(pod:GetDescendants()) do
		if part:IsA("BasePart") then
			TweenService:Create(part, tweenInfo, {Transparency = 1}):Play()
		elseif part:IsA("Light") then
			TweenService:Create(part, tweenInfo, {Brightness = 0}):Play()
		end
	end
	
	task.wait(1)
	pod:Destroy()
end

-- Monitoramento do Personagem
local function onCharacterAdded(char)
	if exactDeathCFrame then
		local targetCFrame = exactDeathCFrame
		exactDeathCFrame = nil
		task.spawn(handlePhoenixRespawn, targetCFrame, char)
	end

	local hrp = char:WaitForChild("HumanoidRootPart", 5)
	local humanoid = char:WaitForChild("Humanoid", 5)

	if hrp and humanoid then
		local diedConnection
		diedConnection = humanoid.Died:Connect(function()
			exactDeathCFrame = hrp.CFrame
			
			if diedConnection then
				diedConnection:Disconnect()
			end

			-- Oculta o modelo no momento da morte
			for _, part in ipairs(char:GetDescendants()) do
				if part:IsA("BasePart") then
					part.Transparency = 1
					part.CanCollide = false
				elseif part:IsA("Decal") then
					part.Transparency = 1
				end
			end
		end)
	end
end

if localPlayer.Character then
	onCharacterAdded(localPlayer.Character)
end

localPlayer.CharacterAdded:Connect(onCharacterAdded)

-- Notificação Visual Sem Ícone
task.spawn(function()
	local success = false
	repeat
		success = pcall(function()
			StarterGui:SetCore("SendNotification", {
				Title = "Sistema Phoenix",
				Text = "O script de clonagem foi ativado com sucesso!",
				Duration = 5,
			})
		end)
		if not success then task.wait(0.5) end
	until success
end)

Features & Information

After you die, you will be reborn as a clone in the same location where you died.
#universal#Technology#More#Script

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts