Advertisement
2AreYouMental110

speed run 4 script (buggy)

Nov 7th, 2021 (edited)
448
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getgenv().autostar = false
  2. getgenv().autostar2 = false
  3.  
  4.  
  5. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  6. local w = library:CreateWindow("speed run 4")
  7. local a = w:CreateFolder("obby related")
  8.  
  9. a:Toggle("autofarm stars",function(bool)
  10.     getgenv().autostar = bool
  11.     print(on)
  12.     if bool then
  13.         star()
  14.     end
  15. end)
  16.  
  17. a:Toggle("autofarm stars2",function(bool)
  18.     getgenv().autostar2 = bool
  19.     print(on)
  20.     if bool then
  21.         star2()
  22.     end
  23. end)
  24.  
  25. a:Button("complete all levels",function()
  26.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  27.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  28.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "1" then
  29.             firetouchinterest(player, v.Parent, 0)
  30.             wait(.1)
  31.             firetouchinterest(player, v.Parent, 1)
  32.         end
  33.     end
  34.     wait(1)
  35.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  36.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  37.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "2" then
  38.             firetouchinterest(player, v.Parent, 0)
  39.             wait(.1)
  40.             firetouchinterest(player, v.Parent, 1)
  41.         end
  42.     end
  43.     wait(1)
  44.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  45.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  46.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "3" then
  47.             firetouchinterest(player, v.Parent, 0)
  48.             wait(.1)
  49.             firetouchinterest(player, v.Parent, 1)
  50.         end
  51.     end
  52.     wait(1)
  53.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  54.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  55.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "4" then
  56.             firetouchinterest(player, v.Parent, 0)
  57.             wait(.1)
  58.             firetouchinterest(player, v.Parent, 1)
  59.         end
  60.     end
  61.     wait(1)
  62.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  63.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  64.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "5" then
  65.             firetouchinterest(player, v.Parent, 0)
  66.             wait(.1)
  67.             firetouchinterest(player, v.Parent, 1)
  68.         end
  69.     end
  70.     wait(1)
  71.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  72.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  73.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "6" then
  74.             firetouchinterest(player, v.Parent, 0)
  75.             wait(.1)
  76.             firetouchinterest(player, v.Parent, 1)
  77.         end
  78.     end
  79.     wait(1)
  80.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  81.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  82.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "7" then
  83.             firetouchinterest(player, v.Parent, 0)
  84.             wait(.1)
  85.             firetouchinterest(player, v.Parent, 1)
  86.         end
  87.     end
  88.     wait(1)
  89.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  90.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  91.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "8" then
  92.             firetouchinterest(player, v.Parent, 0)
  93.             wait(.1)
  94.             firetouchinterest(player, v.Parent, 1)
  95.         end
  96.     end
  97.     wait(1)
  98.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  99.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  100.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "9" then
  101.             firetouchinterest(player, v.Parent, 0)
  102.             wait(.1)
  103.             firetouchinterest(player, v.Parent, 1)
  104.         end
  105.     end
  106.     wait(1)
  107.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  108.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  109.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "10" then
  110.             firetouchinterest(player, v.Parent, 0)
  111.             wait(.1)
  112.             firetouchinterest(player, v.Parent, 1)
  113.         end
  114.     end
  115.     wait(1)
  116.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  117.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  118.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "11" then
  119.             firetouchinterest(player, v.Parent, 0)
  120.             wait(.1)
  121.             firetouchinterest(player, v.Parent, 1)
  122.         end
  123.     end
  124.     wait(1)
  125.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  126.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  127.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "12" then
  128.             firetouchinterest(player, v.Parent, 0)
  129.             wait(.1)
  130.             firetouchinterest(player, v.Parent, 1)
  131.         end
  132.     end
  133.     wait(1)
  134.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  135.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  136.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "13" then
  137.             firetouchinterest(player, v.Parent, 0)
  138.             wait(.1)
  139.             firetouchinterest(player, v.Parent, 1)
  140.         end
  141.     end
  142.     wait(1)
  143.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  144.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  145.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "14" then
  146.             firetouchinterest(player, v.Parent, 0)
  147.             wait(.1)
  148.             firetouchinterest(player, v.Parent, 1)
  149.         end
  150.     end
  151.     wait(1)
  152.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  153.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  154.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "15" then
  155.             firetouchinterest(player, v.Parent, 0)
  156.             wait(.1)
  157.             firetouchinterest(player, v.Parent, 1)
  158.         end
  159.     end
  160.     wait(1)
  161.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  162.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  163.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "16" then
  164.             firetouchinterest(player, v.Parent, 0)
  165.             wait(.1)
  166.             firetouchinterest(player, v.Parent, 1)
  167.         end
  168.     end
  169.     wait(1)
  170.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  171.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  172.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "17" then
  173.             firetouchinterest(player, v.Parent, 0)
  174.             wait(.1)
  175.             firetouchinterest(player, v.Parent, 1)
  176.         end
  177.     end
  178.     wait(1)
  179.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  180.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  181.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "18" then
  182.             firetouchinterest(player, v.Parent, 0)
  183.             wait(.1)
  184.             firetouchinterest(player, v.Parent, 1)
  185.         end
  186.     end
  187.     wait(1)
  188.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  189.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  190.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "19" then
  191.             firetouchinterest(player, v.Parent, 0)
  192.             wait(.1)
  193.             firetouchinterest(player, v.Parent, 1)
  194.         end
  195.     end
  196.     wait(1)
  197.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  198.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  199.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "20" then
  200.             firetouchinterest(player, v.Parent, 0)
  201.             wait(.1)
  202.             firetouchinterest(player, v.Parent, 1)
  203.         end
  204.     end
  205.     wait(1)
  206.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  207.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  208.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "21" then
  209.             firetouchinterest(player, v.Parent, 0)
  210.             wait(.1)
  211.             firetouchinterest(player, v.Parent, 1)
  212.         end
  213.     end
  214.     wait(1)
  215.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  216.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  217.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "22" then
  218.             firetouchinterest(player, v.Parent, 0)
  219.             wait(.1)
  220.             firetouchinterest(player, v.Parent, 1)
  221.         end
  222.     end
  223.     wait(1)
  224.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  225.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  226.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "23" then
  227.             firetouchinterest(player, v.Parent, 0)
  228.             wait(.1)
  229.             firetouchinterest(player, v.Parent, 1)
  230.         end
  231.     end
  232.     wait(1)
  233.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  234.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  235.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "24" then
  236.             firetouchinterest(player, v.Parent, 0)
  237.             wait(.1)
  238.             firetouchinterest(player, v.Parent, 1)
  239.         end
  240.     end
  241.     wait(1)
  242.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  243.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  244.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "25" then
  245.             firetouchinterest(player, v.Parent, 0)
  246.             wait(.1)
  247.             firetouchinterest(player, v.Parent, 1)
  248.         end
  249.     end
  250.     wait(1)
  251.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  252.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  253.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "26" then
  254.             firetouchinterest(player, v.Parent, 0)
  255.             wait(.1)
  256.             firetouchinterest(player, v.Parent, 1)
  257.         end
  258.     end
  259.     wait(1)
  260.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  261.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  262.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "27" then
  263.             firetouchinterest(player, v.Parent, 0)
  264.             wait(.1)
  265.             firetouchinterest(player, v.Parent, 1)
  266.         end
  267.     end
  268.     wait(1)
  269.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  270.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  271.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "28" then
  272.             firetouchinterest(player, v.Parent, 0)
  273.             wait(.1)
  274.             firetouchinterest(player, v.Parent, 1)
  275.         end
  276.     end
  277.     wait(1)
  278.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  279.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  280.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "29" then
  281.             firetouchinterest(player, v.Parent, 0)
  282.             wait(.1)
  283.             firetouchinterest(player, v.Parent, 1)
  284.         end
  285.     end
  286.     wait(1)
  287.     local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  288.     for i, v in pairs(game:GetService("Workspace"):GetDescendants()) do
  289.         if v.Name == "TouchInterest" and v.Parent.Name == "GatePad" and v.Parent.Parent.Name == "30" then
  290.             firetouchinterest(player, v.Parent, 0)
  291.             wait(.1)
  292.             firetouchinterest(player, v.Parent, 1)
  293.         end
  294.     end
  295.     wait(1)
  296.     print ("done")
  297. end)
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304. function star()
  305.     spawn(function()
  306.         while getgenv().autostar == true do
  307.             local A_1 = "Level 69"
  308.             local Event = game:GetService("ReplicatedStorage").HasStar
  309.             Event:InvokeServer(A_1)
  310.             wait(1)
  311.             local A_1 = "Level 69"
  312.             local Event = game:GetService("ReplicatedStorage").GotStar
  313.             Event:FireServer(A_1)
  314.             wait(2)
  315.         end
  316.     end)
  317. end
  318.  
  319. function star2()
  320.     spawn(function()
  321.         while getgenv().autostar2 == true do
  322.             local A_1 = "Level 69420"
  323.             local Event = game:GetService("ReplicatedStorage").HasStar
  324.             Event:InvokeServer(A_1)
  325.             wait(1)
  326.             local A_1 = "Level 69420"
  327.             local Event = game:GetService("ReplicatedStorage").GotStar
  328.             Event:FireServer(A_1)
  329.             wait(2)
  330.         end
  331.     end)
  332. end
  333.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement