Advertisement
Grenesis

Untitled

Oct 13th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. local screenGui = Instance.new("ScreenGui")
  2. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  3. screenGui.Name = "PS99DupeHub"
  4.  
  5. local backgroundFrame = Instance.new("Frame")
  6. backgroundFrame.Parent = screenGui
  7. backgroundFrame.Size = UDim2.new(0, 180, 0, 105)
  8. backgroundFrame.Position = UDim2.new(0.5, -90, 0.5, -55)
  9. backgroundFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  10. backgroundFrame.Active = true
  11.  
  12. local gradient = Instance.new("UIGradient")
  13. gradient.Parent = backgroundFrame
  14. gradient.Color = ColorSequence.new({
  15. ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
  16. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))
  17. })
  18. gradient.Rotation = 90
  19.  
  20. local corner = Instance.new("UICorner")
  21. corner.Parent = backgroundFrame
  22. corner.CornerRadius = UDim.new(0, 15)
  23.  
  24. local titleLabel = Instance.new("TextLabel")
  25. titleLabel.Parent = backgroundFrame
  26. titleLabel.Size = UDim2.new(1, -20, 0, 35)
  27. titleLabel.Position = UDim2.new(0, 10, 0, 0)
  28. titleLabel.Text = "PS99 Dupe💎"
  29. titleLabel.TextScaled = true
  30. titleLabel.TextSize = 37
  31. titleLabel.BackgroundTransparency = 1
  32. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. titleLabel.TextStrokeTransparency = 0
  34. titleLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  35.  
  36. local petNameBox = Instance.new("TextBox")
  37. petNameBox.Parent = backgroundFrame
  38. petNameBox.Size = UDim2.new(1, -20, 0, 30)
  39. petNameBox.Position = UDim2.new(0, 10, 0, 35)
  40. petNameBox.PlaceholderText = "Pet Name"
  41. petNameBox.TextScaled = true
  42. petNameBox.TextSize = 20
  43. petNameBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  44. petNameBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  45. petNameBox.TextStrokeTransparency = 0
  46. petNameBox.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  47.  
  48. local inputCorner = Instance.new("UICorner")
  49. inputCorner.Parent = petNameBox
  50. inputCorner.CornerRadius = UDim.new(0, 10)
  51.  
  52. local dupeButton = Instance.new("TextButton")
  53. dupeButton.Parent = backgroundFrame
  54. dupeButton.Size = UDim2.new(1, -20, 0, 30)
  55. dupeButton.Position = UDim2.new(0, 10, 0, 70)
  56. dupeButton.Text = "Dupe"
  57. dupeButton.TextScaled = true
  58. dupeButton.BackgroundTransparency = 1
  59. dupeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  60. dupeButton.TextStrokeTransparency = 0
  61. dupeButton.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  62.  
  63. local buttonCorner = Instance.new("UICorner")
  64. buttonCorner.Parent = dupeButton
  65. buttonCorner.CornerRadius = UDim.new(0, 10)
  66.  
  67. dupeButton.MouseButton1Down:Connect(function()
  68. dupeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  69. dupeButton.BackgroundTransparency = 0.5
  70. end)
  71.  
  72. dupeButton.MouseButton1Up:Connect(function()
  73. dupeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. dupeButton.BackgroundTransparency = 1
  75. end)
  76.  
  77. dupeButton.MouseButton1Click:Connect(function()
  78. local petName = petNameBox.Text
  79. local Directory = require(game:GetService("ReplicatedStorage").Library.Directory)
  80.  
  81. local function changePetAttributes()
  82. local from = "Lion"
  83. local to = petName
  84.  
  85. if Directory.Pets[from] and Directory.Pets[to] then
  86. for i, v in pairs(Directory.Pets[from]) do
  87. Directory.Pets[from][i] = nil
  88. end
  89.  
  90. for i, v in pairs(Directory.Pets[to]) do
  91. Directory.Pets[from][i] = v
  92. end
  93. end
  94. end
  95.  
  96. changePetAttributes()
  97.  
  98. local args = {
  99. [1] = "cd45c397c1004e43bcfbe535e40f3373"
  100. }
  101.  
  102. game:GetService("ReplicatedStorage").Network.Pets_Equip:FireServer(unpack(args))
  103. end)
  104.  
  105. local toggleButton = Instance.new("TextButton")
  106. toggleButton.Parent = screenGui
  107. toggleButton.Size = UDim2.new(0, 40, 0, 40)
  108. toggleButton.Position = UDim2.new(0.5, -20, 0, -10)
  109. toggleButton.Text = ""
  110. toggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  111. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  112.  
  113. local toggleButtonCorner = Instance.new("UICorner")
  114. toggleButtonCorner.Parent = toggleButton
  115. toggleButtonCorner.CornerRadius = UDim.new(0, 20)
  116.  
  117. local toggleGradient = Instance.new("UIGradient")
  118. toggleGradient.Parent = toggleButton
  119. toggleGradient.Color = ColorSequence.new({
  120. ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
  121. ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))
  122. })
  123. toggleGradient.Rotation = 90
  124.  
  125. local function toggleVisibility()
  126. backgroundFrame.Visible = not backgroundFrame.Visible
  127. end
  128.  
  129. toggleButton.MouseButton1Click:Connect(toggleVisibility)
  130.  
  131. local dragging = false
  132. local dragInput
  133. local dragStart
  134. local startPos
  135.  
  136. local function update(input)
  137. local delta = input.Position - dragStart
  138. backgroundFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  139. end
  140.  
  141. backgroundFrame.InputBegan:Connect(function(input)
  142. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  143. dragging = true
  144. dragStart = input.Position
  145. startPos = backgroundFrame.Position
  146.  
  147. input.Changed:Connect(function()
  148. if input.UserInputState == Enum.UserInputState.End then
  149. dragging = false
  150. end
  151. end)
  152. end
  153. end)
  154.  
  155. backgroundFrame.InputChanged:Connect(function(input)
  156. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  157. dragInput = input
  158. end
  159. end)
  160.  
  161. game:GetService("UserInputService").InputChanged:Connect(function(input)
  162. if dragging and input == dragInput then
  163. update(input)
  164. end
  165. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement