Advertisement
Guest User

Roblox Pet Ranch Simulator Script

a guest
May 2nd, 2019
7,380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.64 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Volly#1688", Text = "Pet Ranch Simulator | GUI "})
  2.  
  3.  
  4. -- Credits:
  5. -- YanivYo ( for the gui )
  6. -- NAME4YOU#1192 ( for making gamepass script )
  7. -- reavreav ( for any script )
  8.  
  9. -- Fungsi:
  10. Tepeh = false
  11. Open = false
  12. tlol = false
  13. eeq = false
  14. eeh = false
  15. swr = false
  16. ewe = false
  17. fck = false
  18. puki = false
  19. bch = false
  20. guh = false
  21. eak = false
  22. ce = false
  23. kntl = false
  24.  
  25. -- Variable:
  26. local plr = game.Players.LocalPlayer.Name
  27. local statdisplay = game.ReplicatedStorage[plr.."StatDisplay"]
  28.  
  29.  
  30. -- Instances:
  31. local PetKrunch = Instance.new("ScreenGui")
  32. local Frame = Instance.new("Frame")
  33. local judul = Instance.new("TextLabel")
  34. local OG = Instance.new("TextButton")
  35. local TP = Instance.new("TextButton")
  36. local AF = Instance.new("TextButton")
  37. local GMPS = Instance.new("TextButton")
  38. local ARUn = Instance.new("TextButton")
  39. local AEP = Instance.new("TextButton")
  40. local CT = Instance.new("TextButton")
  41. local AR = Instance.new("TextButton")
  42. local cred = Instance.new("TextLabel")
  43. local Elist = Instance.new("ScrollingFrame")
  44. local T1 = Instance.new("TextButton")
  45. local T2 = Instance.new("TextButton")
  46. local T3 = Instance.new("TextButton")
  47. local T4 = Instance.new("TextButton")
  48. local T5 = Instance.new("TextButton")
  49. local RG = Instance.new("TextButton")
  50.  
  51. --Properties:
  52. PetKrunch.Name = "PetKrunch"
  53. PetKrunch.Parent = game.CoreGui
  54.  
  55. Frame.Parent = PetKrunch
  56. Frame.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  57. Frame.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  58. Frame.BorderSizePixel = 3
  59. Frame.Active = true
  60. Frame.Position = UDim2.new(0.311926603, 0, 0.197674394, 0)
  61. Frame.Size = UDim2.new(0, 451, 0, 382)
  62. Frame.Draggable = true
  63.  
  64. judul.Name = "judul"
  65. judul.Parent = Frame
  66. judul.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  67. judul.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  68. judul.BorderSizePixel = 4
  69. judul.Position = UDim2.new(0, 0, -0.00230575493, 0)
  70. judul.Size = UDim2.new(0, 451, 0, 50)
  71. judul.Font = Enum.Font.Cartoon
  72. judul.Text = "Pet Ranch Simulator"
  73. judul.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  74. judul.TextSize = 41
  75.  
  76. OG.Name = "OG"
  77. OG.Parent = Frame
  78. OG.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  79. OG.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  80. OG.BorderSizePixel = 4
  81. OG.Position = UDim2.new(0.0199556537, 0, 0.193717286, 0)
  82. OG.Size = UDim2.new(0, 143, 0, 43)
  83. OG.Font = Enum.Font.Cartoon
  84. OG.Text = "OpenEgg"
  85. OG.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  86. OG.TextSize = 31
  87. OG.MouseButton1Down:connect(function()
  88.      
  89. if Open == true then
  90. Open = false
  91. OG.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  92. Elist.Visible = false
  93. else
  94. Open = true
  95. OG.BackgroundColor3 = Color3.new(40, 127, 71)
  96. Elist.Visible = true
  97. end
  98. end)
  99.  
  100. TP.Name = "TP"
  101. TP.Parent = Frame
  102. TP.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  103. TP.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  104. TP.BorderSizePixel = 4
  105. TP.Position = UDim2.new(0.0199556537, 0, 0.366492152, 0)
  106. TP.Size = UDim2.new(0, 143, 0, 43)
  107. TP.Font = Enum.Font.Cartoon
  108. TP.Text = "TPPetsToU"
  109. TP.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  110. TP.TextSize = 31
  111. TP.MouseButton1Down:connect(function()
  112.      
  113. if Tepeh == true then
  114. Tepeh = false
  115. TP.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  116. else
  117. Tepeh = true
  118. TP.BackgroundColor3 = Color3.new(40, 127, 71)
  119. while Tepeh do
  120.     wait()
  121.    for _,v in pairs(game.Workspace:GetChildren()) do
  122.    if v.ClassName == "MeshPart" then
  123.        v.Anchored = true
  124.        v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.LookVector * 3
  125.    end
  126. end
  127. end
  128. end
  129. end)
  130.  
  131. AF.Name = "AF"
  132. AF.Parent = Frame
  133. AF.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  134. AF.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  135. AF.BorderSizePixel = 4
  136. AF.Position = UDim2.new(0.0199556537, 0, 0.539267004, 0)
  137. AF.Size = UDim2.new(0, 143, 0, 43)
  138. AF.Font = Enum.Font.Cartoon
  139. AF.Text = "AntiAFK"
  140. AF.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  141. AF.TextSize = 31
  142. AF.MouseButton1Down:connect(function()
  143.      
  144. if eeq == true then
  145. eeq = false
  146. AF.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  147. else
  148. eeq = true
  149. AF.BackgroundColor3 = Color3.new(40, 127, 71)
  150. local VirtualUser=game:service'VirtualUser'
  151. game:service'Players'.LocalPlayer.Idled:connect(function()
  152. VirtualUser:CaptureController()
  153. VirtualUser:ClickButton2(Vector2.new())
  154. end)
  155. end
  156. end)
  157.  
  158. GMPS.Name = "GMPS"
  159. GMPS.Parent = Frame
  160. GMPS.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  161. GMPS.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  162. GMPS.BorderSizePixel = 4
  163. GMPS.Position = UDim2.new(0.662971139, 0, 0.193717271, 0)
  164. GMPS.Size = UDim2.new(0, 143, 0, 43)
  165. GMPS.Font = Enum.Font.Cartoon
  166. GMPS.Text = "Gamepass"
  167. GMPS.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  168. GMPS.TextSize = 31
  169. GMPS.MouseButton1Down:connect(function()
  170.      
  171. if tlol == true then
  172. tlol = false
  173. GMPS.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  174. statdisplay["Gamepass_2xCoins"].Value = false
  175. statdisplay["Rebirth Token"].Value = false
  176. statdisplay["Gamepass_Lucky"].Value = false
  177. else
  178. tlol = true
  179. GMPS.BackgroundColor3 = Color3.new(40, 127, 71)
  180. statdisplay["Gamepass_2xCoins"].Value = true
  181. statdisplay["Rebirth Token"].Value = true
  182. statdisplay["Gamepass_Lucky"].Value = true
  183. end
  184. end)
  185.  
  186. ARUn.Name = "ARUn"
  187. ARUn.Parent = Frame
  188. ARUn.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  189. ARUn.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  190. ARUn.BorderSizePixel = 4
  191. ARUn.Position = UDim2.new(0.662971139, 0, 0.366492152, 0)
  192. ARUn.Size = UDim2.new(0, 143, 0, 43)
  193. ARUn.Font = Enum.Font.Cartoon
  194. ARUn.Text = "AutoCollectPet"
  195. ARUn.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  196. ARUn.TextScaled = true
  197. ARUn.TextSize = 31
  198. ARUn.TextWrapped = true
  199. ARUn.MouseButton1Down:connect(function()
  200.      
  201. if swr == true then
  202. swr = false
  203. ARUn.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  204. else
  205. swr = true
  206. ARUn.BackgroundColor3 = Color3.new(40, 127, 71)
  207. while swr do
  208.    for _,v in pairs(game.Players.LocalPlayer.PlayerGui.MainGui.CenterUIFrame.PetInventory.PetInventoryInnerFrame.PetInventoryScrollingFrame:GetChildren()) do
  209.       game:GetService("ReplicatedStorage").RemoteEvents.MainRemoteEvent:InvokeServer("CollectFriendship", v.Name)
  210.       wait(1)
  211.    end
  212. end
  213. end
  214. end)
  215.  
  216. AEP.Name = "AEP"
  217. AEP.Parent = Frame
  218. AEP.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  219. AEP.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  220. AEP.BorderSizePixel = 4
  221. AEP.Position = UDim2.new(0.662971139, 0, 0.539267004, 0)
  222. AEP.Size = UDim2.new(0, 143, 0, 43)
  223. AEP.Font = Enum.Font.Cartoon
  224. AEP.Text = "AutoEquipPet"
  225. AEP.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  226. AEP.TextScaled = true
  227. AEP.TextSize = 31
  228. AEP.TextWrapped = true
  229. AEP.MouseButton1Down:connect(function()
  230.      
  231. if eeh == true then
  232. eeh = false
  233. AEP.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  234. else
  235. eeh = true
  236. AEP.BackgroundColor3 = Color3.new(40, 127, 71)
  237. while eeh do
  238.    for _,v in pairs(game.Players.LocalPlayer.PlayerGui.MainGui.CenterUIFrame.PetInventory.PetInventoryInnerFrame.PetInventoryScrollingFrame:GetChildren()) do
  239.       game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer("CreatePet", v.Name)
  240.       wait(1)
  241.    end
  242. end
  243. end
  244. end)
  245.  
  246. CT.Name = "CT"
  247. CT.Parent = Frame
  248. CT.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  249. CT.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  250. CT.BorderSizePixel = 4
  251. CT.Position = UDim2.new(0.0199556053, 0, 0.70157069, 0)
  252. CT.Size = UDim2.new(0, 143, 0, 43)
  253. CT.Font = Enum.Font.Cartoon
  254. CT.Text = "CollectTreasure"
  255. CT.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  256. CT.TextSize = 21
  257. CT.TextWrapped = true
  258. CT.MouseButton1Down:connect(function()
  259.      
  260. if ewe == true then
  261. ewe = false
  262. CT.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  263. else
  264. ewe = true
  265. CT.BackgroundColor3 = Color3.new(40, 127, 71)
  266. while ewe do
  267.    local A_1 = "CollectTreasure"
  268.    local A_2 = "TreasureChest"
  269.    local Event = game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction
  270.    Event:FireServer(A_1, A_2)
  271.    wait()
  272. end
  273. end
  274. end)
  275.  
  276. AR.Name = "AR"
  277. AR.Parent = Frame
  278. AR.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  279. AR.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  280. AR.BorderSizePixel = 4
  281. AR.Position = UDim2.new(0.662971139, 0, 0.70157069, 0)
  282. AR.Size = UDim2.new(0, 143, 0, 43)
  283. AR.Font = Enum.Font.Cartoon
  284. AR.Text = "AutoRebirth"
  285. AR.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  286. AR.TextSize = 21
  287. AR.TextWrapped = true
  288. AR.MouseButton1Down:connect(function()
  289.      
  290. if fck == true then
  291. fck = false
  292. AR.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  293. else
  294. fck = true
  295. AR.BackgroundColor3 = Color3.new(40, 127, 71)
  296. while fck do
  297.    local A_1 = "RebirthPlayer"
  298.    local Event = game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction
  299.    Event:FireServer(A_1, 1)
  300.    wait(10)
  301. end
  302. end
  303. end)
  304.  
  305. cred.Name = "cred"
  306. cred.Parent = Frame
  307. cred.BackgroundColor3 = Color3.new(1, 1, 1)
  308. cred.BackgroundTransparency = 1
  309. cred.Position = UDim2.new(0, 0, 0.869109929, 0)
  310. cred.Size = UDim2.new(0, 451, 0, 50)
  311. cred.Font = Enum.Font.Cartoon
  312. cred.Text = "Credits: YanivYo (Search On Roblox)"
  313. cred.TextColor3 = Color3.new(0, 0, 0)
  314. cred.TextSize = 21
  315.  
  316. Elist.Name = "Elist"
  317. Elist.Parent = Frame
  318. Elist.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  319. Elist.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  320. Elist.BorderSizePixel = 4
  321. Elist.Position = UDim2.new(-0.379157424, 0, -0.0157068055, 0)
  322. Elist.Size = UDim2.new(0, 157, 0, 388)
  323. Elist.Visible = false
  324.  
  325. T1.Name = "T1"
  326. T1.Parent = Elist
  327. T1.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  328. T1.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  329. T1.BorderSizePixel = 4
  330. T1.Position = UDim2.new(0.0581721403, 0, 0.00688929483, 0)
  331. T1.Size = UDim2.new(0, 125, 0, 43)
  332. T1.Font = Enum.Font.Cartoon
  333. T1.Text = "Tier1"
  334. T1.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  335. T1.TextSize = 21
  336. T1.TextWrapped = true
  337. T1.MouseButton1Down:connect(function()
  338.  
  339. if puki == true then
  340. puki = false
  341. T1.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  342. else
  343. puki = true
  344. T1.BackgroundColor3 = Color3.new(40, 127, 71)
  345. while puki do
  346.     wait()
  347. local tbl_main =
  348. {
  349.       "BuyEgg",
  350.       "Tier1Egg"
  351. }
  352. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  353. end
  354. end
  355. end)
  356.  
  357. T2.Name = "T2"
  358. T2.Parent = Elist
  359. T2.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  360. T2.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  361. T2.BorderSizePixel = 4
  362. T2.Position = UDim2.new(0.0581721403, 0, 0.0841144323, 0)
  363. T2.Size = UDim2.new(0, 125, 0, 43)
  364. T2.Font = Enum.Font.Cartoon
  365. T2.Text = "Tier2"
  366. T2.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  367. T2.TextSize = 21
  368. T2.TextWrapped = true
  369. T2.MouseButton1Down:connect(function()
  370.  
  371. if bch == true then
  372. bch = false
  373. T2.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  374. else
  375. bch = true
  376. T2.BackgroundColor3 = Color3.new(40, 127, 71)
  377. while bch do
  378.     wait()
  379. local tbl_main =
  380. {
  381.       "BuyEgg",
  382.       "Tier2Egg"
  383. }
  384. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  385. end
  386. end
  387. end)
  388.  
  389. T3.Name = "T3"
  390. T3.Parent = Elist
  391. T3.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  392. T3.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  393. T3.BorderSizePixel = 4
  394. T3.Position = UDim2.new(0.0581721403, 0, 0.161339566, 0)
  395. T3.Size = UDim2.new(0, 125, 0, 43)
  396. T3.Font = Enum.Font.Cartoon
  397. T3.Text = "Tier3"
  398. T3.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  399. T3.TextSize = 21
  400. T3.TextWrapped = true
  401. T3.MouseButton1Down:connect(function()
  402.  
  403. if guh == true then
  404. guh = false
  405. T3.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  406. else
  407. guh = true
  408. T3.BackgroundColor3 = Color3.new(40, 127, 71)
  409. while guh do
  410.     wait()
  411. local tbl_main =
  412. {
  413.       "BuyEgg",
  414.       "Tier3Egg"
  415. }
  416. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  417. end
  418. end
  419. end)
  420.  
  421. T4.Name = "T4"
  422. T4.Parent = Elist
  423. T4.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  424. T4.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  425. T4.BorderSizePixel = 4
  426. T4.Position = UDim2.new(0.0581721403, 0, 0.2385647, 0)
  427. T4.Size = UDim2.new(0, 125, 0, 43)
  428. T4.Font = Enum.Font.Cartoon
  429. T4.Text = "Tier4"
  430. T4.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  431. T4.TextSize = 21
  432. T4.TextWrapped = true
  433. T4.MouseButton1Down:connect(function()
  434.  
  435. if eak == true then
  436. eak = false
  437. T4.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  438. else
  439. eak = true
  440. T4.BackgroundColor3 = Color3.new(40, 127, 71)
  441. while eak do
  442.     wait()
  443. local tbl_main =
  444. {
  445.       "BuyEgg",
  446.       "Tier4Egg"
  447. }
  448. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  449. end
  450. end
  451. end)
  452.  
  453. T5.Name = "T5"
  454. T5.Parent = Elist
  455. T5.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  456. T5.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  457. T5.BorderSizePixel = 4
  458. T5.Position = UDim2.new(0.0581721403, 0, 0.317098737, 0)
  459. T5.Size = UDim2.new(0, 125, 0, 43)
  460. T5.Font = Enum.Font.Cartoon
  461. T5.Text = "Tier5"
  462. T5.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  463. T5.TextSize = 21
  464. T5.TextWrapped = true
  465. T5.MouseButton1Down:connect(function()
  466.  
  467. if ce == true then
  468. ce = false
  469. T5.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  470. else
  471. ce = true
  472. T5.BackgroundColor3 = Color3.new(40, 127, 71)
  473. while ce do
  474.     wait()
  475. local tbl_main =
  476. {
  477.       "BuyEgg",
  478.       "Tier5Egg"
  479. }
  480. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  481. end
  482. end
  483. end)
  484.  
  485. RG.Name = "RG"
  486. RG.Parent = Elist
  487. RG.BackgroundColor3 = Color3.new(0.203922, 0.596078, 0.858824)
  488. RG.BorderColor3 = Color3.new(0.160784, 0.501961, 0.72549)
  489. RG.BorderSizePixel = 4
  490. RG.Position = UDim2.new(0.0581721403, 0, 0.396941662, 0)
  491. RG.Size = UDim2.new(0, 125, 0, 43)
  492. RG.Font = Enum.Font.Cartoon
  493. RG.Text = "RebirthEgg"
  494. RG.TextColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  495. RG.TextSize = 21
  496. RG.TextWrapped = true
  497. RG.MouseButton1Down:connect(function()
  498.  
  499. if kntl == true then
  500. kntl = false
  501. RG.BackgroundColor3 = Color3.new(0.607843, 0.34902, 0.713726)
  502. else
  503. kntl = true
  504. RG.BackgroundColor3 = Color3.new(40, 127, 71)
  505. while kntl do
  506.     wait()
  507. local tbl_main =
  508. {
  509.       "BuyEgg",
  510.       "RebirthEgg"
  511. }
  512. game:GetService("ReplicatedStorage").RemoteFunctions.MainRemoteFunction:InvokeServer(unpack(tbl_main))
  513. end
  514. end
  515. end)
  516. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement