Yhh
--// P E E X H U B - VISUAL PET SANDBOX
--// CLIENT ONLY | SAFE | MODERN UI
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local gui = Instance.new("ScreenGui", player.PlayerGui)
gui.Name = "PeexHubGUI"
gui.ResetOnSpawn = false
--------------------------------------------------
-- UTIL
--------------------------------------------------
local function corner(o,r)
Instance.new("UICorner",o).CornerRadius = UDim.new(0,r)
end
local function tween(o,t,p)
TweenService:Create(o,TweenInfo.new(t,Enum.EasingStyle.Quint,Enum.EasingDirection.Out),p):Play()
end
--------------------------------------------------
-- SPLASH SCREEN
--------------------------------------------------
local splash = Instance.new("Frame",gui)
splash.Size = UDim2.fromScale(1,1)
splash.BackgroundColor3 = Color3.fromRGB(10,10,15)
local logo = Instance.new("ImageLabel",splash)
logo.Image = "rbxassetid://7229442422"
logo.Size = UDim2.fromOffset(120,120)
logo.Position = UDim2.fromScale(0.5,0.45)
logo.AnchorPoint = Vector2.new(0.5,0.5)
logo.BackgroundTransparency = 1
local text = Instance.new("TextLabel",splash)
text.Text = "PeexHub"
text.Font = Enum.Font.GothamBlack
text.TextSize = 28
text.Position = UDim2.fromScale(0.5,0.6)
text.AnchorPoint = Vector2.new(0.5,0.5)
text.BackgroundTransparency = 1
task.spawn(function()
local h = 0
while splash.Parent do
h = (h + 2) % 360
text.TextColor3 = Color3.fromHSV(h/360,1,1)
task.wait(0.03)
end
end)
task.wait(1.8)
tween(splash,0.6,{BackgroundTransparency = 1})
tween(logo,0.6,{ImageTransparency = 1})
tween(text,0.6,{TextTransparency = 1})
task.wait(0.6)
splash:Destroy()
--------------------------------------------------
-- MAIN WINDOW
--------------------------------------------------
local main = Instance.new("Frame",gui)
main.Size = UDim2.fromOffset(560,320)
main.Position = UDim2.fromScale(0.5,0.5)
main.AnchorPoint = Vector2.new(0.5,0.5)
main.BackgroundColor3 = Color3.fromRGB(18,22,30)
main.BorderSizePixel = 0
corner(main,18)
-- RGB STROKE
local stroke = Instance.new("UIStroke",main)
stroke.Thickness = 2
task.spawn(function()
local h = 0
while main.Parent do
h = (h + 1) % 360
stroke.Color = Color3.fromHSV(h/360,1,1)
task.wait(0.04)
end
end)
--------------------------------------------------
-- HEADER
--------------------------------------------------
local header = Instance.new("Frame",main)
header.Size = UDim2.new(1,0,0,42)
header.BackgroundTransparency = 1
local title = Instance.new("TextLabel",header)
title.Text = "PeexHub"
title.Font = Enum.Font.GothamBlack
title.TextSize = 18
title.Position = UDim2.fromOffset(14,0)
title.Size = UDim2.new(1,-100,1,0)
title.BackgroundTransparency = 1
task.spawn(function()
local h = 0
while title.Parent do
h = (h + 2) % 360
title.TextColor3 = Color3.fromHSV(h/360,1,1)
task.wait(0.05)
end
end)
-- CLOSE & MINIMIZE
local function topBtn(txt,x)
local b = Instance.new("TextButton",header)
b.Text = txt
b.Font = Enum.Font.GothamBold
b.TextSize = 14
b.Size = UDim2.fromOffset(28,28)
b.Position = UDim2.fromOffset(x,7)
b.BackgroundColor3 = Color3.fromRGB(40,45,60)
b.TextColor3 = Color3.new(1,1,1)
corner(b,8)
return b
end
local minBtn = topBtn("-", main.Size.X.Offset - 70)
local closeBtn = topBtn("X", main.Size.X.Offset - 36)
closeBtn.MouseButton1Click:Connect(function()
gui:Destroy()
end)
--------------------------------------------------
-- DRAG (REAL DRAG)
--------------------------------------------------
do
local dragging, dragStart, startPos
header.InputBegan:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = i.Position
startPos = main.Position
end
end)
UIS.InputChanged:Connect(function(i)
if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then
local delta = i.Position - dragStart
main.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
end)
UIS.InputEnded:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
end
--------------------------------------------------
-- MINIMIZE BUBBLE
--------------------------------------------------
local bubble = Instance.new("ImageButton",gui)
bubble.Image = "rbxassetid://7229442422"
bubble.Size = UDim2.fromOffset(60,60)
bubble.Position = UDim2.fromScale(0.5,0.8)
bubble.AnchorPoint = Vector2.new(0.5,0.5)
bubble.Visible = false
bubble.BackgroundColor3 = Color3.fromRGB(20,20,30)
corner(bubble,30)
minBtn.MouseButton1Click:Connect(function()
main.Visible = false
bubble.Visible = true
end)
bubble.MouseButton1Click:Connect(function()
bubble.Visible = false
main.Visible = true
end)
--------------------------------------------------
-- CONTENT (AUTO SCROLL)
--------------------------------------------------
local scroll = Instance.new("ScrollingFrame",main)
scroll.Position = UDim2.fromOffset(14,50)
scroll.Size = UDim2.new(1,-28,1,-64)
scroll.CanvasSize = UDim2.new(0,0,0,0)
scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
scroll.ScrollBarImageTransparency = 0.6
scroll.BackgroundTransparency = 1
local layout = Instance.new("UIListLayout",scroll)
layout.Padding = UDim.new(0,12)
--------------------------------------------------
-- PET DATA
--------------------------------------------------
local PETS = {"Frost Spirit","Gilded Seraphin","Christmas Tree"}
local equipped = {}
--------------------------------------------------
-- PET MODEL
--------------------------------------------------
local function spawnPet(name,mutation)
local m = Instance.new("Model")
local p = Instance.new("Part")
p.Size = Vector3.new(1.6,1.6,1.6)
p.Shape = Enum.PartType.Ball
p.Material = Enum.Material.Neon
p.CanCollide = false
p.Color =
mutation=="Rainbow" and Color3.fromHSV(math.random(),1,1)
or mutation=="Golden" and Color3.fromRGB(255,215,0)
or Color3.fromRGB(150,200,255)
p.Parent = m
local bill = Instance.new("BillboardGui",p)
bill.Size = UDim2.fromOffset(160,40)
bill.StudsOffset = Vector3.new(0,2.2,0)
bill.AlwaysOnTop = true
local t = Instance.new("TextLabel",bill)
t.BackgroundTransparency = 1
t.Size = UDim2.fromScale(1,1)
t.Text = mutation and mutation~="" and (name.." ["..mutation.."]") or name
t.Font = Enum.Font.GothamBold
t.TextSize = 13
t.TextColor3 = Color3.fromRGB(230,240,255)
m.PrimaryPart = p
m.Parent = workspace
table.insert(equipped,m)
end
--------------------------------------------------
-- ORBIT EQUIP
--------------------------------------------------
RunService.RenderStepped:Connect(function()
local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
if not hrp then return end
for i,p in ipairs(equipped) do
local a = tick()*1.5 + (i*math.pi*2/#equipped)
p:PivotTo(hrp.CFrame * CFrame.new(math.cos(a)*3,1.6,math.sin(a)*3))
end
end)
--------------------------------------------------
-- UI CARDS
--------------------------------------------------
for _,pet in ipairs(PETS) do
local card = Instance.new("Frame",scroll)
card.Size = UDim2.new(1,0,0,70)
card.BackgroundColor3 = Color3.fromRGB(28,33,45)
corner(card,14)
local lbl = Instance.new("TextLabel",card)
lbl.Text = pet
lbl.Font = Enum.Font.GothamBold
lbl.TextSize = 15
lbl.TextColor3 = Color3.fromRGB(210,225,255)
lbl.Position = UDim2.fromOffset(12,6)
lbl.BackgroundTransparency = 1
lbl.Size = UDim2.new(1,-24,0,20)
local amt = Instance.new("TextBox",card)
amt.Text = "1"
amt.Size = UDim2.fromOffset(50,26)
amt.Position = UDim2.fromOffset(12,38)
amt.BackgroundColor3 = Color3.fromRGB(40,45,60)
amt.TextColor3 = Color3.new(1,1,1)
corner(amt,8)
local mut = Instance.new("TextBox",card)
mut.PlaceholderText = "Mutasi (opsional)"
mut.Size = UDim2.fromOffset(150,26)
mut.Position = UDim2.fromOffset(70,38)
mut.BackgroundColor3 = Color3.fromRGB(40,45,60)
mut.TextColor3 = Color3.new(1,1,1)
corner(mut,8)
local btn = Instance.new("TextButton",card)
btn.Text = "VISUAL"
btn.Size = UDim2.fromOffset(80,26)
btn.Position = UDim2.fromOffset(230,38)
btn.BackgroundColor3 = Color3.fromRGB(90,120,255)
btn.TextColor3 = Color3.new(1,1,1)
corner(btn,10)
btn.MouseButton1Click:Connect(function()
tween(scroll,0.4,{CanvasPosition = Vector2.new(0,card.AbsolutePosition.Y)})
local n = tonumber(amt.Text) or 1
for i=1,math.clamp(n,1,10) do
spawnPet(pet,mut.Text)
end
end)
end
Views: 58
Created At: 2025-12-29 10:11:12
Copy the code below to embed this paste: