Advertisement
Honansik

Pet Simulator X GUI Script [Egg of Many Gifts Auto Buy]

Dec 21st, 2021
1,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. local Toggle = false
  2.  
  3. local GUI = Instance.new("ScreenGui")
  4. local Button = Instance.new("TextButton")
  5.  
  6. GUI.Name = "GUI"
  7. GUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8.  
  9.  
  10.  
  11. Button.Name = "Button"
  12. Button.Parent = GUI
  13. Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  14. Button.BackgroundTransparency = 0.30000001192093
  15. Button.BorderSizePixel = 0
  16. Button.Position = UDim2.new(0.5, 0, 0.5, 0)
  17. Button.Size = UDim2.new(0, 83, 0, 34)
  18. Button.Font = Enum.Font.SourceSans
  19. Button.Text = "TOGGLE"
  20. Button.TextColor3 = Color3.new(1, 1, 1)
  21. Button.TextSize = 20
  22. Button.Draggable = true
  23.  
  24. Button.MouseButton1Click:connect(function()
  25.     Toggle = not Toggle
  26. end)
  27.  
  28. game:GetService('RunService').Stepped:connect(function()
  29.     if Toggle then
  30.         local args
  31. = {
  32. [1] = {
  33. [1] = "Egg of Many Gifts", --Name EGG
  34. [2] = false
  35. }
  36. }
  37. workspace.__THINGS.__REMOTES:FindFirstChild("buy egg"):InvokeServer(unpack(args))
  38.     end
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement