Advertisement
NixksMakeScri

blockspin

Mar 16th, 2025
9,404
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. -- UI
  2. do
  3. local library = loadstring(game:HttpGet('https://raw.githubusercontent.com/violin-suzutsuki/LinoriaLib/main/Library.lua'))();
  4. local window = library:CreateWindow({
  5. Title = "Blockspin AutoFarm | Made By @dementia_enjoyr",
  6. Center = true,
  7. AutoShow = true,
  8. TabPadding = 8,
  9. MenuFadeTime = 0.2
  10. });
  11.  
  12. local farm = window:AddTab("Farming"); do
  13. local steakhouse_enabled = farm:AddLeftGroupbox("Steak House"); do
  14. steakhouse_enabled:AddToggle("autofarm_enabled", {
  15. Text = "Enabled",
  16. Tooltip = "Make sure to be inside of the kitchen when you enable this.",
  17. });
  18.  
  19. steakhouse_enabled:AddToggle("safe_mode", {
  20. Text = "Safe Mode",
  21. Default = true,
  22. Tooltip = "Kills your character so that others cannot kill you, you will still work.",
  23. });
  24.  
  25. steakhouse_enabled:AddToggle("get_steak", {
  26. Text = "Automatically get steak",
  27. Default = true,
  28. Tooltip = "Picks up the steak for you",
  29. });
  30. end
  31. end
  32. end
  33.  
  34. -- Services
  35. local run_service = game:GetService("RunService");
  36. local players = game:GetService("Players");
  37. local replicated_storage = game:GetService("ReplicatedStorage");
  38. local virtual_input_manager = game:GetService("VirtualInputManager");
  39.  
  40. -- Variables
  41. local local_player = players.LocalPlayer;
  42. local player_gui = local_player.PlayerGui;
  43.  
  44. local map = workspace.Map;
  45. local tiles = map.Tiles;
  46.  
  47. local steak_house = tiles.ShoppingTile.SteakHouse;
  48. local steak_interior = steak_house.Interior;
  49.  
  50. local old_position = nil;
  51. local updated = tick();
  52.  
  53. -- Main
  54. do
  55. local get_proximity_prompt = function(ancestor)
  56. for _, descendant in ancestor:GetDescendants() do
  57. if (descendant.ClassName == "ProximityPrompt") then
  58. return descendant;
  59. end
  60. end
  61. end
  62.  
  63. local click_button = function(button)
  64. local absolute_position = button.AbsolutePosition;
  65. local absolute_size = button.AbsoluteSize;
  66. local click_position = Vector2.new(absolute_position.X + (absolute_size.X / 2), absolute_position.Y + absolute_size.Y);
  67.  
  68. local x, y = click_position.X, click_position.Y;
  69.  
  70. virtual_input_manager:SendMouseButtonEvent(x, y, 0, true, game, 1);
  71. task.wait();
  72. virtual_input_manager:SendMouseButtonEvent(x, y, 0, false, game, 1);
  73. end
  74.  
  75. run_service.RenderStepped:Connect(function()
  76. if (Toggles.autofarm_enabled.Value and tick() - updated >= .3) then
  77. if (Toggles.safe_mode.Value) then
  78. pcall(function()
  79. require(replicated_storage.Modules.Core.Net).send("request_respawn");
  80. end)
  81. end
  82.  
  83. local character = local_player.Character;
  84. local root = (character and character:FindFirstChild("HumanoidRootPart"));
  85.  
  86. if (root) then
  87. local proximity_prompt = get_proximity_prompt(steak_interior.Fridge);
  88. local job = local_player:GetAttribute("Job");
  89.  
  90. if (job ~= "steakhouse_cook") then
  91. local touch = steak_interior.SteakHouseBeacon.TouchPart;
  92.  
  93. if (touch) then
  94. root.CFrame = root.CFrame:Lerp(touch.CFrame, .5);
  95. task.spawn(click_button, player_gui.JobApplication.JobApplicationFrame.ApplyJob);
  96. end
  97. else
  98. local progress_bar_frame = player_gui.ProgressBar.ProgressBarFrame;
  99.  
  100. local main_frame = progress_bar_frame.MainFrame;
  101. local input_frame = progress_bar_frame.InputFrame;
  102.  
  103. if (proximity_prompt and not progress_bar_frame.Visible) then
  104. if (Toggles.get_steak.Value) then
  105. local end_cf = proximity_prompt.Parent.Parent.CFrame;
  106. root.CFrame = CFrame.new(end_cf.Position + (end_cf.LookVector * 6), end_cf.Position);
  107.  
  108. run_service.Heartbeat:Wait();
  109.  
  110. fireproximityprompt(proximity_prompt, 1);
  111. end
  112. end
  113.  
  114. local beacon = workspace:FindFirstChild("Beacon");
  115. local base = (beacon and beacon.Base);
  116.  
  117. if (base) then
  118. root.CFrame = base.CFrame;
  119. end
  120.  
  121. local bar = main_frame.BarAmount;
  122. local cooked_perfectly = main_frame.CookedPerfectly;
  123.  
  124. if (progress_bar_frame.Visible and bar and cooked_perfectly) then
  125. if (bar.Size.X.Scale >= cooked_perfectly.Position.X.Scale) then
  126. task.spawn(click_button, input_frame.FinishBar);
  127. end
  128. end
  129. end
  130.  
  131. updated = tick();
  132. end
  133. end
  134. end)
  135. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement