Team lolz gui
Key RequiredUniversal

Team lolz gui

Universal ScriptHulseytea3Hulseytea3 10.9K views 9 executesUpdated Mar 24, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•96 lines (3275 chars)
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0.5, 0, 0.5, 0)
frame.Position = UDim2.new(0.25, 0, 0.25, 0)
frame.BackgroundColor3 = Color3.new(0, 0, 0)

local musicIds = {
    "124140125253346", -- Music Button 1
    "73966367524216",  -- Music Button 2
    "105854178411388", -- Music Button 3
    "88171709821894"   -- Music Button 4
}

local currentSound -- Variable to hold the currently playing sound

local function playMusic(musicId)
    if currentSound then
        currentSound:Stop() -- Stop any sound that is currently playing
    end
    currentSound = Instance.new("Sound")
    currentSound.SoundId = "rbxassetid://" .. musicId
    currentSound.Parent = workspace
    currentSound:Play()
end

local function createButton(name, position, musicId)
    local button = Instance.new("TextButton", frame)
    button.Size = UDim2.new(1, 0, 0, 50)
    button.Position = position
    button.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
    button.Text = name

    button.MouseButton1Click:Connect(function()
        playMusic(musicId)
    end)
end

-- Create Music Buttons
createButton("Play Music 1", UDim2.new(0, 0, 0, 0), musicIds[1])
createButton("Play Music 2", UDim2.new(0, 0, 0, 60), musicIds[2])
createButton("Play Music 3", UDim2.new(0, 0, 0, 120), musicIds[3])
createButton("Play Music 4", UDim2.new(0, 0, 0, 180), musicIds[4])

-- Stop Music Button
local stopButton = Instance.new("TextButton", frame)
stopButton.Size = UDim2.new(1, 0, 0, 50)
stopButton.Position = UDim2.new(0, 0, 0, 240)
stopButton.BackgroundColor3 = Color3.new(1, 0, 0)
stopButton.Text = "Stop Music"

stopButton.MouseButton1Click:Connect(function()
    if currentSound then
        currentSound:Stop() -- Stop the currently playing sound
        currentSound = nil -- Clear the reference to the sound
    end
end)

-- Function to kick players (for demonstration purpose)
local function kickPlayer(playerName)
    local targetPlayer = game.Players:FindFirstChild(playerName)
    if targetPlayer then
        targetPlayer:Kick("You have been kicked from the game.")
    end
end

-- Button to kick player (replace with actual command logic)
local kickButton = Instance.new("TextButton", frame)
kickButton.Size = UDim2.new(1, 0, 0, 50)
kickButton.Position = UDim2.new(0, 0, 0, 300)
kickButton.BackgroundColor3 = Color3.new(1, 0, 0)
kickButton.Text = "Kick Example Player"

kickButton.MouseButton1Click:Connect(function()
    kickPlayer("playerNameToKick") -- Replace with the actual player's name
end)

-- Optional: Function to ban player (not implemented)
local banButton = Instance.new("TextButton", frame)
banButton.Size = UDim2.new(1, 0, 0, 50)
banButton.Position = UDim2.new(0, 0, 0, 360)
banButton.BackgroundColor3 = Color3.new(1, 1, 0)
banButton.Text = "Ban Example Player"

banButton.MouseButton1Click:Connect(function()
    print("Ban functionality is not implemented in this demo.")
end)

-- Optional: RGB Effect for Buttons
while wait(0.5) do
    for _, button in ipairs(frame:GetChildren()) do
        if button:IsA("TextButton") then
            button.BackgroundColor3 = Color3.new(math.random(), math.random(), math.random())
        end
    end
end

Features & Information

Not Fe bypass

Community Comments (1)

swanxyzzzswanxyzzzApr 6, 2025

Chat Gpt

More Scripts for Universal Scripts