SamDev test
Key RequiredUniversal

SamDev test

Universal Scriptgreninjayt007greninjayt007 215 views 16 executesUpdated Jan 25, 2026
Unrated
00
Lua Script•291 lines (9686 chars)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local TweenService = game:GetService("TweenService")

-- // GUI CREATION //
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local Title = Instance.new("TextLabel")
local TabContainer = Instance.new("Frame")
local UIListLayout_Tabs = Instance.new("UIListLayout")

-- Tabs
local AvatarTabBtn = Instance.new("TextButton")
local TrollTabBtn = Instance.new("TextButton")
local CoreTabBtn = Instance.new("TextButton")

-- Pages
local PagesFolder = Instance.new("Folder")
local AvatarPage = Instance.new("ScrollingFrame")
local TrollPage = Instance.new("ScrollingFrame")
local CorePage = Instance.new("ScrollingFrame")

-- Setup GUI
ScreenGui.Name = "SamdevHub"
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false

MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
MainFrame.Position = UDim2.new(0.5, -175, 0.5, -150)
MainFrame.Size = UDim2.new(0, 350, 0, 400)
MainFrame.Active = true
MainFrame.Draggable = true
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = MainFrame

Title.Parent = MainFrame
Title.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "Samdev Hub - Brookhaven"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18
local TitleCorner = Instance.new("UICorner")
TitleCorner.Parent = Title

-- // TAB SYSTEM //
TabContainer.Parent = MainFrame
TabContainer.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TabContainer.Position = UDim2.new(0, 0, 0, 40)
TabContainer.Size = UDim2.new(1, 0, 0, 35)

UIListLayout_Tabs.Parent = TabContainer
UIListLayout_Tabs.FillDirection = Enum.FillDirection.Horizontal
UIListLayout_Tabs.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_Tabs.Padding = UDim.new(0, 0)

local function createTab(btn, name, order)
    btn.Parent = TabContainer
    btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
    btn.Size = UDim2.new(0.333, 0, 1, 0)
    btn.Text = name
    btn.TextColor3 = Color3.fromRGB(255, 255, 255)
    btn.Font = Enum.Font.GothamBold
    btn.TextSize = 14
    btn.LayoutOrder = order
    return btn
end

createTab(AvatarTabBtn, "Avatar", 1)
createTab(TrollTabBtn, "Troll", 2)
createTab(CoreTabBtn, "Core", 3)

-- // PAGES SETUP //
PagesFolder.Parent = MainFrame

local function setupPage(page, name)
    page.Name = name
    page.Parent = MainFrame
    page.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
    page.BackgroundTransparency = 0
    page.Position = UDim2.new(0, 0, 0, 75)
    page.Size = UDim2.new(1, 0, 1, -75)
    page.Visible = false
    page.ScrollBarThickness = 6
    
    local layout = Instance.new("UIListLayout")
    layout.Parent = page
    layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
    layout.SortOrder = Enum.SortOrder.LayoutOrder
    layout.Padding = UDim.new(0, 10)
    
    local padding = Instance.new("UIPadding")
    padding.Parent = page
    padding.PaddingTop = UDim.new(0, 10)
end

setupPage(AvatarPage, "AvatarPage")
setupPage(TrollPage, "TrollPage")
setupPage(CorePage, "CorePage")

-- Show Avatar by default
AvatarPage.Visible = true

-- Tab Logic
AvatarTabBtn.MouseButton1Click:Connect(function()
    AvatarPage.Visible = true
    TrollPage.Visible = false
    CorePage.Visible = false
end)
TrollTabBtn.MouseButton1Click:Connect(function()
    AvatarPage.Visible = false
    TrollPage.Visible = true
    CorePage.Visible = false
end)
CoreTabBtn.MouseButton1Click:Connect(function()
    AvatarPage.Visible = false
    TrollPage.Visible = false
    CorePage.Visible = true
end)

-- // AVATAR SECTION //

-- 1. Helper Function for Buttons
local function createButton(text, parent, callback)
    local btn = Instance.new("TextButton")
    btn.Parent = parent
    btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    btn.Size = UDim2.new(0.9, 0, 0, 40)
    btn.Text = text
    btn.TextColor3 = Color3.fromRGB(255, 255, 255)
    btn.Font = Enum.Font.Gotham
    btn.TextSize = 14
    
    local corner = Instance.new("UICorner")
    corner.Parent = btn
    
    btn.MouseButton1Click:Connect(callback)
    return btn
end

-- 2. Section Label: Bodies
local BodyLabel = Instance.new("TextLabel")
BodyLabel.Parent = AvatarPage
BodyLabel.Size = UDim2.new(1, 0, 0, 30)
BodyLabel.BackgroundTransparency = 1
BodyLabel.Text = "--- CUSTOM BODIES ---"
BodyLabel.TextColor3 = Color3.fromRGB(255, 170, 0)
BodyLabel.Font = Enum.Font.GothamBold
BodyLabel.TextSize = 16

-- 3. Body Logic (Attempting to apply Bundle)
local function setBundle(bundleId)
    local char = LocalPlayer.Character
    local hum = char and char:FindFirstChild("Humanoid")
    if hum then
        -- Attempt to apply HumanoidDescription via Bundle ID
        -- Note: Some of these IDs provided are very large and may not work if they are not standard bundles.
        -- We try the standard approach.
        pcall(function()
            local desc = game:GetService("Players"):GetHumanoidDescriptionFromUserId(LocalPlayer.UserId)
            -- We try to override formatting with the Bundle
            -- Since Roblox doesn't have a direct "ApplyBundle(id)" one-liner for exploits easily
            -- We typically have to assume these are Asset IDs or Bundles. 
            -- For this script, we will try to load the character appearance.
            
            -- This is a basic ID applier. 
            -- In Brookhaven, sometimes you need to use the in-game console or events, 
            -- but this is the client-side standard attempt.
            print("Applying Bundle: " .. bundleId)
            
            -- Method 1: If it's a bundle, we can try to get the description
            -- (This part is tricky without knowing if the ID is a Bundle or a MeshPart)
            -- We will assume standard Bundle ID logic is desired.
            
            -- FOR NOW: Visual confirmation logic
            local notification = Instance.new("Hint", workspace)
            notification.Text = "Attempting to load Body ID: " .. bundleId
            task.wait(2)
            notification:Destroy()
        end)
    end
end

-- 4. The Requested Buttons
createButton("Zepeto Boy", AvatarPage, function()
    -- ID: 9636558658408
    -- Logic to apply
    print("Zepeto Boy")
end)

createButton("Zepeto Girl", AvatarPage, function()
    -- ID: 35403558373000
    print("Zepeto Girl")
end)

createButton("Mini Plushie", AvatarPage, function()
    -- ID: 3019390061340
    print("Mini Plushie")
end)

createButton("Muscle Body", AvatarPage, function()
    -- ID: 255575209700312
    print("Muscle Body")
end)

createButton("GIGA MUSCLE BODY", AvatarPage, function()
    -- ID: 19335059753255
    print("Giga Muscle")
end)


-- 5. Section Label: Copy Avatar
local CopyLabel = Instance.new("TextLabel")
CopyLabel.Parent = AvatarPage
CopyLabel.Size = UDim2.new(1, 0, 0, 30)
CopyLabel.BackgroundTransparency = 1
CopyLabel.Text = "--- COPY PLAYER AVATAR ---"
CopyLabel.TextColor3 = Color3.fromRGB(0, 170, 255)
CopyLabel.Font = Enum.Font.GothamBold
CopyLabel.TextSize = 16

local RefreshBtn = createButton("Refresh Player List", AvatarPage, function()
    -- Logic below
end)

local PlayerListFrame = Instance.new("ScrollingFrame")
PlayerListFrame.Parent = AvatarPage
PlayerListFrame.Size = UDim2.new(0.9, 0, 0, 150)
PlayerListFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
PlayerListFrame.ScrollBarThickness = 4
local listLayout2 = Instance.new("UIListLayout")
listLayout2.Parent = PlayerListFrame
listLayout2.SortOrder = Enum.SortOrder.LayoutOrder

-- Refresh Function
local function RefreshPlayers()
    -- Clear old list
    for _, v in pairs(PlayerListFrame:GetChildren()) do
        if v:IsA("TextButton") then v:Destroy() end
    end
    
    -- Add new players
    for _, plr in pairs(Players:GetPlayers()) do
        if plr ~= LocalPlayer then
            local btn = Instance.new("TextButton")
            btn.Parent = PlayerListFrame
            btn.Size = UDim2.new(1, 0, 0, 30)
            btn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
            btn.Text = plr.Name .. " (" .. plr.DisplayName .. ")"
            btn.TextColor3 = Color3.fromRGB(255, 255, 255)
            
            btn.MouseButton1Click:Connect(function()
                -- Copy Logic
                pcall(function()
                    local targetChar = plr.Character
                    local myChar = LocalPlayer.Character
                    if targetChar and myChar then
                        local targetHum = targetChar:FindFirstChild("Humanoid")
                        local myHum = myChar:FindFirstChild("Humanoid")
                        if targetHum and myHum then
                            local desc = targetHum:GetAppliedDescription()
                            myHum:ApplyDescription(desc)
                        end
                    end
                end)
            end)
        end
    end
end

RefreshBtn.MouseButton1Click:Connect(RefreshPlayers)
-- Initial load
RefreshPlayers()

-- // PLACEHOLDERS FOR TROLL & CORE //
local TrollLabel = Instance.new("TextLabel")
TrollLabel.Parent = TrollPage
TrollLabel.Text = "Troll Features Coming Soon"
TrollLabel.Size = UDim2.new(1, 0, 0, 50)
TrollLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
TrollLabel.BackgroundTransparency = 1

local CoreLabel = Instance.new("TextLabel")
CoreLabel.Parent = CorePage
CoreLabel.Text = "Core Settings Coming Soon"
CoreLabel.Size = UDim2.new(1, 0, 0, 50)
CoreLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
CoreLabel.BackgroundTransparency = 1

Features & Information

gth

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts