Advertisement
roblox_exploit

petranchsimulatorGUI

Jul 21st, 2019
885
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. -- reav
  2. local ok = false
  3. local player = game.Players.LocalPlayer
  4.  
  5. -- Objects
  6.  
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local Frame = Instance.new("Frame")
  9. local TextButton = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12. -- Properties
  13.  
  14. ScreenGui.Parent = game:GetService("CoreGui")
  15.  
  16. Frame.Parent = ScreenGui
  17. Frame.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
  18. Frame.BorderColor3 = Color3.new(0, 0, 0)
  19. Frame.Position = UDim2.new(0.172302201, 0, 0.29214862, 0)
  20. Frame.Selectable = true
  21. Frame.Size = UDim2.new(0, 299, 0, 233)
  22. Frame.Active = true
  23. Frame.Draggable = true
  24.  
  25. TextButton.Parent = Frame
  26. TextButton.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  27. TextButton.Position = UDim2.new(0.0327655859, 0, 0.337103128, 0)
  28. TextButton.Size = UDim2.new(0, 279, 0, 74)
  29. TextButton.Font = Enum.Font.SciFi
  30. TextButton.Text = "FARM = OFF"
  31. TextButton.TextColor3 = Color3.new(0.541176, 0, 0)
  32. TextButton.TextSize = 50
  33.  
  34. TextLabel.Parent = Frame
  35. TextLabel.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  36. TextLabel.BorderSizePixel = 0
  37. TextLabel.Position = UDim2.new(-0.00161084533, 0, -0.00398874283, 0)
  38. TextLabel.Size = UDim2.new(0, 299, 0, 25)
  39. TextLabel.Font = Enum.Font.SciFi
  40. TextLabel.Text = "🐾Pet Ranch Simulator by reav"
  41. TextLabel.TextColor3 = Color3.new(0.439216, 0.709804, 0)
  42. TextLabel.TextSize = 13
  43.  
  44. TextLabel_2.Parent = Frame
  45. TextLabel_2.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  46. TextLabel_2.BackgroundTransparency = 100
  47. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  48. TextLabel_2.Position = UDim2.new(-0.00572396815, 0, 0.843203187, 0)
  49. TextLabel_2.Size = UDim2.new(0, 299, 0, 25)
  50. TextLabel_2.Font = Enum.Font.SciFi
  51. TextLabel_2.Text = "Auto=>Rebirth, Equip and Collect"
  52. TextLabel_2.TextColor3 = Color3.new(1, 1, 0)
  53. TextLabel_2.TextSize = 13
  54.  
  55. TextButton.MouseButton1Down:connect(function()
  56. if ok then
  57. TextButton.Text = "FARM = OFF"
  58. TextButton.TextColor3 = Color3.new(0.541176, 0, 0)
  59. else
  60. TextButton.Text = "FARM = ON"
  61. TextButton.TextColor3 = Color3.fromRGB(0, 134, 0)
  62. end
  63. ok = not ok
  64. end)
  65.  
  66. while wait() do
  67. if ok then
  68. spawn(function()
  69. while wait(10) do
  70. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer("RebirthPlayer", 1)
  71. end
  72. end)
  73. spawn(function()
  74. while wait(1) do
  75. if game.Players.LocalPlayer.PlayerGui.MainGui.LeftUIFrame.CoinUI.TextButton.Text == "0" then
  76. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.MainGui.CenterUIFrame.PetInventory.PetInventoryInnerFrame.PetInventoryScrollingFrame:GetChildren()) do
  77. if v.ClassName == "ImageButton" then
  78. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer("CreatePet", v.Name)
  79. end
  80. end
  81. end
  82. end
  83. end)
  84. while wait(1) do
  85. for _,z in pairs(game.Players.LocalPlayer.PlayerGui.MainGui.CenterUIFrame.PetInventory.PetInventoryInnerFrame.PetInventoryScrollingFrame:GetChildren()) do
  86. if z.ClassName == "ImageButton" then
  87. game:GetService("ReplicatedStorage").RemoteEvents.MainRemoteEvent:FireServer("CollectFriendship", z.Name)
  88. end
  89. end
  90. end
  91. end
  92. end
  93.  
  94.  
  95. -- reav
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement