You may encounter some 500 errors on script pages. This is actively being fixed, sorry for the inconvenience!
Universal Script 📌
10.9k Views
23 Executions

Team lolz gui

Universal Script 📌
Hulseytea3
Hulseytea3First script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Not Fe bypass

Updates

  1. Script edited: Create script

View Raw
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])


Comments

1
Log in to join the conversation. Login
swanxyzzz's profile picture
swanxyzzz2 years ago

Chat Gpt

1