Advertisement
Honansik

Saber Simulator GUI Script

Mar 3rd, 2022
5,277
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 23.44 KB | None | 0 1
  1. print("Saber GUI Loading...")
  2. local library = {
  3.     windowcount = 0;
  4. }
  5.  
  6. local dragger = {};
  7. local resizer = {};
  8.  
  9. function shuffle(t)
  10.   local tbl = {}
  11.   for i = 1, #t do
  12.     tbl[i] = t[i]
  13.   end
  14.   for i = #tbl, 2, -1 do
  15.     local j = math.random(i)
  16.     tbl[i], tbl[j] = tbl[j], tbl[i]
  17.   end
  18.   return tbl
  19. end
  20.  
  21. do
  22.     local mouse = game:GetService("Players").LocalPlayer:GetMouse();
  23.     local inputService = game:GetService('UserInputService');
  24.     local heartbeat = game:GetService("RunService").Heartbeat;
  25.     -- // credits to Ririchi / Inori for this cute drag function :)
  26.     function dragger.new(frame)
  27.         local s, event = pcall(function()
  28.             return frame.MouseEnter
  29.         end)
  30.  
  31.         if s then
  32.             frame.Active = true;
  33.  
  34.             event:connect(function()
  35.                 local input = frame.InputBegan:connect(function(key)
  36.                     if key.UserInputType == Enum.UserInputType.MouseButton1 then
  37.                         local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  38.                         while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  39.                             frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Quad', 0.1, true);
  40.                         end
  41.                     end
  42.                 end)
  43.  
  44.                 local leave;
  45.                 leave = frame.MouseLeave:connect(function()
  46.                     input:disconnect();
  47.                     leave:disconnect();
  48.                 end)
  49.             end)
  50.         end
  51.     end
  52.  
  53.     function resizer.new(p, s)
  54.         p:GetPropertyChangedSignal('AbsoluteSize'):connect(function()
  55.             s.Size = UDim2.new(s.Size.X.Scale, s.Size.X.Offset, s.Size.Y.Scale, p.AbsoluteSize.Y);
  56.         end)
  57.     end
  58. end
  59.  
  60.  
  61. local defaults = {
  62.     txtcolor = Color3.fromRGB(255, 255, 255),
  63.     underline = Color3.fromRGB(0, 255, 140),
  64.     barcolor = Color3.fromRGB(40, 40, 40),
  65.     bgcolor = Color3.fromRGB(30, 30, 30),
  66. }
  67.  
  68. function library:Create(class, props)
  69.     local object = Instance.new(class);
  70.  
  71.     for i, prop in next, props do
  72.         if i ~= "Parent" then
  73.             object[i] = prop;
  74.         end
  75.     end
  76.  
  77.     object.Parent = props.Parent;
  78.     return object;
  79. end
  80.  
  81. function library:CreateWindow(options)
  82.     assert(options.text, "no name");
  83.     local window = {
  84.         count = 0;
  85.         toggles = {},
  86.         closed = false;
  87.     }
  88.  
  89.     local options = options or {};
  90.     setmetatable(options, {__index = defaults})
  91.  
  92.     self.windowcount = self.windowcount + 1;
  93.  
  94.     library.gui = library.gui or self:Create("ScreenGui", {Name = "UILibrary", Parent = game:GetService("CoreGui")})
  95.     window.frame = self:Create("Frame", {
  96.         Name = options.text;
  97.         Parent = self.gui,
  98.         Active = true,
  99.         BackgroundTransparency = 0,
  100.         Size = UDim2.new(0, 190, 0, 30),
  101.         Position = UDim2.new(0, (15 + ((200 * self.windowcount) - 200)), 0, 15),
  102.         BackgroundColor3 = options.barcolor,
  103.         BorderSizePixel = 0;
  104.     })
  105.  
  106.     window.background = self:Create('Frame', {
  107.         Name = 'Background';
  108.         Parent = window.frame,
  109.         BorderSizePixel = 0;
  110.         BackgroundColor3 = options.bgcolor,
  111.         Position = UDim2.new(0, 0, 1, 0),
  112.         Size = UDim2.new(1, 0, 0, 25),
  113.         ClipsDescendants = true;
  114.     })
  115.  
  116.     window.container = self:Create('Frame', {
  117.         Name = 'Container';
  118.         Parent = window.frame,
  119.         BorderSizePixel = 0;
  120.         BackgroundColor3 = options.bgcolor,
  121.         Position = UDim2.new(0, 0, 1, 0),
  122.         Size = UDim2.new(1, 0, 0, 25),
  123.         ClipsDescendants = true;
  124.     })
  125.  
  126.     window.organizer = self:Create('UIListLayout', {
  127.         Name = 'Sorter';
  128.         --Padding = UDim.new(0, 0);
  129.         SortOrder = Enum.SortOrder.LayoutOrder;
  130.         Parent = window.container;
  131.     })
  132.  
  133.     window.padder = self:Create('UIPadding', {
  134.         Name = 'Padding';
  135.         PaddingLeft = UDim.new(0, 10);
  136.         PaddingTop = UDim.new(0, 5);
  137.         Parent = window.container;
  138.     })
  139.  
  140.     self:Create("Frame", {
  141.         Name = 'Underline';
  142.         Size = UDim2.new(1, 0, 0, 1),
  143.         Position = UDim2.new(0, 0, 1, -1),
  144.         BorderSizePixel = 0;
  145.         BackgroundColor3 = options.underline;
  146.         Parent = window.frame
  147.     })
  148.  
  149.     local togglebutton = self:Create("TextButton", {
  150.         Name = 'Toggle';
  151.         ZIndex = 2,
  152.         BackgroundTransparency = 1;
  153.         Position = UDim2.new(1, -25, 0, 0),
  154.         Size = UDim2.new(0, 25, 1, 0),
  155.         Text = "-",
  156.         TextSize = 17,
  157.         TextColor3 = options.txtcolor,
  158.         Font = Enum.Font.SourceSans;
  159.         Parent = window.frame,
  160.     });
  161.  
  162.     togglebutton.MouseButton1Click:connect(function()
  163.         window.closed = not window.closed
  164.         togglebutton.Text = (window.closed and "+" or "-")
  165.         if window.closed then
  166.             window:Resize(true, UDim2.new(1, 0, 0, 0))
  167.         else
  168.             window:Resize(true)
  169.         end
  170.     end)
  171.  
  172.     self:Create("TextLabel", {
  173.         Size = UDim2.new(1, 0, 1, 0),
  174.         BackgroundTransparency = 1;
  175.         BorderSizePixel = 0;
  176.         TextColor3 = options.txtcolor,
  177.         TextColor3 = (options.bartextcolor or Color3.fromRGB(255, 255, 255));
  178.         TextSize = 17,
  179.         Font = Enum.Font.SourceSansSemibold;
  180.         Text = options.text or "window",
  181.         Name = "Window",
  182.         Parent = window.frame,
  183.     })
  184.  
  185.     do
  186.         dragger.new(window.frame)
  187.         resizer.new(window.background, window.container);
  188.     end
  189.  
  190.     local function getSize()
  191.         local ySize = 0;
  192.         for i, object in next, window.container:GetChildren() do
  193.             if (not object:IsA('UIListLayout')) and (not object:IsA('UIPadding')) then
  194.                 ySize = ySize + object.AbsoluteSize.Y
  195.             end
  196.         end
  197.         return UDim2.new(1, 0, 0, ySize + 10)
  198.     end
  199.  
  200.     function window:Resize(tween, change)
  201.         local size = change or getSize()
  202.         self.container.ClipsDescendants = true;
  203.  
  204.         if tween then
  205.             self.background:TweenSize(size, "Out", "Sine", 0.5, true)
  206.         else
  207.             self.background.Size = size
  208.         end
  209.     end
  210.  
  211.     function window:AddToggle(text, callback)
  212.         self.count = self.count + 1
  213.  
  214.         callback = callback or function() end
  215.         local label = library:Create("TextLabel", {
  216.             Text =  text,
  217.             Size = UDim2.new(1, -10, 0, 20);
  218.             --Position = UDim2.new(0, 5, 0, ((20 * self.count) - 20) + 5),
  219.             BackgroundTransparency = 1;
  220.             TextColor3 = Color3.fromRGB(255, 255, 255);
  221.             TextXAlignment = Enum.TextXAlignment.Left;
  222.             LayoutOrder = self.Count;
  223.             TextSize = 16,
  224.             Font = Enum.Font.SourceSans,
  225.             Parent = self.container;
  226.         })
  227.  
  228.         local button = library:Create("TextButton", {
  229.             Text = "OFF",
  230.             TextColor3 = Color3.fromRGB(255, 25, 25),
  231.             BackgroundTransparency = 1;
  232.             Position = UDim2.new(1, -25, 0, 0),
  233.             Size = UDim2.new(0, 25, 1, 0),
  234.             TextSize = 17,
  235.             Font = Enum.Font.SourceSansSemibold,
  236.             Parent = label;
  237.         })
  238.  
  239.         button.MouseButton1Click:connect(function()
  240.             self.toggles[text] = (not self.toggles[text])
  241.             button.TextColor3 = (self.toggles[text] and Color3.fromRGB(0, 255, 140) or Color3.fromRGB(255, 25, 25))
  242.             button.Text =(self.toggles[text] and "ON" or "OFF")
  243.  
  244.             callback(self.toggles[text])
  245.         end)
  246.  
  247.         self:Resize()
  248.         return button
  249.     end
  250.  
  251.     function window:AddBox(text, callback)
  252.         self.count = self.count + 1
  253.         callback = callback or function() end
  254.  
  255.         local box = library:Create("TextBox", {
  256.             PlaceholderText = text,
  257.             Size = UDim2.new(1, -10, 0, 20);
  258.             --Position = UDim2.new(0, 5, 0, ((20 * self.count) - 20) + 5),
  259.             BackgroundTransparency = 0.75;
  260.             BackgroundColor3 = options.boxcolor,
  261.             TextColor3 = Color3.fromRGB(255, 255, 255);
  262.             TextXAlignment = Enum.TextXAlignment.Center;
  263.             TextSize = 16,
  264.             Text = "",
  265.             Font = Enum.Font.SourceSans,
  266.             LayoutOrder = self.Count;
  267.             BorderSizePixel = 0;
  268.             Parent = self.container;
  269.         })
  270.  
  271.         box.FocusLost:connect(function(...)
  272.             callback(box, ...)
  273.         end)
  274.  
  275.         self:Resize()
  276.         return box
  277.     end
  278.  
  279.     function window:AddButton(text, callback)
  280.         self.count = self.count + 1
  281.  
  282.         callback = callback or function() end
  283.         local button = library:Create("TextButton", {
  284.             Text =  text,
  285.             Size = UDim2.new(1, -10, 0, 20);
  286.             --Position = UDim2.new(0, 5, 0, ((20 * self.count) - 20) + 5),
  287.             BackgroundTransparency = 1;
  288.             TextColor3 = Color3.fromRGB(255, 255, 255);
  289.             TextXAlignment = Enum.TextXAlignment.Left;
  290.             TextSize = 16,
  291.             Font = Enum.Font.SourceSans,
  292.             LayoutOrder = self.Count;
  293.             Parent = self.container;
  294.         })
  295.  
  296.         button.MouseButton1Click:connect(callback)
  297.         self:Resize()
  298.         return button
  299.     end
  300.  
  301.     function window:AddLabel(text)
  302.         self.count = self.count + 1;
  303.  
  304.         local tSize = game:GetService('TextService'):GetTextSize(text, 16, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge))
  305.  
  306.         local button = library:Create("TextLabel", {
  307.             Text =  text,
  308.             Size = UDim2.new(1, -10, 0, tSize.Y + 5);
  309.             TextScaled = false;
  310.             BackgroundTransparency = 1;
  311.             TextColor3 = Color3.fromRGB(255, 255, 255);
  312.             TextXAlignment = Enum.TextXAlignment.Left;
  313.             TextSize = 16,
  314.             Font = Enum.Font.SourceSans,
  315.             LayoutOrder = self.Count;
  316.             Parent = self.container;
  317.         })
  318.  
  319.         self:Resize()
  320.         return button
  321.     end
  322.  
  323.     function window:AddDropdown(options, callback)
  324.         self.count = self.count + 1
  325.         local default = options[1] or "";
  326.  
  327.         callback = callback or function() end
  328.         local dropdown = library:Create("TextLabel", {
  329.             Size = UDim2.new(1, -10, 0, 20);
  330.             BackgroundTransparency = 0.75;
  331.             BackgroundColor3 = options.boxcolor,
  332.             TextColor3 = Color3.fromRGB(255, 255, 255);
  333.             TextXAlignment = Enum.TextXAlignment.Center;
  334.             TextSize = 16,
  335.             Text = default,
  336.             Font = Enum.Font.SourceSans,
  337.             BorderSizePixel = 0;
  338.             LayoutOrder = self.Count;
  339.             Parent = self.container;
  340.         })
  341.  
  342.         local button = library:Create("ImageButton",{
  343.             BackgroundTransparency = 1;
  344.             Image = 'rbxassetid://3234893186';
  345.             Size = UDim2.new(0, 18, 1, 0);
  346.             Position = UDim2.new(1, -20, 0, 0);
  347.             Parent = dropdown;
  348.         })
  349.  
  350.         local frame;
  351.  
  352.         local function isInGui(frame)
  353.             local mloc = game:GetService('UserInputService'):GetMouseLocation();
  354.             local mouse = Vector2.new(mloc.X, mloc.Y - 36);
  355.  
  356.             local x1, x2 = frame.AbsolutePosition.X, frame.AbsolutePosition.X + frame.AbsoluteSize.X;
  357.             local y1, y2 = frame.AbsolutePosition.Y, frame.AbsolutePosition.Y + frame.AbsoluteSize.Y;
  358.  
  359.             return (mouse.X >= x1 and mouse.X <= x2) and (mouse.Y >= y1 and mouse.Y <= y2)
  360.         end
  361.  
  362.         local function count(t)
  363.             local c = 0;
  364.             for i, v in next, t do
  365.                 c = c + 1
  366.             end
  367.             return c;
  368.         end
  369.  
  370.         button.MouseButton1Click:connect(function()
  371.             if count(options) == 0 then
  372.                 return
  373.             end
  374.  
  375.             if frame then
  376.                 frame:Destroy();
  377.                 frame = nil;
  378.             end
  379.  
  380.             self.container.ClipsDescendants = false;
  381.  
  382.             frame = library:Create('Frame', {
  383.                 Position = UDim2.new(0, 0, 1, 0);
  384.                 BackgroundColor3 = Color3.fromRGB(40, 40, 40);
  385.                 Size = UDim2.new(0, dropdown.AbsoluteSize.X, 0, (count(options) * 21));
  386.                 BorderSizePixel = 0;
  387.                 Parent = dropdown;
  388.                 ClipsDescendants = true;
  389.                 ZIndex = 2;
  390.             })
  391.  
  392.             library:Create('UIListLayout', {
  393.                 Name = 'Layout';
  394.                 Parent = frame;
  395.             })
  396.  
  397.             for i, option in next, options do
  398.                 local selection = library:Create('TextButton', {
  399.                     Text = option;
  400.                     BackgroundColor3 = Color3.fromRGB(40, 40, 40);
  401.                     TextColor3 = Color3.fromRGB(255, 255, 255);
  402.                     BorderSizePixel = 0;
  403.                     TextSize = 16;
  404.                     Font = Enum.Font.SourceSans;
  405.                     Size = UDim2.new(1, 0, 0, 21);
  406.                     Parent = frame;
  407.                     ZIndex = 2;
  408.                 })
  409.  
  410.                 selection.MouseButton1Click:connect(function()
  411.                     dropdown.Text = option;
  412.                     callback(option)
  413.                     frame.Size = UDim2.new(1, 0, 0, 0);
  414.                     game:GetService('Debris'):AddItem(frame, 0.1)
  415.                 end)
  416.             end
  417.         end);
  418.  
  419.         game:GetService('UserInputService').InputBegan:connect(function(m)
  420.             if m.UserInputType == Enum.UserInputType.MouseButton1 then
  421.                 if frame and (not isInGui(frame)) then
  422.                     game:GetService('Debris'):AddItem(frame);
  423.                 end
  424.             end
  425.         end)
  426.  
  427.         callback(default);
  428.         self:Resize()
  429.         return {
  430.             Refresh = function(self, array)
  431.                 game:GetService('Debris'):AddItem(frame);
  432.                 options = array
  433.                 dropdown.Text = options[1];
  434.             end
  435.         }
  436.     end;
  437.  
  438.  
  439.     return window
  440. end
  441. local afkGui = library:CreateWindow({
  442.   text = "AutoFarm"
  443. })
  444. local eggHatchGui = library:CreateWindow({
  445.   text = "AutoHatch Eggs"
  446. })
  447. local localplayer = library:CreateWindow({
  448.     text = "LocalPlayer"
  449. })
  450. local teleport = library:CreateWindow({
  451.     text = "Teleports"
  452. })
  453. local credits = library:CreateWindow({
  454.     text = "Credits"
  455. })
  456.  
  457. -- // afkGui:AddToggle("AutoFarm Candy", function(state)
  458. -- //   if state then
  459. -- //       waitValue5 = 0.2
  460. -- //       local plrh = game.Players.LocalPlayer.Character.HumanoidRootPart
  461. -- //       while true do
  462. -- //           if game.Players.LocalPlayer.Character.AntiPort and game.Players.LocalPlayer.Character.AntiPortNew  then
  463. -- //               game.Players.LocalPlayer.Character.AntiPort:Destroy()
  464. -- //               game.Players.LocalPlayer.Character.AntiPortNew:Destroy()
  465. -- //               wait(0.1)
  466. -- //           end
  467. -- //           for i,v in pairs(game:GetService("Workspace").CandyHolder:GetChildren()) do
  468. -- //               plrh.CFrame = v.CFrame
  469. -- //               wait(waitValue5)
  470. -- //           end
  471. -- //       end
  472. -- //   else
  473. -- //       waitValue5 = 100000000000000000000000
  474. -- //       plrh.CFrame =  CFrame.new(workspace.DailyReward.Location.CFrame.Position + Vector3.new(0,4,0))
  475. -- //   end
  476. -- // end)
  477.  
  478. afkGui:AddToggle("Auto Swing", function(state)
  479.     if state then
  480.         _G.AutoSwing = true
  481.         local BladeName = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Name
  482.         while _G.AutoSwing do
  483.             if BladeName then
  484.                 game.ReplicatedStorage.Events.Clicked:FireServer()
  485.                 game.Players.LocalPlayer.Character[BladeName].RemoteClick:FireServer()
  486.             else
  487.                 EquipTool()
  488.             end
  489.             wait()
  490.         end
  491.     else
  492.         _G.AutoSwing = false
  493.     end
  494. end)
  495.  
  496. localplayer:AddBox("Jump Power", function(object, focus)
  497.     if focus then
  498.         local JumpPowerValue = object.Text
  499.         if tonumber(JumpPowerValue) ~= nil then
  500.             --it's a number
  501.             while wait() do
  502.               game.Players.LocalPlayer.Character.Humanoid.JumpPower = JumpPowerValue
  503.             end
  504.         end
  505.     end
  506. end)
  507.  
  508. localplayer:AddBox("Walk Speed", function(object, focus)
  509.     if focus then
  510.         local WalkSpeedValue = object.Text
  511.         if tonumber(WalkSpeedValue) ~= nil then
  512.             --it's a number
  513.             while wait() do
  514.                 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WalkSpeedValue
  515.             end
  516.         end
  517.     end
  518. end)
  519.  
  520. afkGui:AddToggle("AutoFarm Strength", function(state)
  521.     if state then
  522.         waitValue = .01
  523.         while wait(waitValue) do
  524.             game.ReplicatedStorage.Events.Clicked:FireServer()
  525.             game.Players.LocalPlayer.Character["YellowCrusher"].RemoteClick:FireServer()
  526.         end
  527.     else
  528.         waitValue = 100000000000000000000
  529.     end
  530. end)
  531. afkGui:AddToggle("Auto Sell when Full", function(state)
  532.     if state then
  533.         waitValue2 = .1
  534.         while wait(waitValue2) do
  535.             if game.Players.LocalPlayer.PlayerGui.Gui.Submenus.BackpackFull.Visible == true then
  536.                 lastCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  537.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Sell.CFrame
  538.                 wait(.7)
  539.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lastCF
  540.             end
  541.         end
  542.     else
  543.         waitValue2 = 10000000000000000000
  544.     end
  545. end)
  546. afkGui:AddLabel("Click screen when bag full")
  547.  
  548. afkGui:AddToggle("AutoBuy Swords", function(state)
  549.  
  550.     if state then
  551.         waitValue7 = .1
  552.         while wait(waitValue7) do
  553.             game.ReplicatedStorage.Events.BuyAll:FireServer("Swords")
  554.         end
  555.     else
  556.         waitValue7 = 100000000000000
  557.     end
  558.  
  559. end)
  560. afkGui:AddToggle("AutoBuy DNA", function(state)
  561.  
  562.     if state then
  563.         waitValue7 = .1
  564.         while wait(waitValue7) do
  565.             game.ReplicatedStorage.Events.BuyAll:FireServer("Backpacks")
  566.         end
  567.     else
  568.         waitValue7 = 100000000000000
  569.     end
  570.  
  571.  
  572. end)
  573.  
  574. afkGui:AddToggle("AutoCapture Flags", function(state)
  575.  
  576.     if state then
  577.         waitValue8 = 30
  578.         while wait() do
  579.             local CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  580.             for i , v in pairs(shuffle(game.Workspace.Flags:GetChildren())) do
  581.                 if v.OwnerValue.Value ~= game.Players.LocalPlayer.Name then
  582.                     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Base.CFrame
  583.                     repeat
  584.                     wait()
  585.                     until  v.OwnerValue.Value == game.Players.LocalPlayer.Name
  586.                     wait(waitValue8)
  587.                     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame
  588.                 end
  589.             end
  590.         end
  591.     else
  592.         waitValue8 = 100000000000000000000
  593.     end
  594. end)
  595.  
  596. afkGui:AddToggle("Auto Boss", function(state)
  597.  
  598.     local OriginalGravity = game.Workspace.Gravity
  599.  
  600.     if state then  
  601.  
  602.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Boss.Head.CFrame.Position + Vector3.new(0,0,0))
  603.         game.Workspace.Gravity = 1
  604.         local platform = Instance.new("Part",workspace)
  605.         platform.Name = "platform"
  606.         platform.Position = Vector3.new(100,100,100)
  607.         platform.Anchored = true
  608.         platform.CanCollide = true
  609.         local val = Instance.new("IntValue",game.Players.LocalPlayer.Character.HumanoidRootPart)
  610.         val.Value = 0
  611.         local on = true
  612.         while true do
  613.             wait(0.1)
  614.             if on then
  615.                 repeat
  616.                     wait()
  617.                     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Boss.Head.CFrame.Position + Vector3.new(0,3,0))
  618.                     val.Value = val.Value +1
  619.                 until val.Value == 11000
  620.                 on = false
  621.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(platform.CFrame.Position)
  622.                 wait(0.25)
  623.                 on = true
  624.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Boss.Head.CFrame.Position + Vector3.new(0,3,0))
  625.             end
  626.         end
  627.     else
  628.         game.Workspace.Gravity = OriginalGravity
  629.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.FirstSpawns.FirstSpawn.CFrame
  630.     end
  631.  
  632. end)  
  633.  
  634. teleport:AddButton("Teleport To All Players", function()
  635.     local children = game.Players:GetChildren()
  636.     local spawnCF = CFrame.new(578,184,95)
  637.  
  638.     local lpcF = game.Players.LocalPlayer.Character.HumanoidRootPart
  639.     for i, child in ipairs(children) do
  640.         local tarLocation = child.Character.HumanoidRootPart
  641.         lpcF.CFrame = tarLocation.CFrame
  642.         lpcF.CFrame = spawnCF
  643.         lpcF.CFrame = tarLocation.CFrame
  644.         wait(2)
  645.     end
  646. end)
  647.  
  648. teleport:AddButton("Teleport To All Islands", function()
  649.     local children = game.Workspace.Locations.Islands:GetChildren()
  650.  
  651.     local lpcF = game.Players.LocalPlayer.Character.HumanoidRootPart
  652.     for i, child in ipairs(shuffle(children)) do
  653.         lpcF.CFrame = CFrame.new(child.CFrame.Position + Vector3.new(0,6,0))
  654.         wait(2)
  655.     end
  656. end)
  657.  
  658. teleport:AddButton("Sell", function()
  659.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Sell.CFrame
  660. end)
  661. teleport:AddButton("Shop", function()
  662.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Shop.CFrame
  663. end)
  664. teleport:AddButton("Spawn", function()
  665.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.FirstSpawns.FirstSpawn.CFrame
  666. end)
  667. teleport:AddButton("Crown Shop", function()
  668.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.CrownShop.CFrame
  669. end)
  670. teleport:AddButton("King of The Hill", function()
  671.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.KOH.CFrame
  672. end)
  673. teleport:AddButton("Arena", function()
  674.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.ArenaBase.CFrame
  675. end)
  676. teleport:AddBox("Goto Player:", function(object, focus)
  677.     if focus then
  678.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[object.Text].Character.HumanoidRootPart.CFrame
  679.     end
  680. end)
  681.  
  682. for i, child in ipairs(game.ReplicatedStorage.Eggs:GetChildren()) do
  683.     eggHatchGui:AddToggle(child.Name, function(state)
  684.         if state then
  685.             waitValue3 = .1
  686.             while wait(waitValue3) do
  687.                 game.ReplicatedStorage.Events.HatchEggs:InvokeServer(child.Fire, 1)
  688.             end
  689.         else
  690.             waitValue3 = 100000000000000
  691.         end
  692.     end)
  693. end
  694.  
  695. credits:AddLabel("GUI made by EmirhanAsik")
  696. credits:AddLabel("Script made by EmirhanAsik")
  697. credits:AddLabel("Extras made by ILikeToAfk")
  698. print("Saber GUI loaded")
  699.  
  700. local VirtualUser=game:service'VirtualUser'
  701. game:GetService("Players").LocalPlayer.Idled:connect(function()
  702. VirtualUser:CaptureController()
  703. VirtualUser:ClickButton2(Vector2.new())
  704. end)
  705. print'Anti Afk ran'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement