Advertisement
VKOPSKS

Untitled

Aug 8th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ses = Instance.new("TextButton")
  7. local Equipped = Instance.new("ImageLabel")
  8. local PetIcon = Instance.new("ImageLabel")
  9. local Locked = Instance.new("TextLabel")
  10. local UICorner = Instance.new("UICorner")
  11. local Level = Instance.new("TextLabel")
  12. local Stars = Instance.new("Frame")
  13. local UIListLayout = Instance.new("UIListLayout")
  14. local Star = Instance.new("ImageLabel")
  15. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  16. local StarGradient = Instance.new("UIGradient")
  17. local HC = Instance.new("TextLabel")
  18. local RarityGradient = Instance.new("ImageLabel")
  19. local DeleteOverlay = Instance.new("ImageLabel")
  20. local GiftboxIcon = Instance.new("ImageLabel")
  21. local StarGradient_2 = Instance.new("UIGradient")
  22. local ButtonUIScale = Instance.new("UIScale")
  23.  
  24. --Properties:
  25.  
  26. ses.Name = "ses"
  27. ses.Parent = game.Players.LocalPlayer.PlayerGui.Inventory.Frame.Main.Pets
  28. ses.BackgroundColor3 = Color3.fromRGB(59, 177, 252)
  29. ses.BorderSizePixel = 0
  30. ses.LayoutOrder = 45
  31. ses.Size = UDim2.new(0, 100, 0, 100)
  32. ses.ZIndex = 2
  33. ses.AutoButtonColor = false
  34. ses.Font = Enum.Font.GothamBold
  35. ses.Text = ""
  36. ses.TextColor3 = Color3.fromRGB(0, 0, 0)
  37. ses.TextSize = 18.000
  38.  
  39. Equipped.Name = "Equipped"
  40. Equipped.Parent = ses
  41. Equipped.AnchorPoint = Vector2.new(0.5, 0.5)
  42. Equipped.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. Equipped.BackgroundTransparency = 1.000
  44. Equipped.BorderSizePixel = 0
  45. Equipped.Position = UDim2.new(0.800000012, 0, 0.200000003, 0)
  46. Equipped.Size = UDim2.new(0.400000006, 0, 0.400000006, 0)
  47. Equipped.Visible = false
  48. Equipped.ZIndex = 11
  49. Equipped.Image = "rbxassetid://6516386809"
  50. Equipped.ScaleType = Enum.ScaleType.Fit
  51.  
  52. PetIcon.Name = "PetIcon"
  53. PetIcon.Parent = ses
  54. PetIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  55. PetIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. PetIcon.BackgroundTransparency = 1.000
  57. PetIcon.BorderSizePixel = 0
  58. PetIcon.Position = UDim2.new(0.5, 0, 0.5, 0)
  59. PetIcon.Size = UDim2.new(1.04999995, 0, 1.04999995, 0)
  60. PetIcon.ZIndex = 5
  61. PetIcon.Image = "rbxassetid://10015952468"
  62. PetIcon.ScaleType = Enum.ScaleType.Fit
  63.  
  64. Locked.Name = "Locked"
  65. Locked.Parent = PetIcon
  66. Locked.AnchorPoint = Vector2.new(0.5, 0.5)
  67. Locked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. Locked.BackgroundTransparency = 1.000
  69. Locked.BorderSizePixel = 0
  70. Locked.Position = UDim2.new(0.5, 0, 0.5, 0)
  71. Locked.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  72. Locked.Visible = false
  73. Locked.ZIndex = 8
  74. Locked.Font = Enum.Font.FredokaOne
  75. Locked.Text = "?"
  76. Locked.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. Locked.TextScaled = true
  78. Locked.TextSize = 18.000
  79. Locked.TextWrapped = true
  80.  
  81. UICorner.CornerRadius = UDim.new(1, 0)
  82. UICorner.Parent = ses
  83.  
  84. Level.Name = "Level"
  85. Level.Parent = ses
  86. Level.AnchorPoint = Vector2.new(1, 1)
  87. Level.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. Level.BackgroundTransparency = 1.000
  89. Level.BorderSizePixel = 0
  90. Level.Position = UDim2.new(1.10000002, 0, 1.20000005, 0)
  91. Level.Size = UDim2.new(1, 0, 0.5, 0)
  92. Level.Visible = false
  93. Level.ZIndex = 10
  94. Level.Font = Enum.Font.FredokaOne
  95. Level.Text = "99"
  96. Level.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. Level.TextScaled = true
  98. Level.TextSize = 18.000
  99. Level.TextStrokeColor3 = Color3.fromRGB(19, 48, 57)
  100. Level.TextStrokeTransparency = 0.000
  101. Level.TextWrapped = true
  102. Level.TextXAlignment = Enum.TextXAlignment.Right
  103. Level.TextYAlignment = Enum.TextYAlignment.Top
  104.  
  105. Stars.Name = "Stars"
  106. Stars.Parent = ses
  107. Stars.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. Stars.BackgroundTransparency = 1.000
  109. Stars.BorderSizePixel = 0
  110. Stars.Size = UDim2.new(1, 0, 0.300000012, 0)
  111. Stars.ZIndex = 10
  112.  
  113. UIListLayout.Parent = Stars
  114. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  115. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  116. UIListLayout.Padding = UDim.new(-0.150000006, 0)
  117.  
  118. Star.Name = "Star"
  119. Star.Parent = Stars
  120. Star.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. Star.BackgroundTransparency = 1.000
  122. Star.BorderSizePixel = 0
  123. Star.Size = UDim2.new(1, 0, 1, 0)
  124. Star.ZIndex = 10
  125. Star.Image = "rbxassetid://7112773308"
  126. Star.ScaleType = Enum.ScaleType.Fit
  127.  
  128. UIAspectRatioConstraint.Parent = Star
  129.  
  130. StarGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 205, 20)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 237, 42))}
  131. StarGradient.Name = "StarGradient"
  132. StarGradient.Parent = Star
  133.  
  134. HC.Name = "HC"
  135. HC.Parent = ses
  136. HC.AnchorPoint = Vector2.new(1, 1)
  137. HC.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  138. HC.BackgroundTransparency = 1.000
  139. HC.BorderSizePixel = 0
  140. HC.Position = UDim2.new(1.10000002, 0, 0.850000024, 0)
  141. HC.Size = UDim2.new(1, 0, 0.200000003, 0)
  142. HC.Visible = false
  143. HC.ZIndex = 10
  144. HC.Font = Enum.Font.FredokaOne
  145. HC.Text = "HC★"
  146. HC.TextColor3 = Color3.fromRGB(138, 146, 255)
  147. HC.TextScaled = true
  148. HC.TextSize = 18.000
  149. HC.TextStrokeColor3 = Color3.fromRGB(19, 48, 57)
  150. HC.TextStrokeTransparency = 0.000
  151. HC.TextWrapped = true
  152. HC.TextXAlignment = Enum.TextXAlignment.Right
  153. HC.TextYAlignment = Enum.TextYAlignment.Top
  154.  
  155. RarityGradient.Name = "RarityGradient"
  156. RarityGradient.Parent = ses
  157. RarityGradient.AnchorPoint = Vector2.new(0.5, 0.5)
  158. RarityGradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  159. RarityGradient.BackgroundTransparency = 1.000
  160. RarityGradient.BorderSizePixel = 0
  161. RarityGradient.Position = UDim2.new(0.5, 0, 0.5, 0)
  162. RarityGradient.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  163. RarityGradient.Visible = false
  164. RarityGradient.Image = "rbxassetid://6511853914"
  165. RarityGradient.ScaleType = Enum.ScaleType.Fit
  166.  
  167. DeleteOverlay.Name = "DeleteOverlay"
  168. DeleteOverlay.Parent = ses
  169. DeleteOverlay.AnchorPoint = Vector2.new(0.5, 0.5)
  170. DeleteOverlay.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  171. DeleteOverlay.BackgroundTransparency = 1.000
  172. DeleteOverlay.BorderSizePixel = 0
  173. DeleteOverlay.Position = UDim2.new(0.5, 0, 0.5, 0)
  174. DeleteOverlay.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  175. DeleteOverlay.Visible = false
  176. DeleteOverlay.ZIndex = 8
  177. DeleteOverlay.Image = "rbxassetid://6996371346"
  178. DeleteOverlay.ImageColor3 = Color3.fromRGB(255, 26, 26)
  179. DeleteOverlay.ScaleType = Enum.ScaleType.Fit
  180.  
  181. GiftboxIcon.Name = "GiftboxIcon"
  182. GiftboxIcon.Parent = ses
  183. GiftboxIcon.AnchorPoint = Vector2.new(1, 1)
  184. GiftboxIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  185. GiftboxIcon.BackgroundTransparency = 1.000
  186. GiftboxIcon.BorderSizePixel = 0
  187. GiftboxIcon.Position = UDim2.new(1, 0, 1, 0)
  188. GiftboxIcon.Size = UDim2.new(0.400000006, 0, 0.400000006, 0)
  189. GiftboxIcon.ZIndex = 10
  190. GiftboxIcon.Image = "rbxassetid://9846432313"
  191. GiftboxIcon.ScaleType = Enum.ScaleType.Fit
  192.  
  193. StarGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 205, 20)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 237, 42))}
  194. StarGradient_2.Name = "StarGradient"
  195. StarGradient_2.Parent = GiftboxIcon
  196.  
  197. ButtonUIScale.Name = "ButtonUIScale"
  198. ButtonUIScale.Parent = ses
  199.  
  200. -- Scripts:
  201.  
  202. local function OGAOTX_fake_script() -- ses.LocalScript
  203. local script = Instance.new('LocalScript', ses)
  204.  
  205. local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
  206. while not v1.Loaded do
  207. game:GetService("RunService").Heartbeat:Wait();
  208. end;
  209.  
  210. script.Parent.MouseButton1Click:Connect(function()
  211. if v1.Message.New("Do you wanna open this gift?", true) then
  212. script.Parent:Destroy()
  213. end
  214. end)
  215. end
  216. coroutine.wrap(OGAOTX_fake_script)()
  217.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement