KingPhantom

SkrubHub

May 21st, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.05 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character or player.CharacterAdded:wait()
  3.  
  4. local new = Instance.new
  5. local mouse = player:GetMouse()
  6. local userInput = game:GetService("UserInputService")
  7. local run = game:GetService("RunService")
  8. local tween = game:GetService("TweenService")
  9. local ud2 = UDim2.new
  10. local v2 = Vector2.new
  11. local v3 = Vector3.new
  12. local cf = CFrame.new
  13. local cfa = CFrame.Angles
  14. local sin = math.sin
  15. local cos = math.cos
  16. local huge = math.huge
  17.  
  18. local SkrubHub = Instance.new("ScreenGui")
  19. local Main = Instance.new("Frame")
  20. local Tabs = Instance.new("Frame")
  21. local MainTitle = Instance.new("TextLabel")
  22. local Executor = Instance.new("Frame")
  23. local ExeTitle = Instance.new("TextLabel")
  24. local ExeCredit = Instance.new("TextLabel")
  25. local Code = Instance.new("TextBox")
  26. local Decor = Instance.new("Frame")
  27. local Clr = Instance.new("TextLabel")
  28. local Exe = Instance.new("TextLabel")
  29. local Scripts = Instance.new("Frame")
  30. local ScriptsTitle = Instance.new("TextLabel")
  31. local ScriptsButtons = Instance.new("ScrollingFrame")
  32. local ScriptsCredit = Instance.new("TextLabel")
  33. local Guis = Instance.new("Frame")
  34. local GuisTitle = Instance.new("TextLabel")
  35. local Buttons = Instance.new("ScrollingFrame")
  36. local GuisCredit = Instance.new("TextLabel")
  37. local Home = Instance.new("Frame")
  38. local Title = Instance.new("TextLabel")
  39. local Info = Instance.new("TextLabel")
  40. local Credit = Instance.new("TextLabel")
  41. local UpdateTitle = Instance.new("TextLabel")
  42. local Updates = Instance.new("TextLabel")
  43. local QuickCMD = Instance.new("Frame")
  44. local CmdTitle = Instance.new("TextLabel")
  45. local CmdCredit = Instance.new("TextLabel")
  46. local WalkInput = Instance.new("TextBox")
  47. local JumpInput = Instance.new("TextBox")
  48. local God = Instance.new("TextLabel")
  49. local Ungod = Instance.new("TextLabel")
  50. local NameInput = Instance.new("TextBox")
  51. local Kill = Instance.new("TextLabel")
  52. local Kick = Instance.new("TextLabel")
  53. local FF = Instance.new("TextLabel")
  54. local unFF = Instance.new("TextLabel")
  55.  
  56. local data = {
  57.     Menu = Home;
  58.     Open = true;
  59.     MainTitleX = MainTitle.Size;
  60.     MainX = Main.Size;
  61.     TabsX = Tabs.Size;
  62.    
  63.     Player = nil;
  64.     WalkSpeed = 16;
  65.     JumpPower = 50;
  66.    
  67. }
  68.  
  69. local ExeButtons = {
  70.     [Exe] = {Click = function()
  71.         local s,e = pcall(function()
  72.             loadstring(Code.Text)()
  73.         end)
  74.        
  75.         if e then
  76.             warn(e)
  77.         end
  78.     end,Btn = Exe},
  79.     [Clr] = {Click = function()
  80.         Code.Text = ""
  81.     end,Btn = Exe}
  82. }
  83.  
  84. local CmdButtons = {
  85.     ["FF"] = {Click = function()
  86.         if not data.Player then return end
  87.         if typeof(data.Player) ~= "Instance" then
  88.             for i,v in pairs(data.Player) do
  89.                 Instance.new("ForceField").Parent = v.Character
  90.             end
  91.         else
  92.             Instance.new("ForceField").Parent = data.Player.Character
  93.         end
  94.  
  95.     end,Btn = FF};
  96.     ["God"] = {Click = function()
  97.         if not data.Player then return end
  98.         if typeof(data.Player) ~= "Instance" then
  99.             for i,v in pairs(data.Player) do
  100.                 v.Character.Humanoid.MaxHealth = huge
  101.                 v.Character.Humanoid.Health = huge
  102.             end
  103.         else
  104.             data.Player.Character.Humanoid.MaxHealth = huge
  105.             data.Player.Character.Humanoid.Health = huge
  106.         end
  107.        
  108.     end,Btn = God};
  109.     ["Kill"] = {Click = function()
  110.         if not data.Player then return end
  111.         if typeof(data.Player) ~= "Instance" then
  112.             for i,v in pairs(data.Player) do
  113.                 v.Character:BreakJoints()
  114.             end
  115.         else
  116.             data.Player.Character:BreakJoints()
  117.         end
  118.     end,Btn = Kill};
  119.     ["Kick"] = {Click = function()
  120.         if not data.Player then return end
  121.         if typeof(data.Player) ~= "Instance" then
  122.             for i,v in pairs(data.Player) do
  123.                 v:Kick()
  124.             end
  125.         else
  126.             data.Player:Kick()
  127.         end
  128.     end,Btn = Kick};
  129.     ["Ungod"] = {Click = function()
  130.         if not data.Player then return end
  131.         if typeof(data.Player) ~= "Instance" then
  132.             for i,v in pairs(data.Player) do
  133.                 v.Character.Humanoid.MaxHealth = 100
  134.                 v.Character.Humanoid.Health = 100
  135.             end
  136.         else
  137.             data.Player.Character.Humanoid.MaxHealth = 100
  138.             data.Player.Character.Humanoid.Health = 100
  139.         end
  140.     end,Btn = Ungod};
  141.     ["unFF"] = {Click = function()
  142.         if not data.Player then return end
  143.         if typeof(data.Player) ~= "Instance" then
  144.             for i,v in pairs(data.Player) do
  145.                 if v.Character:FindFirstChild("ForceField") then
  146.                     v.Character.ForceField:Destroy()
  147.                 end
  148.             end
  149.         else
  150.             if data.Player.Character:FindFirstChild("ForceField") then
  151.                 data.Player.Character.ForceField:Destroy()
  152.             end
  153.         end
  154.     end,Btn = unFF};
  155. }
  156.  
  157. local tabs = {
  158.     [1] = {Name = "Home",Redirect = Home,Click = function()
  159.         print("Home")
  160.     end};
  161.     [2] = {Name = "Guis",Redirect = Guis,Click = function()
  162.         print("Guis")
  163.     end};
  164.     [3] = {Name = "Scripts",Redirect = Scripts,Click = function()
  165.         print("Scripts")
  166.     end};
  167.     [4] = {Name = "Quick Commands",Redirect = QuickCMD,Click = function()
  168.         print("Quick Cmds")
  169.     end};
  170.     [5] = {Name = "Executor",Redirect = Executor,Click = function()
  171.         print("Executor")
  172.     end};
  173. }
  174.  
  175. local guis = {
  176.     {"Apoc Best Gui" ,291556436,2};
  177.     {"c00lgui", "Rz2EFsLU", 1},
  178.     {"Topkek 4.0", "d0CJRrcg", 1},
  179.     {"Ro-Xploit 6.0", 364364477, 2},
  180.     {"Dex 3.0", 418957341, 2},
  181.     {"YourMom GUI", "289110135", 2},
  182.     {"Pepe GUI", "277881926", 2},
  183.     {"Brack Hub", "PT9Gf7d5", 1},
  184.     {"Vesprin FE GUI", "1231351616", 2},
  185.     {"Music GUI", "U352cdsv", 1},
  186.     {"Clown Van", "a5UZuuiT", 1},
  187.     {"Hell Elevator GUI", "8NYWpf2T", 1},
  188.     {"Chams / Aimlock", "Yi7fzELj", 1},
  189.    
  190. }
  191.  
  192. local scripts = {
  193.     {"AR-15","6VQt3wxS",1};
  194.     {"Infinite Yield","MjBzRjmT",1};
  195.     {"Rail Gun Titan", "0wFiFdwM", 1};
  196.     {"Nazi Flag", "ZCZNxFBD", 1};
  197.     {"Police Titan", "UCmufLU8", 1};
  198.     {"Galaxy Titan", "nKNdCrKj", 1};
  199.     {"Flash", "gGSVVq1H", 1};
  200.     {"Dick Gun", "UR9FBjcj", 1};
  201.     {"9/11", "3UmV26hG", 1};
  202.     {"Bong", "8Kb08E9s", 1};
  203.     {"Crazy Nuke", "6kbRdDk6", 1};
  204.     {"Sticky Bombs", "2A4U8xdA", 1};
  205.     {"Russian Dance", "RADQ2vH8", 1};
  206.     {"Sun God", "0uJhLJ5m", 1};
  207.     {"Rolling Light Ball", "S4Hj3MPd", 1};
  208.     {"Red Death Scythe", "KJ5nqeVF", 1};
  209.     {"Crystal Pistols", "GDLZ4VAq", 1};
  210.     {"Epic Sword", "DZVV9AGG", 1};
  211.     {"Circle Visualizer", "diJiteen", 1};
  212.     {"Hex Blade", "fA0bBELV", 1};
  213.     {"Bulldog", "nPPLxSA3", 1};
  214.     {"FS-627-SENDER", "R3m4gfuP", 1};
  215.  
  216. }
  217.  
  218. local tabButtons = {}
  219. local scriptButtons = {}
  220. local guiButtons = {}
  221. local commandButtons = {}
  222. local exeButtons = {}
  223.  
  224. function initGui()
  225.     SkrubHub.Name = "SkrubHub"
  226.     SkrubHub.Parent = player.PlayerGui
  227.    
  228.     Main.Name = "Main"
  229.     Main.Parent = SkrubHub
  230.     Main.AnchorPoint = Vector2.new(0.5, 0.5)
  231.     Main.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  232.     Main.BorderSizePixel = 0
  233.     Main.Position = ud2(0, 503, 0, 409)
  234.     Main.Size = ud2(0, 450, 0, 500)
  235.    
  236.     Tabs.Name = "Tabs"
  237.     Tabs.Parent = Main
  238.     Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  239.     Tabs.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  240.     Tabs.BorderSizePixel = 0
  241.     Tabs.Position = ud2(0, 580, 0, 250)
  242.     Tabs.Size = ud2(0, 241, 0, 500)
  243.     Tabs.ClipsDescendants = true
  244.    
  245.     MainTitle.Name = "MainTitle"
  246.     MainTitle.Parent = Main
  247.     MainTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  248.     MainTitle.BorderSizePixel = 0
  249.     MainTitle.Position = ud2(0, 0, 0, -60)
  250.     MainTitle.Size = ud2(0, 701, 0, 50)
  251.     MainTitle.Font = Enum.Font.Cartoon
  252.     MainTitle.Text = "SkrubHub v1"
  253.     MainTitle.TextColor3 = Color3.new(1, 1, 1)
  254.     MainTitle.TextScaled = false
  255.     MainTitle.TextSize = 50
  256.     MainTitle.TextWrapped = true
  257.     MainTitle.ClipsDescendants = true
  258.    
  259.     Executor.Name = "Executor"
  260.     Executor.Parent = Main
  261.     Executor.BackgroundColor3 = Color3.new(1, 1, 1)
  262.     Executor.BackgroundTransparency = 1
  263.     Executor.ClipsDescendants = true
  264.     Executor.Size = ud2(1, 0, 1, 0)
  265.     Executor.Visible = false
  266.    
  267.     ExeTitle.Name = "ExeTitle"
  268.     ExeTitle.Parent = Executor
  269.     ExeTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  270.     ExeTitle.BorderSizePixel = 0
  271.     ExeTitle.Selectable = true
  272.     ExeTitle.Size = ud2(0, 450, 0, 45)
  273.     ExeTitle.Font = Enum.Font.Cartoon
  274.     ExeTitle.Text = "Executor"
  275.     ExeTitle.TextColor3 = Color3.new(1, 1, 1)
  276.     ExeTitle.TextScaled = true
  277.     ExeTitle.TextSize = 14
  278.     ExeTitle.TextWrapped = true
  279.    
  280.     ExeCredit.Name = "ExeCredit"
  281.     ExeCredit.Parent = Executor
  282.     ExeCredit.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  283.     ExeCredit.BorderSizePixel = 0
  284.     ExeCredit.Position = ud2(0, 0, 0, 472)
  285.     ExeCredit.Selectable = true
  286.     ExeCredit.Size = ud2(0, 450, 0, 28)
  287.     ExeCredit.Font = Enum.Font.Cartoon
  288.     ExeCredit.Text = "Gui made by skrubkid#1330"
  289.     ExeCredit.TextColor3 = Color3.new(1, 1, 1)
  290.     ExeCredit.TextSize = 25
  291.     ExeCredit.TextWrapped = true
  292.    
  293.     Code.Name = "Code"
  294.     Code.Parent = Executor
  295.     Code.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
  296.     Code.BackgroundTransparency = 1
  297.     Code.BorderSizePixel = 0
  298.     Code.Position = ud2(0, 43, 0, 67)
  299.     Code.Size = ud2(0, 386, 0, 315)
  300.     Code.ZIndex = 2
  301.     Code.Font = Enum.Font.Cartoon
  302.     Code.MultiLine = true
  303.     Code.PlaceholderColor3 = Color3.new(1, 1, 1)
  304.     Code.PlaceholderText = "Input Script Here..."
  305.     Code.Text = ""
  306.     Code.TextColor3 = Color3.new(1, 1, 1)
  307.     Code.TextSize = 14
  308.     Code.TextXAlignment = Enum.TextXAlignment.Left
  309.     Code.TextYAlignment = Enum.TextYAlignment.Top
  310.     Code.ClearTextOnFocus = false
  311.    
  312.     Decor.Name = "Decor"
  313.     Decor.Parent = Executor
  314.     Decor.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
  315.     Decor.BorderSizePixel = 0
  316.     Decor.Position = ud2(0, 28, 0, 57)
  317.     Decor.Size = ud2(0, 394, 0, 321)
  318.    
  319.     Clr.Name = "Clr"
  320.     Clr.Parent = Executor
  321.     Clr.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
  322.     Clr.BorderSizePixel = 0
  323.     Clr.Position = ud2(0, 287, 0, 391)
  324.     Clr.Selectable = true
  325.     Clr.Size = ud2(0, 135, 0, 44)
  326.     Clr.Font = Enum.Font.Cartoon
  327.     Clr.Text = "Clear"
  328.     Clr.TextColor3 = Color3.new(1, 1, 1)
  329.     Clr.TextSize = 40
  330.     Clr.TextWrapped = true
  331.    
  332.     Exe.Name = "Exe"
  333.     Exe.Parent = Executor
  334.     Exe.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
  335.     Exe.BorderSizePixel = 0
  336.     Exe.Position = ud2(0, 28, 0, 391)
  337.     Exe.Selectable = true
  338.     Exe.Size = ud2(0, 135, 0, 44)
  339.     Exe.Font = Enum.Font.Cartoon
  340.     Exe.Text = "Execute"
  341.     Exe.TextColor3 = Color3.new(1, 1, 1)
  342.     Exe.TextSize = 40
  343.     Exe.TextWrapped = true
  344.    
  345.     Scripts.Name = "Scripts"
  346.     Scripts.Parent = Main
  347.     Scripts.BackgroundColor3 = Color3.new(1, 1, 1)
  348.     Scripts.BackgroundTransparency = 1
  349.     Scripts.ClipsDescendants = true
  350.     Scripts.Size = ud2(1, 0, 1, 0)
  351.     Scripts.Visible = false
  352.    
  353.     ScriptsTitle.Name = "ScriptsTitle"
  354.     ScriptsTitle.Parent = Scripts
  355.     ScriptsTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  356.     ScriptsTitle.BorderSizePixel = 0
  357.     ScriptsTitle.Selectable = true
  358.     ScriptsTitle.Size = ud2(0, 450, 0, 41)
  359.     ScriptsTitle.Font = Enum.Font.Cartoon
  360.     ScriptsTitle.Text = "Scripts"
  361.     ScriptsTitle.TextColor3 = Color3.new(1, 1, 1)
  362.     ScriptsTitle.TextScaled = true
  363.     ScriptsTitle.TextSize = 14
  364.     ScriptsTitle.TextWrapped = true
  365.    
  366.     ScriptsButtons.Name = "ScriptsButtons"
  367.     ScriptsButtons.Parent = Scripts
  368.     ScriptsButtons.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  369.     ScriptsButtons.BorderSizePixel = 0
  370.     ScriptsButtons.Position = ud2(0, 59, 0, 69)
  371.     ScriptsButtons.Size = ud2(0, 332, 0, 362)
  372.     ScriptsButtons.CanvasSize = ud2(0, 0, 0, 1000)
  373.    
  374.     ScriptsCredit.Name = "ScriptsCredit"
  375.     ScriptsCredit.Parent = Scripts
  376.     ScriptsCredit.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  377.     ScriptsCredit.BorderSizePixel = 0
  378.     ScriptsCredit.Position = ud2(0, 0, 0, 472)
  379.     ScriptsCredit.Selectable = true
  380.     ScriptsCredit.Size = ud2(0, 450, 0, 28)
  381.     ScriptsCredit.Font = Enum.Font.Cartoon
  382.     ScriptsCredit.Text = "Gui made by skrubkid#1330"
  383.     ScriptsCredit.TextColor3 = Color3.new(1, 1, 1)
  384.     ScriptsCredit.TextSize = 25
  385.     ScriptsCredit.TextWrapped = true
  386.    
  387.     Guis.Name = "Guis"
  388.     Guis.Parent = Main
  389.     Guis.BackgroundColor3 = Color3.new(1, 1, 1)
  390.     Guis.BackgroundTransparency = 1
  391.     Guis.ClipsDescendants = true
  392.     Guis.Size = ud2(1, 0, 1, 0)
  393.     Guis.Visible = false
  394.    
  395.     GuisTitle.Name = "GuisTitle"
  396.     GuisTitle.Parent = Guis
  397.     GuisTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  398.     GuisTitle.BorderSizePixel = 0
  399.     GuisTitle.Selectable = true
  400.     GuisTitle.Size = ud2(0, 450, 0, 41)
  401.     GuisTitle.Font = Enum.Font.Cartoon
  402.     GuisTitle.Text = "Guis"
  403.     GuisTitle.TextColor3 = Color3.new(1, 1, 1)
  404.     GuisTitle.TextScaled = true
  405.     GuisTitle.TextSize = 14
  406.     GuisTitle.TextWrapped = true
  407.    
  408.     Buttons.Name = "Buttons"
  409.     Buttons.Parent = Guis
  410.     Buttons.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  411.     Buttons.BorderSizePixel = 0
  412.     Buttons.Position = ud2(0, 59, 0, 69)
  413.     Buttons.Size = ud2(0, 332, 0, 362)
  414.     Buttons.CanvasSize = ud2(0, 0, 0, 1000)
  415.    
  416.     GuisCredit.Name = "GuisCredit"
  417.     GuisCredit.Parent = Guis
  418.     GuisCredit.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  419.     GuisCredit.BorderSizePixel = 0
  420.     GuisCredit.Position = ud2(0, 0, 0, 472)
  421.     GuisCredit.Selectable = true
  422.     GuisCredit.Size = ud2(0, 450, 0, 28)
  423.     GuisCredit.Font = Enum.Font.Cartoon
  424.     GuisCredit.Text = "Gui made by skrubkid#1330"
  425.     GuisCredit.TextColor3 = Color3.new(1, 1, 1)
  426.     GuisCredit.TextSize = 25
  427.     GuisCredit.TextWrapped = true
  428.    
  429.     Home.Name = "Home"
  430.     Home.Parent = Main
  431.     Home.BackgroundColor3 = Color3.new(1, 1, 1)
  432.     Home.BackgroundTransparency = 1
  433.     Home.ClipsDescendants = true
  434.     Home.Size = ud2(1, 0, 1, 0)
  435.     Home.Visible = false
  436.    
  437.     Title.Name = "Title"
  438.     Title.Parent = Home
  439.     Title.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  440.     Title.BorderSizePixel = 0
  441.     Title.Selectable = true
  442.     Title.Size = ud2(0, 450, 0, 41)
  443.     Title.Font = Enum.Font.Cartoon
  444.     Title.Text = "Home"
  445.     Title.TextColor3 = Color3.new(1, 1, 1)
  446.     Title.TextScaled = true
  447.     Title.TextSize = 14
  448.     Title.TextWrapped = true
  449.    
  450.     Info.Name = "Info"
  451.     Info.Parent = Home
  452.     Info.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  453.     Info.BorderSizePixel = 0
  454.     Info.Position = ud2(0, 0, 0.145999998, 0)
  455.     Info.Selectable = true
  456.     Info.Size = ud2(1, 0, 0.211999997, 0)
  457.     Info.Font = Enum.Font.Cartoon
  458.     Info.Text = "This is SkrubHub. Idk why I made this, guess I was bored. The community is needed to submit scripts for me to put into this gui. DM me @ skrubkid#1330"
  459.     Info.TextColor3 = Color3.new(1, 1, 1)
  460.     Info.TextSize = 25
  461.     Info.TextWrapped = true
  462.     Info.TextYAlignment = Enum.TextYAlignment.Top
  463.    
  464.     Credit.Name = "Credit"
  465.     Credit.Parent = Home
  466.     Credit.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  467.     Credit.BorderSizePixel = 0
  468.     Credit.Position = ud2(0, 0, 0, 472)
  469.     Credit.Selectable = true
  470.     Credit.Size = ud2(0, 450, 0, 28)
  471.     Credit.Font = Enum.Font.Cartoon
  472.     Credit.Text = "Gui made by skrubkid#1330, Press \"=\" to toggle the gui"
  473.     Credit.TextColor3 = Color3.new(1, 1, 1)
  474.     Credit.TextScaled = true
  475.     Credit.TextSize = 25
  476.     Credit.TextWrapped = true
  477.    
  478.     UpdateTitle.Name = "UpdateTitle"
  479.     UpdateTitle.Parent = Home
  480.     UpdateTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  481.     UpdateTitle.BorderSizePixel = 0
  482.     UpdateTitle.Position = ud2(0, 0, 0.40200001, 0)
  483.     UpdateTitle.Selectable = true
  484.     UpdateTitle.Size = ud2(0, 450, 0, 41)
  485.     UpdateTitle.Font = Enum.Font.Cartoon
  486.     UpdateTitle.Text = "Updates:"
  487.     UpdateTitle.TextColor3 = Color3.new(1, 1, 1)
  488.     UpdateTitle.TextScaled = true
  489.     UpdateTitle.TextSize = 25
  490.     UpdateTitle.TextWrapped = true
  491.    
  492.     Updates.Name = "Updates"
  493.     Updates.Parent = Home
  494.     Updates.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  495.     Updates.BorderSizePixel = 0
  496.     Updates.Position = ud2(0, 0, 0.50999999, 0)
  497.     Updates.Selectable = true
  498.     Updates.Size = ud2(1, 0, 0.211999997, 0)
  499.     Updates.Font = Enum.Font.Cartoon
  500.     Updates.Text = "No info here as this is the first version"
  501.     Updates.TextColor3 = Color3.new(1, 1, 1)
  502.     Updates.TextSize = 25
  503.     Updates.TextWrapped = true
  504.     Updates.TextYAlignment = Enum.TextYAlignment.Top
  505.    
  506.     QuickCMD.Name = "QuickCMD"
  507.     QuickCMD.Parent = Main
  508.     QuickCMD.BackgroundColor3 = Color3.new(1, 1, 1)
  509.     QuickCMD.BackgroundTransparency = 1
  510.     QuickCMD.ClipsDescendants = true
  511.     QuickCMD.Size = ud2(1, 0, 1, 0)
  512.     QuickCMD.Visible = false
  513.    
  514.     CmdTitle.Name = "CmdTitle"
  515.     CmdTitle.Parent = QuickCMD
  516.     CmdTitle.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  517.     CmdTitle.BorderSizePixel = 0
  518.     CmdTitle.Selectable = true
  519.     CmdTitle.Size = ud2(1, 0, 0.0850000009, 0)
  520.     CmdTitle.Font = Enum.Font.Cartoon
  521.     CmdTitle.Text = "Quick Commands"
  522.     CmdTitle.TextColor3 = Color3.new(1, 1, 1)
  523.     CmdTitle.TextScaled = true
  524.     CmdTitle.TextSize = 14
  525.     CmdTitle.TextWrapped = true
  526.    
  527.     CmdCredit.Name = "CmdCredit"
  528.     CmdCredit.Parent = QuickCMD
  529.     CmdCredit.BackgroundColor3 = Color3.new(0.203922, 0.203922, 0.203922)
  530.     CmdCredit.BorderSizePixel = 0
  531.     CmdCredit.Position = ud2(0, 0, 0, 472)
  532.     CmdCredit.Selectable = true
  533.     CmdCredit.Size = ud2(0, 450, 0, 28)
  534.     CmdCredit.Font = Enum.Font.Cartoon
  535.     CmdCredit.Text = "Gui made by skrubkid#1330"
  536.     CmdCredit.TextColor3 = Color3.new(1, 1, 1)
  537.     CmdCredit.TextScaled = true
  538.     CmdCredit.TextSize = 25
  539.     CmdCredit.TextWrapped = true
  540.    
  541.     WalkInput.Name = "WalkInput"
  542.     WalkInput.Parent = QuickCMD
  543.     WalkInput.AnchorPoint = Vector2.new(1, 0)
  544.     WalkInput.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  545.     WalkInput.BorderSizePixel = 0
  546.     WalkInput.Position = ud2(0.5, -5, 0.122000001, 0)
  547.     WalkInput.Size = ud2(0, 202, 0, 50)
  548.     WalkInput.Font = Enum.Font.Cartoon
  549.     WalkInput.Text = "Input WalkSpeed"
  550.     WalkInput.TextColor3 = Color3.new(1, 1, 1)
  551.     WalkInput.TextSize = 20
  552.     WalkInput.TextWrapped = true
  553.    
  554.     JumpInput.Name = "JumpInput"
  555.     JumpInput.Parent = QuickCMD
  556.     JumpInput.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  557.     JumpInput.BorderSizePixel = 0
  558.     JumpInput.Position = ud2(0.5, 5, 0.122000001, 0)
  559.     JumpInput.Size = ud2(0, 202, 0, 50)
  560.     JumpInput.Font = Enum.Font.Cartoon
  561.     JumpInput.Text = "Input JumpPower"
  562.     JumpInput.TextColor3 = Color3.new(1, 1, 1)
  563.     JumpInput.TextSize = 20
  564.     JumpInput.TextWrapped = true
  565.    
  566.     God.Name = "God"
  567.     God.Parent = QuickCMD
  568.     God.AnchorPoint = Vector2.new(1, 0)
  569.     God.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  570.     God.BorderSizePixel = 0
  571.     God.Position = ud2(0.5, -5, 0.122000001, 60)
  572.     God.Size = ud2(0, 202, 0, 50)
  573.     God.Font = Enum.Font.Cartoon
  574.     God.Text = "God"
  575.     God.TextColor3 = Color3.new(1, 1, 1)
  576.     God.TextSize = 20
  577.    
  578.     Ungod.Name = "Ungod"
  579.     Ungod.Parent = QuickCMD
  580.     Ungod.AnchorPoint = Vector2.new(1, 0)
  581.     Ungod.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  582.     Ungod.BorderSizePixel = 0
  583.     Ungod.Position = ud2(0.971000016, -5, 0.122000001, 60)
  584.     Ungod.Size = ud2(0, 202, 0, 50)
  585.     Ungod.Font = Enum.Font.Cartoon
  586.     Ungod.Text = "Ungod"
  587.     Ungod.TextColor3 = Color3.new(1, 1, 1)
  588.     Ungod.TextSize = 20
  589.    
  590.     NameInput.Name = "NameInput"
  591.     NameInput.Parent = QuickCMD
  592.     NameInput.AnchorPoint = Vector2.new(1, 0)
  593.     NameInput.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  594.     NameInput.BorderSizePixel = 0
  595.     NameInput.Position = ud2(0.73555553, -5, 0.843999982, 0)
  596.     NameInput.Size = ud2(0, 202, 0, 50)
  597.     NameInput.Font = Enum.Font.Cartoon
  598.     NameInput.Text = "Enter Player Name (me, others and all included)"
  599.     NameInput.TextColor3 = Color3.new(1, 1, 1)
  600.     NameInput.TextSize = 20
  601.     NameInput.TextWrapped = true
  602.    
  603.     Kill.Name = "Kill"
  604.     Kill.Parent = QuickCMD
  605.     Kill.AnchorPoint = Vector2.new(1, 0)
  606.     Kill.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  607.     Kill.BorderSizePixel = 0
  608.     Kill.Position = ud2(0.5, -5, 0.122000001, 120)
  609.     Kill.Size = ud2(0, 202, 0, 50)
  610.     Kill.Font = Enum.Font.Cartoon
  611.     Kill.Text = "Kill"
  612.     Kill.TextColor3 = Color3.new(1, 1, 1)
  613.     Kill.TextSize = 20
  614.    
  615.     Kick.Name = "Kick"
  616.     Kick.Parent = QuickCMD
  617.     Kick.AnchorPoint = Vector2.new(1, 0)
  618.     Kick.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  619.     Kick.BorderSizePixel = 0
  620.     Kick.Position = ud2(0.971000016, -5, 0.122000001, 120)
  621.     Kick.Size = ud2(0, 202, 0, 50)
  622.     Kick.Font = Enum.Font.Cartoon
  623.     Kick.Text = "Kick"
  624.     Kick.TextColor3 = Color3.new(1, 1, 1)
  625.     Kick.TextSize = 20
  626.    
  627.     FF.Name = "FF"
  628.     FF.Parent = QuickCMD
  629.     FF.AnchorPoint = Vector2.new(1, 0)
  630.     FF.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  631.     FF.BorderSizePixel = 0
  632.     FF.Position = ud2(0.5, -5, 0.122000001, 180)
  633.     FF.Size = ud2(0, 202, 0, 50)
  634.     FF.Font = Enum.Font.Cartoon
  635.     FF.Text = "FF"
  636.     FF.TextColor3 = Color3.new(1, 1, 1)
  637.     FF.TextSize = 20
  638.    
  639.     unFF.Name = "unFF"
  640.     unFF.Parent = QuickCMD
  641.     unFF.AnchorPoint = Vector2.new(1, 0)
  642.     unFF.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  643.     unFF.BorderSizePixel = 0
  644.     unFF.Position = ud2(0.971000016, -5, 0.122000001, 180)
  645.     unFF.Size = ud2(0, 202, 0, 50)
  646.     unFF.Font = Enum.Font.Cartoon
  647.     unFF.Text = "unFF"
  648.     unFF.TextColor3 = Color3.new(1, 1, 1)
  649.     unFF.TextSize = 20
  650.    
  651.     data.MainTitleX = MainTitle.Size;
  652.     data.MainX = Main.Size;
  653.     data.TabsX = Tabs.Size;
  654. end
  655.  
  656. function init()
  657.     tabs = reverseTable(tabs)
  658.     Buttons.CanvasSize = ud2(0,0,0,50*#guis)
  659.     ScriptsButtons.CanvasSize = ud2(0,0,0,50*#scripts)
  660.     for i,v in ipairs(tabs) do
  661.         if #Tabs:GetChildren() > 0 then
  662.             for i,v in pairs(Tabs:GetChildren()) do
  663.                 v.Position = v.Position + ud2(0,0,0.1,0)
  664.             end
  665.         end
  666.        
  667.         local tab = Instance.new("TextLabel")
  668.         tab.Size = ud2(1,0,0,50)
  669.         tab.Position = ud2(0,0,0,0)
  670.         tab.BackgroundTransparency = 0
  671.         tab.BackgroundColor3 = Tabs.BackgroundColor3
  672.         tab.BorderSizePixel = 0
  673.         tab.Font = Enum.Font.Cartoon
  674.         tab.TextColor3 = Color3.new(1,1,1)
  675.         tab.TextSize = 35
  676.         tab.Name = v.Name
  677.         tab.Parent = Tabs
  678.        
  679.         tab.Text = v.Name
  680.         table.insert(tabButtons,tab)
  681.     end
  682.    
  683.     for i,v in pairs(guis) do
  684.         if #Buttons:GetChildren() > 0 then
  685.             for i,v in pairs(Buttons:GetChildren()) do
  686.                 v.Position = v.Position + ud2(0,0,0,50)
  687.             end
  688.         end
  689.         local btn = Instance.new("TextLabel")
  690.         btn.Size = ud2(1,0,0,50)
  691.         btn.Position = ud2(0,0,0,0)
  692.         btn.BackgroundTransparency = 0
  693.         btn.BackgroundColor3 = Tabs.BackgroundColor3
  694.         btn.BorderSizePixel = 0
  695.         btn.Font = Enum.Font.Cartoon
  696.         btn.TextColor3 = Color3.new(1,1,1)
  697.         btn.TextSize = 35
  698.         btn.Name = v[1]
  699.         btn.Parent = Buttons
  700.        
  701.         btn.Text = v[1]
  702.         table.insert(guiButtons,btn)
  703.     end
  704.    
  705.     for i,v in pairs(scripts) do
  706.         if #ScriptsButtons:GetChildren() > 0 then
  707.             for i,v in pairs(ScriptsButtons:GetChildren()) do
  708.                 v.Position = v.Position + ud2(0,0,0,50)
  709.             end
  710.         end
  711.         local btn = Instance.new("TextLabel")
  712.         btn.Size = ud2(1,0,0,50)
  713.         btn.Position = ud2(0,0,0,0)
  714.         btn.BackgroundTransparency = 0
  715.         btn.BackgroundColor3 = Tabs.BackgroundColor3
  716.         btn.BorderSizePixel = 0
  717.         btn.Font = Enum.Font.Cartoon
  718.         btn.TextColor3 = Color3.new(1,1,1)
  719.         btn.TextSize = 35
  720.         btn.Name = v[1]
  721.         btn.Parent = ScriptsButtons
  722.        
  723.         btn.Text = v[1]
  724.         table.insert(scriptButtons,btn)
  725.     end
  726.    
  727.     for i,v in pairs(ExeButtons) do
  728.         table.insert(exeButtons,i)
  729.     end
  730.    
  731.     for i,v in pairs(CmdButtons) do
  732.         table.insert(commandButtons,v.Btn)
  733.     end
  734.    
  735.     for i,v in pairs(tabButtons) do
  736.         v.MouseEnter:Connect(function()
  737.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(60,60,60)}):Play()
  738.         end)
  739.        
  740.         v.MouseLeave:Connect(function()
  741.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(42,42,42)}):Play()
  742.         end)
  743.     end
  744.    
  745.     for i,v in pairs(scriptButtons) do
  746.         v.MouseEnter:Connect(function()
  747.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(60,60,60)}):Play()
  748.         end)
  749.        
  750.         v.MouseLeave:Connect(function()
  751.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(42,42,42)}):Play()
  752.         end)
  753.     end
  754.    
  755.     for i,v in pairs(guiButtons) do
  756.         v.MouseEnter:Connect(function()
  757.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(60,60,60)}):Play()
  758.         end)
  759.        
  760.         v.MouseLeave:Connect(function()
  761.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(42,42,42)}):Play()
  762.         end)
  763.     end
  764.    
  765.     for i,v in pairs(commandButtons) do
  766.         v.MouseEnter:Connect(function()
  767.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(60,60,60)}):Play()
  768.         end)
  769.        
  770.         v.MouseLeave:Connect(function()
  771.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(42,42,42)}):Play()
  772.         end)
  773.     end
  774.    
  775.     for i,v in pairs(exeButtons) do
  776.         v.MouseEnter:Connect(function()
  777.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(60,60,60)}):Play()
  778.         end)
  779.        
  780.         v.MouseLeave:Connect(function()
  781.             tween:Create(v,TweenInfo.new(0.25),{BackgroundColor3 = Color3.fromRGB(42,42,42)}):Play()
  782.         end)
  783.     end
  784.    
  785.     data.Menu.Visible = true
  786. end
  787.  
  788. function reverseTable(t)
  789.     local r = {}
  790.     for i,v in ipairs(t) do
  791.         table.insert(r,#t-(#t-1),v)
  792.     end
  793.    
  794.     return r
  795. end
  796.  
  797. function findPlayer(str)
  798.     if str == "me" then
  799.         return player
  800.     elseif str == "all" then
  801.         local plrs = game.Players:GetChildren()
  802.         return plrs
  803.     elseif str == "others" then
  804.         local plrs = {}
  805.         for i,v in next, game.Players:GetChildren() do
  806.             if v ~= player then
  807.                 plrs[i] = v
  808.             end
  809.         end
  810.         return plrs
  811.     else
  812.         return game.Players:FindFirstChild(str)
  813.     end
  814. end
  815.  
  816. function checkHover(gui)
  817.     if gui.Parent.Visible == false then
  818.         return false
  819.     elseif gui.Parent.Parent.Visible == false then
  820.         return false
  821.     end
  822.     local isHovering = (
  823.     (mouse.X >= gui.AbsolutePosition.X and mouse.X < gui.AbsolutePosition.X + gui.AbsoluteSize.X)
  824.     and
  825.     (mouse.Y >= gui.AbsolutePosition.Y and mouse.Y < gui.AbsolutePosition.Y + gui.AbsoluteSize.Y)
  826. )
  827.     if isHovering then
  828.         return true,gui
  829.     end
  830.     return false
  831. end
  832.  
  833. function buttonClick()
  834.     for i,v in pairs(tabButtons) do
  835.         local h,g = checkHover(v)
  836.         if h and g then
  837.             if tabs[i].Name == v.Name and tabs[i].Click then
  838.                 tabs[i].Click()
  839.                 setMenu(tabs[i].Redirect)
  840.             else
  841.                
  842.             end
  843.         end
  844.     end
  845.    
  846.     for i,v in pairs(scriptButtons) do
  847.         local h,g = checkHover(v)
  848.         if g and g then
  849.             if scripts[i] and scripts[i][3] then
  850.                 if scripts[i][3] == 1 then
  851.                     warn("Loading",scripts[i][1])
  852.                     loadstring(game:HttpGetAsync("https://pastebin.com/raw/"..scripts[i][2]))()
  853.                 elseif scripts[i][3] == 2 then
  854.                     warn("Loading",scripts[i][1])
  855.                     loadstring(game:GetObjects("rbxassetid://"..scripts[i][2]))
  856.                 else
  857.                     warn("Loading",scripts[i][1])
  858.                     loadstring(scripts[i][2])
  859.                 end
  860.             end
  861.         end
  862.     end
  863.    
  864.     for i,v in pairs(guiButtons) do
  865.         local h,g = checkHover(v)
  866.         if g and g then
  867.             if guis[i] and guis[i][3] then
  868.                 if guis[i][3] == 1 then
  869.                     warn("Loading",guis[i][1])
  870.                     loadstring(game:HttpGetAsync("https://pastebin.com/raw/"..guis[i][2]))()
  871.                 elseif guis[i][3] == 2 then
  872.                     warn("Loading",guis[i][1])
  873.                     loadstring(game:GetObjects("rbxassetid://"..guis[i][2][1].Source))()
  874.                 else
  875.                     warn("Loading",guis[i][1])
  876.                     loadstring(guis[i][2])()
  877.                 end
  878.             end
  879.         end
  880.     end
  881.    
  882.     for i,v in pairs(exeButtons) do
  883.         local h,g = checkHover(v)
  884.         if h and g then
  885.             if ExeButtons[v] and ExeButtons[v].Click then
  886.                 ExeButtons[v].Click()
  887.             end
  888.         end
  889.     end
  890.    
  891.     for i,v in pairs(CmdButtons) do
  892.         local h,g = checkHover(v.Btn)
  893.         if h and g then
  894.             if v and v.Click then
  895.                 print(3)
  896.                 v.Click()
  897.             else
  898.                 print(v.Name)
  899.             end
  900.         end
  901.     end
  902. end
  903.  
  904. function setMenu(menu)
  905.     if type(menu) ~= "userdata" and not menu:IsA("Frame") then warn("Argument for setMenu is a frame, not",menu.ClassName) return end
  906.     data.Menu.Visible = false
  907.     data.Menu = menu
  908.     data.Menu.Visible = true
  909. end
  910.  
  911. function findFirst(instance, name,class)
  912.     for i,v in next, instance:GetDescendants() do
  913.         if v.Name == name and v:IsA(class) then
  914.             return v
  915.         end
  916.     end
  917. end
  918. initGui()
  919. init()
  920.  
  921. local dragging
  922. local dragInput
  923. local dragStart
  924. local startPos
  925.  
  926. local function update(input)
  927.     if checkHover(MainTitle) then
  928.         local delta = input.Position - dragStart
  929.         Main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  930.     end
  931. end
  932.  
  933. MainTitle.InputBegan:Connect(function(input)
  934.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch and checkHover(MainTitle) then
  935.         dragging = true
  936.         dragStart = input.Position
  937.         startPos = MainTitle.Position
  938.        
  939.         input.Changed:Connect(function()
  940.             if input.UserInputState == Enum.UserInputState.End then
  941.                 dragging = false
  942.             end
  943.         end)
  944.     end
  945. end)
  946.  
  947. MainTitle.InputChanged:Connect(function(input)
  948.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch  and checkHover(MainTitle) then
  949.         dragInput = input
  950.     end
  951. end)
  952.  
  953. userInput.InputChanged:Connect(function(input)
  954.     if input == dragInput and dragging and checkHover(MainTitle) then
  955.         update(input)
  956.     end
  957. end)
  958.  
  959. userInput.InputBegan:Connect(function(obj,busy)
  960.     if busy then return end
  961.    
  962.     if obj.UserInputType == Enum.UserInputType.MouseButton1 then
  963.         buttonClick()
  964.     elseif obj.KeyCode == Enum.KeyCode.Equals then
  965.        
  966.         if data.Open then
  967.             Main:TweenSize(ud2(0,Main.Size.X.Offset,0,0))
  968.             Main:TweenPosition(ud2(0,503,0,409/2))
  969.             Tabs:TweenSize(ud2(0,Tabs.Size.X.Offset,0,0))
  970.             Tabs:TweenPosition(ud2(0,580,0,0))
  971.             wait(0.95)
  972.             MainTitle:TweenSize(ud2(0,0,0,MainTitle.Size.Y.Offset))
  973.             wait(1)
  974.             setMenu(Home)
  975.         else
  976.             MainTitle:TweenSize(data.MainTitleX)
  977.             wait(0.8)
  978.             Main:TweenSize(data.MainX)
  979.             Main:TweenPosition(ud2(0,503,0,409))
  980.             Tabs:TweenSize(data.TabsX)
  981.             Tabs:TweenPosition(ud2(0,580,0,250))
  982.         end
  983.         data.Open = not data.Open
  984.     end
  985. end)
  986.  
  987. do -- Cmds
  988.     NameInput.FocusLost:Connect(function()
  989.         local p = findPlayer(NameInput.Text)
  990.        
  991.         if p then
  992.             data.Player = p
  993.             NameInput.Text = "Enter Player Name (me, others and all included)"
  994.         else
  995.             NameInput.Text = "Player not found"
  996.             wait(0.5)
  997.             NameInput.Text = "Enter Player Name (me, others and all included)"
  998.         end
  999.     end)
  1000.    
  1001.     WalkInput.FocusLost:Connect(function()
  1002.         if not data.Player then return end
  1003.         if tonumber(WalkInput.Text) then
  1004.             if typeof(data.Player) ~= "Instance" then
  1005.                 for i,v in pairs(data.Player) do
  1006.                     v.Character.Humanoid.WalkSpeed = tonumber(WalkInput.Text)
  1007.                 end
  1008.             else
  1009.                 data.Player.Character.Humanoid.WalkSpeed = tonumber(WalkInput.Text)
  1010.             end
  1011.             data.WalkSpeed = tonumber(WalkInput.Text)
  1012.         else
  1013.             WalkInput.Text = "Must be number"
  1014.             wait(0.5)
  1015.             WalkInput.Text = "Input WalkSpeed"
  1016.         end
  1017.     end)
  1018.    
  1019.     JumpInput.FocusLost:Connect(function()
  1020.         if not data.Player then return end
  1021.         if tonumber(JumpInput.Text) then
  1022.             if typeof(data.Player) ~= "Instance" then
  1023.                 for i,v in pairs(data.Player) do
  1024.                     v.Character.Humanoid.JumpPower = tonumber(JumpInput.Text)
  1025.                 end
  1026.             else
  1027.                 data.Player.Character.Humanoid.JumpPower = tonumber(JumpInput.Text)
  1028.             end
  1029.             data.JumpPower = tonumber(JumpInput.Text)
  1030.         else
  1031.             JumpInput.Text = "Must be number"
  1032.             wait(0.5)
  1033.             JumpInput.Text = "Input JumpPower"
  1034.         end
  1035.     end)
  1036. end
  1037.  
  1038. ----------------[[ END OF SCRIPT ]]----------------
Advertisement
Add Comment
Please, Sign In to add comment