-- Services
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local UserInputService = game:GetService("UserInputService")
-- ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "BubbleGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = PlayerGui
-- Bubble Button
local bubble = Instance.new("ImageButton")
bubble.Name = "BubbleButton"
bubble.Size = UDim2.fromOffset(30, 30)
bubble.Position = UDim2.new(0.5, -15, 0.5, -15)
bubble.BackgroundTransparency = 1
bubble.Image = "rbxassetid://135281262396139"
bubble.Parent = screenGui
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(1, 0)
corner.Parent = bubble
-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.fromOffset(250, 150)
mainFrame.Position = UDim2.new(0.5, -125, 0.5, -75)
mainFrame.BackgroundColor3 = Color3.fromRGB(40,40,40)
mainFrame.Visible = false
mainFrame.Parent = screenGui
local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 10)
uiCorner.Parent = mainFrame
-- Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -40, 0, 30)
title.Position = UDim2.new(0, 10, 0, 0)
title.BackgroundTransparency = 1
title.Text = "SillyRyuko Hub"
title.Font = Enum.Font.SourceSansBold
title.TextSize = 18
title.TextColor3 = Color3.fromRGB(255,255,255)
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = mainFrame
-- Close Button
local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.fromOffset(30, 30)
closeBtn.Position = UDim2.new(1, -35, 0, 0)
closeBtn.BackgroundColor3 = Color3.fromRGB(200,50,50)
closeBtn.Text = "X"
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.TextSize = 18
closeBtn.TextColor3 = Color3.fromRGB(255,255,255)
closeBtn.Parent = mainFrame
-- Buttons
local btn1 = Instance.new("TextButton")
btn1.Size = UDim2.new(1, -20, 0, 30)
btn1.Position = UDim2.new(0, 10, 0, 40)
btn1.BackgroundColor3 = Color3.fromRGB(70,70,70)
btn1.Text = "Destroy Other Player"
btn1.TextColor3 = Color3.new(1,1,1)
btn1.Font = Enum.Font.SourceSansBold
btn1.TextSize = 16
btn1.Parent = mainFrame
local btn2 = Instance.new("TextButton")
btn2.Size = UDim2.new(1, -20, 0, 30)
btn2.Position = UDim2.new(0, 10, 0, 80)
btn2.BackgroundColor3 = Color3.fromRGB(70,70,70)
btn2.Text = "Build Platform"
btn2.TextColor3 = Color3.new(1,1,1)
btn2.Font = Enum.Font.SourceSansBold
btn2.TextSize = 16
btn2.Parent = mainFrame
-- Dragging bubble
local dragging = false
local dragStart, startPos
bubble.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = bubble.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch) then
local delta = input.Position - dragStart
bubble.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
end
end)
-- Toggle frame
bubble.MouseButton1Click:Connect(function()
bubble.Visible = false
mainFrame.Visible = true
end)
closeBtn.MouseButton1Click:Connect(function()
mainFrame.Visible = false
bubble.Visible = true
end)
-- Button Functions
btn1.MouseButton1Click:Connect(function()
for _, plr in pairs(Players:GetPlayers()) do
if plr ~= LocalPlayer and plr.Character then
plr.Character:Destroy()
end
end
end)
btn2.MouseButton1Click:Connect(function()
local char = LocalPlayer.Character
if char and char:FindFirstChild("HumanoidRootPart") then
local hrp = char.HumanoidRootPart
local platform = Instance.new("Part")
platform.Size = Vector3.new(10,0.3,10)
platform.Anchored = true
platform.Position = hrp.Position - Vector3.new(0,3,0)
platform.Color = Color3.fromRGB(0,255,0)
platform.Parent = workspace
end
end)