Advertisement
robloxscript111

Unicorn Tycoon [Update 1!] 🦄

Feb 15th, 2023
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.39 KB | None | 0 0
  1. -- Game ID: 11397035899
  2.  
  3. getgenv().autoCollectEnabled = true
  4. getgenv().autoHeartDepositEnabled = true
  5. getgenv().autoMergeEnabled = true
  6. getgenv().autoBuyUnicornsEnabled = true
  7. getgenv().autoRatePurchaseEnabled = true
  8. getgenv().infiniteJumpEnabled = true
  9. getgenv().clickTpEnabled = true
  10. getgenv().clickTpBypassEnabled = true
  11. getgenv().noClipEnabled = true
  12. getgenv().autoBuyUnicornsAmount = nil
  13.  
  14. -------------------- Config ----------------------
  15.  
  16. function walkSpeed(speed)
  17. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
  18. end
  19.  
  20. function teleportTo(player)
  21. local localPlayer = game.Players.LocalPlayer
  22. localPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  23. wait()
  24. end
  25.  
  26. function teleportLocalPlayerBypass(speed)
  27. if speed == 0 then clickTpBypassEnabled = false return end
  28. clickTpBypassEnabled = true
  29.  
  30. local bodyVelocityEnabled = true
  31. local UserInputService = game:GetService("UserInputService")
  32. local localPlayer = game.Players.LocalPlayer
  33. local mouse = localPlayer:GetMouse()
  34. local TweenService = game:GetService("TweenService")
  35.  
  36. function toPosition(position)
  37. local character = localPlayer.Character
  38. if character then
  39. local humanoidRootPart = character.HumanoidRootPart
  40. local distance = (humanoidRootPart.Position - mouse.Hit.p).magnitude
  41. local tweenSpeed = distance / speed
  42. local tweenInfo = TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear)
  43. local tweenProperties = {CFrame = CFrame.new(position)}
  44. TweenService:Create(humanoidRootPart, tweenInfo, tweenProperties):Play()
  45. if bodyVelocityEnabled then
  46. local bodyVelocity = Instance.new("BodyVelocity")
  47. bodyVelocity.Parent = humanoidRootPart
  48. bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  49. bodyVelocity.Velocity = Vector3.new(0, 0, 0)
  50. wait(tweenSpeed)
  51. bodyVelocity:Destroy()
  52. end
  53. end
  54. end
  55. UserInputService.InputBegan:Connect(function(input)
  56. if clickTpBypassEnabled and input.UserInputType == Enum.UserInputType.MouseButton1 and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
  57. local position = mouse.Hit.p
  58. toPosition(position)
  59. end
  60. end)
  61. end
  62.  
  63. function teleportLocalPlayer(input)
  64. local Player = game.Players.LocalPlayer
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. if clickTpEnabled and input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
  68. local Char = Player.Character
  69. if Char then
  70. Char:MoveTo(Mouse.Hit.p)
  71. end
  72. end
  73. end
  74.  
  75. function infiniteJump()
  76. game:GetService("UserInputService").JumpRequest:Connect(function()
  77. if not infiniteJumpEnabled then return end
  78. game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping")
  79. end)
  80. end
  81.  
  82.  
  83. function noClip()
  84. local player = game.Players.LocalPlayer
  85. local character = player.Character or player.CharacterAdded:Wait()
  86. local rootPart = character:FindFirstChild("HumanoidRootPart") or character.PrimaryPart
  87.  
  88. local function isDescendantOfTerrain(part)
  89. local terrain = game.Workspace.Terrain
  90. return terrain and terrain:IsAncestorOf(part)
  91. end
  92.  
  93. game:GetService("RunService").Stepped:Connect(function()
  94. if noClipEnabled then
  95. for _, part in ipairs(character:GetDescendants()) do
  96. if part:IsA("BasePart") and not isDescendantOfTerrain(part) then
  97. part.CanCollide = false
  98. end
  99. end
  100. end
  101. end)
  102. end
  103. function autoRatePurchase()
  104. spawn(function()
  105. while wait(0.001) do
  106. if not autoRatePurchaseEnabled then return end
  107. game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RF.RequestRatePurchase:InvokeServer()
  108. end
  109. end)
  110. end
  111.  
  112. function autoCollect()
  113. spawn(function()
  114. local character = game.Players.LocalPlayer.Character
  115. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  116. local tycoons = game:GetService("Workspace").Tycoons
  117.  
  118. while wait(0.001) do
  119. if not autoCollectEnabled then return end
  120. for i = 1, 8 do
  121. local tycoonName = "Tycoon_" .. tostring(i)
  122. local tycoon = tycoons[tycoonName]
  123. if tycoon then
  124. local units = tycoon:FindFirstChild("Units")
  125. if units then
  126. for j, unit in pairs(units:GetChildren()) do
  127. firetouchinterest(humanoidRootPart, unit, 0)
  128. end
  129. end
  130. end
  131. end
  132. end
  133. end)
  134. end
  135.  
  136. function autoHeartDeposit()
  137. spawn(function()
  138. while wait(0.001) do
  139. if not autoHeartDepositEnabled then return end
  140. game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RF.DepositUnits:InvokeServer()
  141. end
  142. end)
  143. end
  144.  
  145. function autoMerge()
  146. spawn(function()
  147. while wait(0.001) do
  148. if not autoMergeEnabled then return end
  149. game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RF.RequestMerge:InvokeServer()
  150. end
  151. end)
  152. end
  153.  
  154. function autoBuyUnicorns()
  155. spawn(function()
  156. while wait(0.001) do
  157. if not autoBuyUnicornsEnabled and autoBuyUnicornsAmount then return end
  158. game:GetService("ReplicatedStorage").Knit.Services.TycoonService.RF.RequestNodePurchase:InvokeServer(autoBuyUnicornsAmount)
  159. end
  160. end)
  161. end
  162.  
  163. -------------------- Functions ----------------------
  164.  
  165. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  166. local CustomTheme = {
  167. Main = Color3.fromRGB(131,58,180),
  168. Second = Color3.fromRGB(0,0,0),
  169. Stroke = Color3.fromRGB(0,249,31),
  170. Divider = Color3.fromRGB(0,249,31),
  171. Text = Color3.fromRGB(255,255,255),
  172. TextDark = Color3.fromRGB(109,130,124)
  173. }
  174.  
  175. OrionLib.Themes["Custom"] = CustomTheme
  176. OrionLib.SelectedTheme = "Custom"
  177.  
  178. local Window = OrionLib:MakeWindow({Name = "🦄 Unicorn Tycoon Exploit by Balgo", HidePremium = false, SaveConfig = true, ConfigFolder = "UnicornTycoon", IntroText = "❗️ Balgo Security"})
  179. local Auto = Window:MakeTab({
  180. Name = "Auto",
  181. Icon = "rbxassetid://11560341824",
  182. PremiumOnly = false
  183. })
  184.  
  185. Auto:AddDropdown({
  186. Name = "🦄 Buy Unicorns",
  187. Options = {"Disable", "1 Unicorn", "5 Unicorns"},
  188. Selected = 1,
  189. Color = Color3.fromRGB(51, 204, 51),
  190. Callback = function(Value)
  191. autoBuyUnicornsAmount = tonumber(string.match(Value, "%d+"))
  192. autoBuyUnicorns()
  193. end
  194. })
  195.  
  196. Auto:AddToggle({
  197. Name = "🚗 Auto Collect",
  198. Callback = function(Value)
  199. autoCollectEnabled = Value
  200. autoCollect()
  201. end
  202. })
  203.  
  204. Auto:AddToggle({
  205. Name = "❤️ Auto Heart Deposit",
  206. Callback = function(Value)
  207. autoHeartDepositEnabled = Value
  208. autoHeartDeposit()
  209. end
  210. })
  211.  
  212. Auto:AddToggle({
  213. Name = "🔀 Auto Merge",
  214. Callback = function(Value)
  215. autoMergeEnabled = Value
  216. autoMerge()
  217. end
  218. })
  219.  
  220. Auto:AddToggle({
  221. Name = "⭐️ Auto Rate Purchase",
  222. Callback = function(Value)
  223. autoRatePurchaseEnabled = Value
  224. autoRatePurchase()
  225. end
  226. })
  227.  
  228. local Misc = Window:MakeTab({
  229. Name = "Misc",
  230. Icon = "rbxassetid://11560341824",
  231. PremiumOnly = false
  232. })
  233.  
  234. Misc:AddSlider({
  235. Name = "🖱️ Control Click TP Bypass",
  236. Min = 0,
  237. Max = 350,
  238. Default = 0,
  239. Color = Color3.fromRGB(51, 204, 51),
  240. Increment = 50,
  241. ValueName = "Speed (0 To Disable)",
  242. Callback = function(speed)
  243. teleportLocalPlayerBypass(speed)
  244. end
  245. })
  246.  
  247. Misc:AddSlider({
  248. Name = "👣 Walk Speed",
  249. Min = 32,
  250. Max = 600,
  251. Default = 32,
  252. Color = Color3.fromRGB(51, 204, 51),
  253. Increment = 1,
  254. ValueName = "Walk Speed",
  255. Callback = function(Value)
  256. walkSpeed(Value)
  257. end
  258. })
  259.  
  260. Misc:AddToggle({
  261. Name = "🖱️ Control Click TP",
  262. Callback = function(Value)
  263. clickTpEnabled = Value
  264. game:GetService("UserInputService").InputBegan:Connect(teleportLocalPlayer)
  265. end
  266. })
  267.  
  268. Misc:AddToggle({
  269. Name = "⚡️ Infinite Jump",
  270. Callback = function(Value)
  271. infiniteJumpEnabled = Value
  272. infiniteJump()
  273. end
  274. })
  275.  
  276. Misc:AddToggle({
  277. Name = "👻 NoClip",
  278. Callback = function(Value)
  279. noClipEnabled = Value
  280. noClip()
  281. end
  282. })
  283.  
  284. Misc:AddSection({
  285. Name = "🌌 Teleport To A Player"
  286. })
  287.  
  288. local playerMap = {}
  289. local playerDropdown = Misc:AddDropdown({
  290. Name = "👥 Select a player",
  291. Options = {},
  292. Callback = function(selectedPlayer)
  293. local player = playerMap[selectedPlayer]
  294. if player then
  295. teleportTo(player)
  296. end
  297. end
  298. })
  299.  
  300. Misc:AddButton({
  301. Name = "🔄 Refresh Players",
  302. Callback = function()
  303. playerMap = {}
  304. local playerOptions = {}
  305. for i, player in ipairs(game.Players:GetPlayers()) do
  306. table.insert(playerOptions, player.Name)
  307. playerMap[player.Name] = player
  308. end
  309. playerDropdown:Refresh(playerOptions, true)
  310. end
  311. })
  312.  
  313. -------------------- UI ----------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement