Baraka Platform y Float
Key RequiredUniversal

Baraka Platform y Float

Universal ScriptBart_bashSigmaBart_bashSigma 487 views 337 executesUpdated Apr 7, 2026
Unrated
00
Lua Script•153 lines (4952 chars)
-- Serviços
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local player = Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")

-- Configurações
local corFundo = Color3.fromRGB(0,0,0)
local corBranca = Color3.fromRGB(255,255,255)
local velocidadeSubida = 10 -- studs por segundo

-- Estado
local plataformaAtiva = false
local plataformaPart
local followConnection

local floatAtivo = false
local floatConn

-- GUI Principal
local mainGui = Instance.new("ScreenGui", PlayerGui)
mainGui.Name = "BarakaHubPlatform"
mainGui.ResetOnSpawn = false
mainGui.Enabled = true

local mainFrame = Instance.new("Frame", mainGui)
mainFrame.Size = UDim2.new(0,200,0,110)
mainFrame.Position = UDim2.new(0.5,-100,0.5,-55)
mainFrame.BackgroundColor3 = corFundo
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true

local function makeUICorner(parent, radius)
    local c = Instance.new("UICorner")
    c.CornerRadius = UDim.new(0, radius or 10)
    c.Parent = parent
    return c
end
makeUICorner(mainFrame,16)

-- BOTÃO BarakaPlataform
local bPlataforma = Instance.new("TextButton", mainFrame)
bPlataforma.Size = UDim2.new(0,180,0,40)
bPlataforma.Position = UDim2.new(0.5,-90,0,10)
bPlataforma.Text = "BarakaPlataform🇧🇷"
bPlataforma.Font = Enum.Font.GothamBlack
bPlataforma.TextSize = 18
bPlataforma.TextColor3 = corBranca
bPlataforma.BackgroundColor3 = Color3.fromRGB(10,20,80) -- azul escuro
makeUICorner(bPlataforma,12)

bPlataforma.MouseButton1Click:Connect(function()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    if not hrp then return end

    if not plataformaAtiva then  
        -- Criar plataforma  
        plataformaPart = Instance.new("Part")  
        plataformaPart.Size = Vector3.new(6,1,6)  
        plataformaPart.Anchored = true  
        plataformaPart.CanCollide = true  
        plataformaPart.Position = hrp.Position - Vector3.new(0, hrp.Size.Y/2 + 1, 0)  
        plataformaPart.Color = Color3.fromRGB(10,20,80)  
        plataformaPart.Material = Enum.Material.SmoothPlastic  
        plataformaPart.TopSurface = Enum.SurfaceType.Smooth
        plataformaPart.BottomSurface = Enum.SurfaceType.Smooth
        plataformaPart.Parent = workspace  

        -- Subida infinita e seguir jogador  
        followConnection = RunService.Heartbeat:Connect(function(dt)  
            if not hrp or not hrp.Parent then return end
            local alvoPos = hrp.Position - Vector3.new(0, hrp.Size.Y/2 + 1, 0)  
            -- atualização de Y para subir suavemente
            plataformaPart.Position = Vector3.new(alvoPos.X, plataformaPart.Position.Y + velocidadeSubida * dt, alvoPos.Z)  
        end)  

        bPlataforma.Text = "BarakaPlataform✅"  
        plataformaAtiva = true  
    else  
        if followConnection then followConnection:Disconnect() end  
        if plataformaPart then plataformaPart:Destroy() end
        bPlataforma.Text = "BarakaPlataform🇧🇷"  
        plataformaAtiva = false  
    end
end)

-- BOTÃO BarakaFloat
local bFloat = Instance.new("TextButton", mainFrame)
bFloat.Size = UDim2.new(0,180,0,40)
bFloat.Position = UDim2.new(0.5,-90,0,60)
bFloat.Text = "BarakaFloat 🕊️"
bFloat.Font = Enum.Font.GothamBlack
bFloat.TextSize = 16
bFloat.TextColor3 = corBranca
bFloat.BackgroundColor3 = Color3.fromRGB(160,20,20) -- vermelho
makeUICorner(bFloat,12)

local function ativarFloat()
    local char = player.Character
    if not char then return end
    local hrp = char:FindFirstChild("HumanoidRootPart")
    local humanoid = char:FindFirstChildOfClass("Humanoid")
    if not hrp or not humanoid then return end

    humanoid.UseJumpPower = true
    humanoid.JumpPower = 50
    humanoid.PlatformStand = false

    floatConn = RunService.Heartbeat:Connect(function()
        if not hrp or not hrp.Parent then return end
        local vel = hrp.Velocity
        -- se estiver caindo, anula gravidade
        if vel.Y < -0.1 then
            hrp.Velocity = Vector3.new(vel.X, 0, vel.Z)
        end
    end)

    floatAtivo = true
    bFloat.Text = "BarakaFloat ✅"
end

local function desativarFloat()
    if floatConn then floatConn:Disconnect() end
    local char = player.Character
    if char then
        local hrp = char:FindFirstChild("HumanoidRootPart")
        local humanoid = char:FindFirstChildOfClass("Humanoid")
        if humanoid then humanoid.PlatformStand = false end
    end
    floatAtivo = false
    bFloat.Text = "BarakaFloat 🕊️"
end

bFloat.MouseButton1Click:Connect(function()
    if not floatAtivo then
        ativarFloat()
    else
        desativarFloat()
    end
end)

player.CharacterRemoving:Connect(function()
    if floatAtivo then desativarFloat() end
end)

player.Character:WaitForChild("Humanoid").Died:Connect(function()
    if floatAtivo then desativarFloat() end
end)

Features & Information

Baraka sigma NOT A SCRIPT NORMAL

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts