Urbanpower

Millionaire Empire Tycoon [Auto Farm]

Jul 11th, 2022
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local plrTyc = plr.TycoonReference.Value
  3.  
  4. if plrTyc.AutoCollect.Value == false then
  5. firetouchinterest(plr.Character.HumanoidRootPart,plrTyc.StarterParts.AutoCollect.Switch,0)
  6. firetouchinterest(plr.Character.HumanoidRootPart,plrTyc.StarterParts.AutoCollect.Switch,1)
  7. end
  8.  
  9. plrTyc.ButtonsFolder.ChildAdded:Connect(function(newButton)
  10. task.wait()
  11. if not newButton:FindFirstChild("GamePass") and newButton:WaitForChild("Price") then
  12. game:GetService("ReplicatedStorage").RespawnService:FireServer(newButton.Price.Value)
  13. firetouchinterest(plr.Character.HumanoidRootPart,newButton.Head,0)
  14. firetouchinterest(plr.Character.HumanoidRootPart,newButton.Head,1)
  15. end
  16. end)
  17.  
  18. plrTyc.PurchasesFolder.ChildAdded:Connect(function(newThing)
  19. if newThing.Name == "Rebirth5" then
  20. game:GetService("ReplicatedStorage").rebirthEvent:FireServer()
  21. end
  22. end)
  23.  
  24. task.wait()
  25.  
  26. for i,v in ipairs(plrTyc.ButtonsFolder:GetChildren()) do
  27. if not v:FindFirstChild("GamePass") and v:FindFirstChild("Price") then
  28. game:GetService("ReplicatedStorage").RespawnService:FireServer(v.Price.Value)
  29. firetouchinterest(plr.Character.HumanoidRootPart,v.Head,0)
  30. firetouchinterest(plr.Character.HumanoidRootPart,v.Head,1)
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment