Piggy [THE HOLLOW]
17.4k Views
570 Executions

V2 BY ME

Piggy
ZAPP
ZAPPFirst script
2 years ago
Please login to perform these actions:

V2 BY ME is a Piggy script for Roblox, uploaded to ScriptBlox on Jun 21, 2024.

Does it work?

No reports yet

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

Also noticed:

Description

Piggy GUI BUT BETTER

View Raw
-- Create PiggyGui
local PiggyGui = Instance.new("ScreenGui")
PiggyGui.Name = "PiggyGui"
PiggyGui.Parent = game.CoreGui

-- Create ScrollingFrame
local ScrollingFrame = Instance.new("ScrollingFrame", PiggyGui)
ScrollingFrame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
ScrollingFrame.Position = UDim2.new(0.18, 0, 0.42, 0)  -- Move to the right
ScrollingFrame.Size = UDim2.new(0, 300, 0, 400)  -- Larger size
ScrollingFrame.Visible = false  -- Initially hidden

-- Create Toggle Button
local ToggleButton = Instance.new("TextButton", PiggyGui)
ToggleButton.Name = "ToggleButton"
ToggleButton.Size = UDim2.new(0, 50, 0, 50)
ToggleButton.Position = UDim2.new(0.5, -25, 0.5, -25)  -- Center of the screen
ToggleButton.Text = "P"
ToggleButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
ToggleButton.TextColor3 = Color3.new(1, 1, 1)
ToggleButton.Active = true
ToggleButton.BorderSizePixel = 0
ToggleButton.BackgroundTransparency = 0.5
ToggleButton.ClipsDescendants = true

-- Make ToggleButton draggable
local draggingToggle
local dragInputToggle
local dragStartToggle
local startPosToggle

local function updateToggle(input)
    local delta = input.Position - dragStartToggle
    ToggleButton.Position = UDim2.new(startPosToggle.X.Scale, startPosToggle.X.Offset + delta.X, startPosToggle.Y.Scale, startPosToggle.Y.Offset + delta.Y)
end

ToggleButton.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        draggingToggle = true
        dragStartToggle = input.Position


Comments

5
Log in to join the conversation. Login
alxddr's profile picture
alxddr2 years ago(edited)

of gasoline

1
alxddr's profile picture
alxddr2 years ago(edited)

make it for book 2, in the temple chapter there is only the option of

1
ZAPP's profile picture
ZAPPUploader2 years ago(edited)

it works on book 2 :P

1
Moor's profile picture
Moor2 years ago(edited)

make it work for book 2 pls

1
ZAPP's profile picture
ZAPPUploader2 years ago(edited)

its good right?

1

Tags

More Piggy scripts

See all
Piggy [THE HOLLOW]
194.8k
609
4 years ago
Key System
Piggy [THE HOLLOW]
134.9k
535
2 years ago
Piggy [THE HOLLOW]
130.5k
16.6k
3 years ago
Piggy [THE HOLLOW]
6.5k
72.2k
Bumped 2 weeks ago
Piggy [THE HOLLOW]
1.3k
5.1k
2 weeks ago
Key System
Piggy [THE HOLLOW]
2.6k
19.8k
Approved 3 weeks ago