Advertisement
Guest User

Pet Ranch Simulator

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