Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- screenGui.Name = "PS99DupeHub"
- local backgroundFrame = Instance.new("Frame")
- backgroundFrame.Parent = screenGui
- backgroundFrame.Size = UDim2.new(0, 180, 0, 105)
- backgroundFrame.Position = UDim2.new(0.5, -90, 0.5, -55)
- backgroundFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- backgroundFrame.Active = true
- local gradient = Instance.new("UIGradient")
- gradient.Parent = backgroundFrame
- gradient.Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))
- })
- gradient.Rotation = 90
- local corner = Instance.new("UICorner")
- corner.Parent = backgroundFrame
- corner.CornerRadius = UDim.new(0, 15)
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Parent = backgroundFrame
- titleLabel.Size = UDim2.new(1, -20, 0, 35)
- titleLabel.Position = UDim2.new(0, 10, 0, 0)
- titleLabel.Text = "PS99 Dupe💎"
- titleLabel.TextScaled = true
- titleLabel.TextSize = 37
- titleLabel.BackgroundTransparency = 1
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.TextStrokeTransparency = 0
- titleLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
- local petNameBox = Instance.new("TextBox")
- petNameBox.Parent = backgroundFrame
- petNameBox.Size = UDim2.new(1, -20, 0, 30)
- petNameBox.Position = UDim2.new(0, 10, 0, 35)
- petNameBox.PlaceholderText = "Pet Name"
- petNameBox.TextScaled = true
- petNameBox.TextSize = 20
- petNameBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- petNameBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- petNameBox.TextStrokeTransparency = 0
- petNameBox.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
- local inputCorner = Instance.new("UICorner")
- inputCorner.Parent = petNameBox
- inputCorner.CornerRadius = UDim.new(0, 10)
- local dupeButton = Instance.new("TextButton")
- dupeButton.Parent = backgroundFrame
- dupeButton.Size = UDim2.new(1, -20, 0, 30)
- dupeButton.Position = UDim2.new(0, 10, 0, 70)
- dupeButton.Text = "Dupe"
- dupeButton.TextScaled = true
- dupeButton.BackgroundTransparency = 1
- dupeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- dupeButton.TextStrokeTransparency = 0
- dupeButton.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.Parent = dupeButton
- buttonCorner.CornerRadius = UDim.new(0, 10)
- dupeButton.MouseButton1Down:Connect(function()
- dupeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- dupeButton.BackgroundTransparency = 0.5
- end)
- dupeButton.MouseButton1Up:Connect(function()
- dupeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- dupeButton.BackgroundTransparency = 1
- end)
- dupeButton.MouseButton1Click:Connect(function()
- local petName = petNameBox.Text
- local Directory = require(game:GetService("ReplicatedStorage").Library.Directory)
- local function changePetAttributes()
- local from = "Lion"
- local to = petName
- if Directory.Pets[from] and Directory.Pets[to] then
- for i, v in pairs(Directory.Pets[from]) do
- Directory.Pets[from][i] = nil
- end
- for i, v in pairs(Directory.Pets[to]) do
- Directory.Pets[from][i] = v
- end
- end
- end
- changePetAttributes()
- local args = {
- [1] = "cd45c397c1004e43bcfbe535e40f3373"
- }
- game:GetService("ReplicatedStorage").Network.Pets_Equip:FireServer(unpack(args))
- end)
- local toggleButton = Instance.new("TextButton")
- toggleButton.Parent = screenGui
- toggleButton.Size = UDim2.new(0, 40, 0, 40)
- toggleButton.Position = UDim2.new(0.5, -20, 0, -10)
- toggleButton.Text = ""
- toggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- local toggleButtonCorner = Instance.new("UICorner")
- toggleButtonCorner.Parent = toggleButton
- toggleButtonCorner.CornerRadius = UDim.new(0, 20)
- local toggleGradient = Instance.new("UIGradient")
- toggleGradient.Parent = toggleButton
- toggleGradient.Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))
- })
- toggleGradient.Rotation = 90
- local function toggleVisibility()
- backgroundFrame.Visible = not backgroundFrame.Visible
- end
- toggleButton.MouseButton1Click:Connect(toggleVisibility)
- local dragging = false
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- backgroundFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- backgroundFrame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = backgroundFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- backgroundFrame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if dragging and input == dragInput then
- update(input)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement