Logo Pastebin.fr
Pastebin

Retrouvez, créez et partagez vos snippets en temps réel.

mtz

--====================================================
-- 🌸 MTZHUB | Escape Tsunami For Brainrot
-- XENO VERSION | PC + Mobile
--====================================================

---------------- CONFIG ----------------
local KEY = "MTZ-ON-TOP"
local MAX_SPEED = 200
local MIN_TP = 3
local MAX_TP = 120
--------------------------------------

-- SERVICES
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer

-- CHARACTER SAFE LOAD
local function getChar()
	return player.Character or player.CharacterAdded:Wait()
end

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

-- GUI ROOT
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "MTZHUB_XENO"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = player:WaitForChild("PlayerGui")

--====================================================
-- 🔐 KEY SYSTEM
--====================================================
local KeyFrame = Instance.new("Frame", ScreenGui)
KeyFrame.Size = UDim2.new(0,300,0,180)
KeyFrame.Position = UDim2.new(0.5,-150,0.4,0)
KeyFrame.BackgroundColor3 = Color3.fromRGB(255,120,200)
KeyFrame.Active = true
KeyFrame.Draggable = true
Instance.new("UICorner", KeyFrame)

local KeyTitle = Instance.new("TextLabel", KeyFrame)
KeyTitle.Size = UDim2.new(1,0,0,40)
KeyTitle.Text = "🌸 MTZHUB XENO"
KeyTitle.BackgroundTransparency = 1
KeyTitle.Font = Enum.Font.GothamBold
KeyTitle.TextSize = 20
KeyTitle.TextColor3 = Color3.new(1,1,1)

local KeyBox = Instance.new("TextBox", KeyFrame)
KeyBox.Size = UDim2.new(0.9,0,0,40)
KeyBox.Position = UDim2.new(0.05,0,0.45,0)
KeyBox.PlaceholderText = "Enter Key..."
KeyBox.BackgroundColor3 = Color3.fromRGB(255,170,220)
KeyBox.Font = Enum.Font.GothamBold
Instance.new("UICorner", KeyBox)

local KeyBtn = Instance.new("TextButton", KeyFrame)
KeyBtn.Size = UDim2.new(0.9,0,0,35)
KeyBtn.Position = UDim2.new(0.05,0,0.75,0)
KeyBtn.Text = "UNLOCK"
KeyBtn.BackgroundColor3 = Color3.fromRGB(255,190,230)
KeyBtn.Font = Enum.Font.GothamBold
Instance.new("UICorner", KeyBtn)

--====================================================
-- 🌸 MAIN GUI
--====================================================
local Main = Instance.new("Frame", ScreenGui)
Main.Size = UDim2.new(0,330,0,500)
Main.Position = UDim2.new(0.05,0,0.22,0)
Main.BackgroundColor3 = Color3.fromRGB(255,120,200)
Main.Visible = false
Main.Active = true
Main.Draggable = true
Instance.new("UICorner", Main)

local Title = Instance.new("TextLabel", Main)
Title.Size = UDim2.new(1,0,0,45)
Title.Text = "🌸 MtzHub"
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 22
Title.TextColor3 = Color3.new(1,1,1)

local layout = Instance.new("UIListLayout", Main)
layout.Padding = UDim.new(0,8)
layout.HorizontalAlignment = Enum.HorizontalAlignment.Center

local function spacer(h)
	local s = Instance.new("Frame", Main)
	s.Size = UDim2.new(1,0,0,h)
	s.BackgroundTransparency = 1
end
spacer(45)

local function btn(text)
	local b = Instance.new("TextButton", Main)
	b.Size = UDim2.new(0.9,0,0,38)
	b.BackgroundColor3 = Color3.fromRGB(255,170,220)
	b.Text = text
	b.Font = Enum.Font.GothamBold
	b.TextSize = 14
	b.TextColor3 = Color3.fromRGB(40,40,40)
	Instance.new("UICorner", b)
	return b
end

--====================================================
-- ⚡ SPEED
--====================================================
local SpeedBox = Instance.new("TextBox", Main)
SpeedBox.Size = UDim2.new(0.9,0,0,38)
SpeedBox.Text = "Speed (max 200)"
SpeedBox.BackgroundColor3 = Color3.fromRGB(255,170,220)
SpeedBox.Font = Enum.Font.GothamBold
Instance.new("UICorner", SpeedBox)

SpeedBox.FocusLost:Connect(function()
	local v = tonumber(SpeedBox.Text)
	if v then
		humanoid.WalkSpeed = math.clamp(v,0,MAX_SPEED)
	end
end)

--====================================================
-- 🦘 INFINITE JUMP (XENO SAFE)
--====================================================
local infJump = false
local InfBtn = btn("Infinite Jump : OFF")

InfBtn.MouseButton1Click:Connect(function()
	infJump = not infJump
	InfBtn.Text = "Infinite Jump : "..(infJump and "ON" or "OFF")
end)

UIS.JumpRequest:Connect(function()
	if infJump then
		humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	end
end)

--====================================================
-- 🌍 TP SPAWN
--====================================================
btn("TP Spawn").MouseButton1Click:Connect(function()
	local spawn = workspace:FindFirstChildWhichIsA("SpawnLocation", true)
	if spawn then
		hrp.CFrame = spawn.CFrame + Vector3.new(0,5,0)
	end
end)

--====================================================
-- ➡️ TP FORWARD (3–120m)
--====================================================
local TPBox = Instance.new("TextBox", Main)
TPBox.Size = UDim2.new(0.9,0,0,38)
TPBox.Text = "TP Forward Distance (3-120)"
TPBox.BackgroundColor3 = Color3.fromRGB(255,170,220)
TPBox.Font = Enum.Font.GothamBold
Instance.new("UICorner", TPBox)

btn("➡️ TP Forward").MouseButton1Click:Connect(function()
	local dist = tonumber(TPBox.Text)
	if dist then
		dist = math.clamp(dist, MIN_TP, MAX_TP)
		hrp.CFrame = hrp.CFrame + (hrp.CFrame.LookVector * dist)
	end
end)

--====================================================
-- 🧠 BRAINROT COPY (OLD METHOD)
--====================================================
btn("📦 Copier Brainrot en main").MouseButton1Click:Connect(function()
	for _,tool in ipairs(char:GetChildren()) do
		if tool:IsA("Tool") then
			tool:Clone().Parent = player.Backpack
		end
	end
end)

btn("🧠 Équiper Brainrot").MouseButton1Click:Connect(function()
	for _,tool in ipairs(player.Backpack:GetChildren()) do
		if tool:IsA("Tool") then
			humanoid:EquipTool(tool)
			break
		end
	end
end)

--====================================================
-- 👁️ HIDE / SHOW
--====================================================
local Toggle = Instance.new("TextButton", ScreenGui)
Toggle.Size = UDim2.new(0,50,0,50)
Toggle.Position = UDim2.new(0,10,0.5,0)
Toggle.Text = "🌸"
Toggle.BackgroundColor3 = Color3.fromRGB(255,120,200)
Toggle.Font = Enum.Font.GothamBold
Toggle.Active = true
Toggle.Draggable = true
Instance.new("UICorner", Toggle)

Toggle.MouseButton1Click:Connect(function()
	Main.Visible = not Main.Visible
end)

--====================================================
-- 🔓 KEY CHECK
--====================================================
KeyBtn.MouseButton1Click:Connect(function()
	if KeyBox.Text == KEY then
		KeyFrame.Visible = false
		Main.Visible = true
	end
end)

--====================================================
-- RESPAWN SAFE
--====================================================
player.CharacterAdded:Connect(function(c)
	char = c
	humanoid = c:WaitForChild("Humanoid")
	hrp = c:WaitForChild("HumanoidRootPart")
end)

Créé il y a 3 semaines.

Rechercher un Pastebin

Aucun paste trouvé.