HI Hub
Key Required

HI Hub

[πŸ¦‰] Roube um Brainrotdulimlacorddulimlacord 1.6K views 13.4K executesUpdated Feb 28, 2026
Unrated
00
Lua Scriptβ€’150 lines (3780 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer

-- ================= GUI =================

local gui = Instance.new("ScreenGui")
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local main = Instance.new("Frame")
main.Size = UDim2.new(0,260,0,180)
main.Position = UDim2.new(0.5,-130,0.5,-90)
main.BackgroundColor3 = Color3.fromRGB(0,0,0)
main.Parent = gui

Instance.new("UICorner", main).CornerRadius = UDim.new(0,25)
Instance.new("UIStroke", main).Thickness = 2

local topBar = Instance.new("Frame")
topBar.Size = UDim2.new(1,0,0,40)
topBar.BackgroundColor3 = Color3.fromRGB(20,20,20)
topBar.Parent = main

Instance.new("UICorner", topBar).CornerRadius = UDim.new(0,25)

local credit = Instance.new("TextLabel")
credit.Size = UDim2.new(1,0,0,30)
credit.Position = UDim2.new(0,0,1,-30)
credit.BackgroundTransparency = 1
credit.Text = "YouTuber: LoginEditXZ"
credit.TextScaled = true
credit.TextColor3 = Color3.new(1,1,1)
credit.Parent = main

local button = Instance.new("TextButton")
button.Size = UDim2.new(0,200,0,60)
button.Position = UDim2.new(0.5,-100,0.5,-10)
button.Text = "Ativar Plataforma"
button.TextColor3 = Color3.new(1,1,1)
button.Parent = main

Instance.new("UICorner", button).CornerRadius = UDim.new(0,30)
local stroke = Instance.new("UIStroke", button)
stroke.Thickness = 3

-- ================= ARRASTAR =================

local dragging = false
local dragStart
local startPos

topBar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1
	or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = main.Position
	end
end)

topBar.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1
	or input.UserInputType == Enum.UserInputType.Touch then
		dragging = false
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if dragging then
		local delta = input.Position - dragStart
		main.Position = UDim2.new(
			startPos.X.Scale,
			startPos.X.Offset + delta.X,
			startPos.Y.Scale,
			startPos.Y.Offset + delta.Y
		)
	end
end)

-- ================= ARCO-ÍRIS =================

local hue = 0
RunService.RenderStepped:Connect(function()
	hue += 0.003
	if hue > 1 then hue = 0 end
	local color = Color3.fromHSV(hue,1,1)
	button.BackgroundColor3 = color
	stroke.Color = color
end)

-- ================= PLATAFORMA ALTURA FIXA =================

local platform
local active = false
local connection
local fixedHeight

button.MouseButton1Click:Connect(function()

	local character = player.Character
	if not character then return end
	local hrp = character:FindFirstChild("HumanoidRootPart")
	if not hrp then return end

	if not active then
		active = true
		button.Text = "Desativar Plataforma"

		-- SALVA A ALTURA EXATA DO MOMENTO DO CLIQUE
		fixedHeight = hrp.Position.Y - 3

		platform = Instance.new("Part")
		platform.Size = Vector3.new(10,1,10)
		platform.Anchored = true
		platform.CanCollide = true
		platform.Material = Enum.Material.Neon
		platform.Position = Vector3.new(hrp.Position.X, fixedHeight, hrp.Position.Z)
		platform.Parent = workspace

		connection = RunService.RenderStepped:Connect(function()
			if platform and hrp then
				-- acompanha sΓ³ horizontal
				platform.Position = Vector3.new(
					hrp.Position.X,
					fixedHeight,
					hrp.Position.Z
				)
				
				platform.Color = Color3.fromHSV(hue,1,1)
			end
		end)

	else
		active = false
		button.Text = "Ativar Plataforma"

		if connection then
			connection:Disconnect()
			connection = nil
		end

		if platform then
			platform:Destroy()
			platform = nil
		end
	end
end)

Features & Information

Sj

Community Comments (1)

joeljulienpauljoeljulienpaulFeb 28, 2026

Wie bekomm ich die Scripts eig jetzt

More Scripts for [πŸ¦‰] Roube um Brainrot