Advertisement
kingmohamed

Military Tycoon

Jan 30th, 2023 (edited)
2,511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. function getHash()
  2. for _, v in pairs(game:GetService("Workspace").PlayerTycoons:GetDescendants()) do
  3. if v:IsA("ObjectValue") and v.Name == "Owner" then
  4. if tostring(v.Value) == game.Players.LocalPlayer.Name then
  5. return (v.Parent.Parent.Name)
  6. end
  7. end
  8. end
  9. end
  10.  
  11. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/mohamedyoo/owlhub/main/New%20ui"))()
  12. local Window = Library.CreateLib("Military Tycoon", "DarkTheme")
  13. -- MAIN
  14. local Main = Window:NewTab("Main")
  15. local Section = Main:NewSection("Main")
  16.  
  17. Section:NewToggle("Cash Farm", "Make your player auto click", function(val)
  18. getgenv().cashtog = val
  19. end)
  20.  
  21. Section:NewToggle("Auto-Buy", "Make your player auto click", function(val)
  22. getgenv().farmtog = val
  23. end)
  24.  
  25. Section:NewButton("Die", "Make your player auto click", function()
  26. pcall(function()
  27. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  28. end)
  29. end)
  30.  
  31. Section:NewSlider("Jump", "SliderInfo", 500, 0, function(val) -- 500 (MaxValue) | 0 (MinValue)
  32. game.Players.LocalPlayer.Character.Humanoid.JumpPower = val
  33. end)
  34.  
  35. Section:NewSlider("Speed", "SliderInfo", 500, 0, function(val) -- 500 (MaxValue) | 0 (MinValue)
  36. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = val
  37. end)
  38.  
  39. Section:NewButton("Noclip gui", "Make your player auto click", function()
  40. -- Script:
  41. loadstring(game:HttpGet("https://raw.githubusercontent.com/Mirgarr/noclip-script-roblox/main/Noclip"))();
  42.  
  43. -- Enjoy!
  44. end)
  45.  
  46. task.spawn(
  47. function()
  48. while task.wait(1) do
  49. if getgenv().cashtog then
  50. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").PlayerTycoons[tostring(getHash())].Essentials.Giver.CollectButton.CFrame * CFrame.new(0,3,0)
  51. end
  52. end
  53. end
  54. )
  55. task.spawn(
  56. function()
  57. while task.wait(.5) do
  58. if getgenv().farmtog then
  59. for _, v in pairs(
  60. (game:GetService("Workspace")).PlayerTycoons[tostring(getHash())].Buttons:GetDescendants()
  61. ) do
  62.  
  63. if v:IsA("TextLabel") and string.find(v.Text, "$") then
  64. if tostring(v.Parent.Parent.BrickColor) == "Lime green" and getgenv().farmtog then
  65. getgenv().tog = true
  66. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent.Parent.CFrame
  67. task.wait(1)
  68. getgenv().tog = false
  69. end
  70. end
  71. end
  72. end
  73. end
  74. end
  75. )
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement