evannik23

Roblox Exploit Lib v2.1

May 19th, 2022 (edited)
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.37 KB | None | 0 0
  1. local g = getgenv()
  2. local Lib = {}
  3.  
  4. function Lib:ToScaleSize(guiobject)
  5.     if guiobject:IsA("GuiBase2d") then
  6.         game:GetService( 'RunService' ).RenderStepped:Wait()
  7.         local Viewport_Size
  8.  
  9.         if guiobject.Parent:IsA("GuiBase2d") then
  10.             Viewport_Size = guiobject.Parent.AbsoluteSize
  11.         elseif guiobject:FindFirstAncestorWhichIsA("GuiBase2d") then
  12.             Viewport_Size = guiobject:FindFirstAncestorWhichIsA("GuiBase2d").AbsoluteSize
  13.         else
  14.             Viewport_Size = workspace.CurrentCamera.ViewportSize
  15.         end
  16.  
  17.         local LB_Size = guiobject.AbsoluteSize
  18.         guiobject.Size = UDim2.new(LB_Size.X/Viewport_Size.X,0,LB_Size.Y/Viewport_Size.Y, 0)
  19.     end
  20. end
  21. Lib:NoSameConnection(Connection,valname)---- Function Prevents Double Connections
  22.    
  23.     if g[valname]==nil then
  24.     g[valname]=Connection
  25.     print("Connected")
  26.     else
  27.     if typeof(g[valname])=="RBXScriptConnection" then
  28.     g[valname]:Disconnect()
  29.     g[valname]=nil--Just In Case
  30.     g[valname]=Connection
  31.     print("Reconnected")
  32.     else error([[Needs "RBXScriptConnection" got: ]]..typeof(g[valname])) return
  33.         end
  34.     end    
  35. end
  36.  
  37. function Lib:MakeCatagory(Parent,Name,LayoutOrder)
  38.    
  39.     local Catagory = Instance.new("Frame",Parent)
  40.     local UICorner = Instance.new("UICorner", Catagory)
  41.     local Selected = Instance.new("TextButton", Catagory)
  42.     local UICorner_2 = Instance.new("UICorner",Selected)
  43.     local TextLabel = Instance.new("TextLabel",Catagory)
  44.     local Spacing = Instance.new("Frame",Catagory)
  45.     local EnabledColor = Color3.new(0, 1, 0)
  46.     local DisabledColor = Color3.new(1,1,1)
  47.     Catagory.Name = Name
  48.     Catagory.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  49.     Catagory.BorderColor3 = Color3.fromRGB(27, 42, 53)
  50.     Catagory.Position = UDim2.new(0, 0, 0.0653879344, 0)
  51.     Catagory.Size = UDim2.new(0, 142, 0, 45)
  52.    
  53.    
  54.     Catagory.LayoutOrder = LayoutOrder
  55.     Selected.Name = "Selected"
  56.      
  57.     Selected.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58.     Selected.Position = UDim2.new(0.0633802786, 0, 0.13333334, 0)
  59.     Selected.Size = UDim2.new(0, 37, 0, 33)
  60.     Lib:ToScaleSize(Selected)
  61.     Selected.Font = Enum.Font.SourceSans
  62.     Selected.Text = ""
  63.     Selected.TextColor3 = Color3.fromRGB(0, 0, 0)
  64.     Selected.TextSize = 14.000
  65.     TextLabel.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  66.     TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  67.     TextLabel.Position = UDim2.new(0.408450693, 0, 0.120129392, 0)
  68.     TextLabel.Size = UDim2.new(0, 76, 0, 33)
  69.     Lib:ToScaleSize(TextLabel)
  70.     TextLabel.Font = Enum.Font.Ubuntu
  71.     TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  72.     TextLabel.TextScaled = true
  73.     TextLabel.TextSize = 14.000
  74.     TextLabel.TextWrapped = true
  75.     TextLabel.Text = Name
  76.     Spacing:Destroy()
  77.     local CatagoryFrame = Instance.new("Frame", Catagory.Parent.Parent.Catagories)
  78.     Instance.new("UIGridLayout",CatagoryFrame).CellSize = UDim2.fromOffset(142,45)
  79.     CatagoryFrame.Name = Name
  80.     CatagoryFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  81.     CatagoryFrame.BackgroundTransparency = 1.000
  82.     CatagoryFrame.Size = UDim2.new(0, 417, 0, 313)
  83.     CatagoryFrame.Visible = false
  84.     Lib:ToScaleSize(TextLabel)
  85.     local IsSelected = Instance.new("BoolValue", Catagory)
  86.     IsSelected.Value = false
  87.     IsSelected.Name = "IsSelected"
  88.     print("Catagory Made")
  89.     Selected.MouseButton1Click:Connect(function()
  90.         if IsSelected.Value == false then
  91.             IsSelected.Value = true
  92.             Selected.BackgroundColor3 = EnabledColor
  93.             Parent.Current.Value = Selected.Parent.Name
  94.         end
  95.     end)
  96.     Parent.Current:GetPropertyChangedSignal("Value"):Connect(function()
  97.         for i,v in pairs(Parent:GetChildren()) do
  98.             if v:IsA("Frame") then
  99.                 if v.Name == Parent.Current.Value then
  100.                     v.Selected.BackgroundColor3 = EnabledColor
  101.                     v.IsSelected.Value = true
  102.                     Parent.Parent.Catagories[v.Name].Visible = true
  103.                 else
  104.                     v.Selected.BackgroundColor3 = DisabledColor
  105.                     v.IsSelected.Value = false
  106.                     Parent.Parent.Catagories[v.Name].Visible = false
  107.  
  108.                 end
  109.             end
  110.         end
  111.     end)
  112.     return {Catagory,CatagoryFrame}
  113. end
  114. function Lib:MakeCatagoriesMenu(p)
  115.     local CatagoriesMenu = Instance.new("ScrollingFrame", p)
  116.     local UIListLayout = Instance.new("UIListLayout", CatagoriesMenu)
  117.  
  118.     CatagoriesMenu.Name = "CatagoriesMenu"
  119.     CatagoriesMenu.Parent = p
  120.     CatagoriesMenu.Active = true
  121.     CatagoriesMenu.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  122.     CatagoriesMenu.BackgroundTransparency = 1.000
  123.     CatagoriesMenu.BorderColor3 = Color3.fromRGB(61, 61, 61)
  124.     CatagoriesMenu.Position = UDim2.new(0.0102903796, 0, 0.165862083, 0)
  125.     CatagoriesMenu.Size = UDim2.new(0.311, 0,0.847, 0)
  126.     local Current = Instance.new("StringValue", CatagoriesMenu)
  127.     Current.Name = "Current"
  128.     return CatagoriesMenu
  129. end
  130. function Lib:WorldToScreen(Pos)
  131.     local M = game.Players.LocalPlayer:GetMouse()
  132.     local Cam = game.Workspace.CurrentCamera
  133.     local point = Cam.CoordinateFrame:pointToObjectSpace(Pos)
  134.     local aspectRatio = M.ViewSizeX / M.ViewSizeY
  135.     local hfactor = math.tan(math.rad(Cam.FieldOfView) / 2)
  136.     local wfactor = aspectRatio*hfactor
  137.  
  138.     local x = (point.x/point.z) / -wfactor
  139.     local y = (point.y/point.z) /  hfactor
  140.  
  141.     return Vector2.new(M.ViewSizeX * (0.5 + 0.5 * x), M.ViewSizeY * (0.5 + 0.5 * y))
  142. end;
  143. function Lib:Dragify(frame)
  144.     local gui = frame
  145.     local UserInputService = game:GetService("UserInputService")
  146.     local dragging
  147.     local dragInput
  148.     local dragStart
  149.     local startPos
  150.  
  151.     local function update(input)
  152.         local delta = input.Position - dragStart
  153.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  154.     end
  155.  
  156.     gui.InputBegan:Connect(function(input)
  157.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  158.             dragging = true
  159.             dragStart = input.Position
  160.             startPos = gui.Position
  161.  
  162.             input.Changed:Connect(function()
  163.                 if input.UserInputState == Enum.UserInputState.End then
  164.                     dragging = false
  165.                 end
  166.             end)
  167.         end
  168.     end)
  169.  
  170.     gui.InputChanged:Connect(function(input)
  171.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  172.             dragInput = input
  173.         end
  174.     end)
  175.  
  176.     UserInputService.InputChanged:Connect(function(input)
  177.         if input == dragInput and dragging then
  178.             update(input)
  179.         end
  180.     end)
  181. end;
  182. function Lib:MakeBoolFrame(Parent, Text, LayoutOrder, TrueFunc,FalseFunc)
  183.     local Bool = Instance.new("Frame",Parent)
  184.     local UICorner = Instance.new("UICorner",Bool)
  185.     local Selected = Instance.new("TextButton",Bool)
  186.     local UICorner_2 = Instance.new("UICorner",Selected)
  187.     local TextLabel = Instance.new("TextLabel",Bool)
  188.     local Spacing = Instance.new("Frame",Bool)
  189.     local Enabled = Instance.new("BoolValue",Bool)
  190.     local True = Color3.new(0,1,0)
  191.     local False = Color3.new(1,1,1)
  192.     Enabled.Value = false
  193.     Bool.Name = Text
  194.     Bool.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  195.     Bool.BorderColor3 = Color3.fromRGB(27, 42, 53)
  196.     Bool.Position = UDim2.new(0.00479616318, 0, 0.132480592, 0)
  197.     Bool.Size = UDim2.new(0, 142, 0, 45)
  198.     Lib:ToScaleSize(Bool)
  199.     Bool.LayoutOrder = LayoutOrder
  200.  
  201.  
  202.     Selected.Name = "Selected"
  203.     Selected.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  204.     Selected.Position = UDim2.new(0.0633802786, 0, 0.13333334, 0)
  205.     Selected.Size = UDim2.new(0, 37, 0, 33)
  206.     Lib:ToScaleSize(Bool)
  207.     Selected.Font = Enum.Font.SourceSans
  208.     Selected.Text = ""
  209.     Selected.TextColor3 = Color3.fromRGB(0, 0, 0)
  210.     Selected.TextSize = 14.000
  211.  
  212.  
  213.  
  214.  
  215.     TextLabel.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  216.     TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  217.     TextLabel.Position = UDim2.new(0.408450693, 0, 0.120129392, 0)
  218.     TextLabel.Size = UDim2.new(0, 76, 0, 33)
  219.     TextLabel.Font = Enum.Font.Ubuntu
  220.     TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  221.     TextLabel.TextScaled = true
  222.     TextLabel.TextSize = 14.000
  223.     TextLabel.TextWrapped = true
  224.     TextLabel.Text = Text
  225.     Spacing.Name = "Spacing"
  226.     Spacing.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  227.     Spacing.BackgroundTransparency = 1.000
  228.     Spacing.BorderColor3 = Color3.fromRGB(61, 61, 61)
  229.     Spacing.Position = UDim2.new(1, 0, 0, 0)
  230.     Spacing.Size = UDim2.new(0, 11, 0, 45)
  231.     Lib:ToScaleSize(Spacing)
  232.     Selected.MouseButton1Click:Connect(function()
  233.         if Enabled.Value == true then
  234.             Enabled.Value = false
  235.             Selected.BackgroundColor3 = False
  236.         else
  237.             Enabled.Value = true
  238.             Selected.BackgroundColor3 = True
  239.         end
  240.     end)
  241.     Enabled:GetPropertyChangedSignal("Value"):Connect(function()
  242.         if Enabled.Value == true then TrueFunc()
  243.         elseif Enabled.Value == false then FalseFunc()
  244.         end
  245.  
  246.     end)
  247.  
  248. end;
  249. function Lib:MakeButtonFrame(Parent, Text, LayoutOrder,ClickFunc)
  250.     local Frame = Instance.new("Frame",Parent)
  251.     Frame.Name = "Button"
  252.     Frame.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  253.     Frame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  254.     Frame.Position = UDim2.new(0.00479616318, 0, 0.132480592, 0)
  255.     Frame.Size = UDim2.new(0, 142, 0, 45)
  256.    
  257.     Frame.LayoutOrder = LayoutOrder
  258.     Frame.BackgroundTransparency = 1
  259.     local Button = Instance.new("TextButton",Frame)
  260.     local TextLabel = Button
  261.     Button.Text = Text
  262.     TextLabel.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  263.     TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  264.     TextLabel.Position = Frame.Position
  265.     TextLabel.Size = Frame.Size
  266.     TextLabel.Font = Enum.Font.Ubuntu
  267.     TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  268.     TextLabel.TextScaled = true
  269.     TextLabel.TextSize = 14.000
  270.     TextLabel.TextWrapped = true
  271.     TextLabel.Text = Text
  272.     Instance.new("UICorner", Button)
  273.     local Spacing = Instance.new("Frame",Frame)
  274.     Spacing.Name = "Spacing"
  275.     Spacing.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  276.     Spacing.BackgroundTransparency = 1.000
  277.     Spacing.BorderColor3 = Color3.fromRGB(61, 61, 61)
  278.     Spacing.Position = UDim2.new(1, 0, 0, 0)
  279.     Spacing.Size = UDim2.new(0, 11, 0, 45)
  280.     Lib:ToScaleSize(Spacing)
  281.     if type(ClickFunc) == "function" then
  282.         Button.MouseButton1Click:Connect(ClickFunc)
  283.     end
  284.     return Button
  285.  
  286. end;
  287. function Lib:MakeGUI(parent,name,Title)
  288.     if typeof(_G.GUI) == "Instance" then
  289.     _G.GUI:Destroy()
  290.     elseif typeof(_G.GUI) == nil  then
  291.         print("Nil")
  292.     end
  293.    
  294.  
  295.     local ExploitGui = Instance.new("ScreenGui")
  296.     ExploitGui.Name = name
  297.     ExploitGui.Parent = parent
  298.     ExploitGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  299.  
  300.     local Frame = Instance.new("Frame")
  301.     local UICorner = Instance.new("UICorner")
  302.     local TextLabel = Instance.new("TextLabel")
  303.     TextLabel.Parent = ExploitGui
  304.     TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 127)
  305.     TextLabel.Position = UDim2.new(0.319838107, 0, 0.21801801, 0)
  306.     TextLabel.Size = UDim2.new(0, 118, 0, 11)
  307.     Lib:ToScaleSize(TextLabel)
  308.     TextLabel.Visible = false
  309.     TextLabel.Font = Enum.Font.RobotoCondensed
  310.     TextLabel.Text = "Desc"
  311.     TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  312.     TextLabel.TextScaled = true
  313.     TextLabel.TextSize = 14.000
  314.     TextLabel.TextWrapped = true
  315.     TextLabel.ZIndex = 2
  316.  
  317.  
  318.     Frame.Parent = ExploitGui
  319.     Frame.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  320.     Frame.Position = UDim2.new(0.262145758, 0, 0.162162155, 0)
  321.     Frame.Size = UDim2.fromScale(0.514,0.541)
  322.     local Catagories = Instance.new("Frame", Frame)
  323.     Catagories.Name = "Catagories"
  324.     Catagories.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  325.     Catagories.BackgroundTransparency = 1.000
  326.     Catagories.Position = UDim2.new(0.284700513, 0, 0, 0)
  327.     Catagories.Size = UDim2.new(0, 417, 0, 313)
  328.     Lib:ToScaleSize(Catagories)
  329.     UICorner.Parent = Frame
  330.  
  331.     local title = Instance.new("TextLabel")
  332.     title.Name = "Title"
  333.     title.Parent = Frame
  334.     title.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  335.     title.Size = UDim2.fromScale(0.394,0.167)
  336.     title.Font = Enum.Font.PatrickHand
  337.     title.TextColor3 = Color3.fromRGB(170, 0, 0)
  338.     title.TextScaled = true
  339.     title.TextSize = 14.000
  340.     title.TextWrapped = true
  341.     title.Text = Title
  342.     title.BackgroundTransparency = 1
  343.     Instance.new("UICorner", title)
  344.     _G.GUI = ExploitGui
  345.     title.Size = UDim2.new(0.321, 0,0.167, 0)
  346.     return ExploitGui
  347. end;
  348.  
  349. function Lib:MakeSettings(parent)
  350.     local SettingsFrame = Instance.new("Frame", parent)
  351.     local SettingsButton = Instance.new("ImageButton", parent)
  352.     local OpenSize = UDim2.fromScale(1,0.978)
  353.     local CloseSize = UDim2.fromScale(1,0)
  354.     local openimage = 'rbxassetid://5853926901'
  355.     local closeimage = "rbxassetid://9405931578"
  356.     Instance.new("UICorner").Parent = SettingsFrame
  357.     local cell = Instance.new("UIGridLayout",SettingsFrame)
  358.     cell.CellSize = UDim2.fromOffset(142,45)
  359.    
  360.    
  361.     local function Animation()
  362.         if SettingsFrame.Size == OpenSize then
  363.             game.TweenService:Create(SettingsFrame, TweenInfo.new(0.5), {Size = CloseSize}):Play()
  364.             wait(0.5)
  365.             SettingsFrame.Visible = false
  366.             SettingsButton.Image = closeimage
  367.         elseif SettingsFrame.Size == CloseSize then
  368.             game.TweenService:Create(SettingsFrame, TweenInfo.new(0.5), {Size = OpenSize}):Play()
  369.             SettingsFrame.Visible = true
  370.             SettingsButton.Image = openimage
  371.         end
  372.     end
  373.     SettingsFrame.Visible = false
  374.     SettingsFrame.ZIndex = 2
  375.     SettingsFrame.Size = CloseSize
  376.     SettingsFrame.Position = UDim2.fromScale(0,0.022)
  377.     SettingsFrame.BackgroundColor3 = Color3.new(0,0,0)
  378.  
  379.     local UICorner = Instance.new("UICorner")
  380.     SettingsButton.Name = "SettingsButton"
  381.     SettingsButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  382.     SettingsButton.Position = UDim2.new(0.835, 0,-0.108, 0)
  383.     SettingsButton.Size = UDim2.new(0.089, 0,0.137, 0)
  384.     SettingsButton.Image = "rbxassetid://9405931578"
  385.     UICorner.Parent = SettingsButton
  386.  
  387.     SettingsButton.MouseButton1Click:Connect(function()
  388.         Animation()
  389.     end)
  390.     local X = Instance.new("ImageButton", parent)
  391.     X.Name = "X"
  392.     X.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  393.     X.Position = UDim2.new(0.924419165, 0, -0.108448282, 0)
  394.     X.Size = UDim2.fromScale(0.089,0.137)
  395.     X.Image = "rbxassetid://7104731055"
  396.     X.ImageColor3 = Color3.fromRGB(255, 0, 0)
  397.     Instance.new("UICorner").Parent = X
  398.     X.MouseButton1Click:Connect(function()
  399.         local gui = parent.Parent
  400.         gui.Enabled = false
  401.     end)
  402.     return SettingsFrame
  403. end;
  404. function Lib:ConnectKeyBind(textbox, Key, func)
  405.     local TextBox = textbox
  406.     local KeyConnection = nil
  407.  
  408.     local UIS = game:GetService("UserInputService")
  409.     local InputKey = nil
  410.     if typeof(Key) == nil then
  411.         InputKey = Enum.KeyCode["E"]
  412.     elseif typeof(Key) == "string" then
  413.         InputKey = Enum.KeyCode[Key]
  414.         TextBox.Text = Key
  415.     elseif typeof(Key) == "EnumItem" then
  416.         InputKey = Key
  417.         TextBox.Text = Key.Name
  418.     else
  419.         error("EnumItem, string, or nil expected ".."Got "..(typeof(Key)))    
  420.     end  
  421.  
  422.  
  423.     local editkeymode = false
  424.     TextBox.Focused:Connect(function()
  425.         KeyConnection = UIS.InputBegan:Connect(function(input)
  426.             if input.KeyCode.Name == "Unknown" then else
  427.                 InputKey = input.KeyCode
  428.                 TextBox.Text = input.KeyCode.Name
  429.                 TextBox:ReleaseFocus()
  430.                 editkeymode = true
  431.             end
  432.         end)
  433.     end)
  434.     TextBox.FocusLost:Connect(function()
  435.         KeyConnection:Disconnect()
  436.         KeyConnection = nil
  437.         print("Disconnect")
  438.         wait(0.1)
  439.         editkeymode = false
  440.  
  441.     end)
  442.     if typeof(func)==nil then
  443.         error("Function expected got "..(typeof(func)))
  444.     end    
  445.     UIS.InputBegan:Connect(function(input)
  446.         if not editkeymode then
  447.             if input.KeyCode == InputKey then
  448.                 func()
  449.             end
  450.         end
  451.     end)
  452. end;
  453. function Lib:MakeKeyBindFrame(parent, title,LayoutOrder)
  454.     local KeyBind = Instance.new("Frame", parent)
  455.     local UICorner = Instance.new("UICorner",KeyBind)
  456.     local TextLabel = Instance.new("TextLabel",KeyBind)
  457.     local Spacing = Instance.new("Frame",KeyBind)
  458.     local TextBox = Instance.new("TextBox",KeyBind)
  459.     local UICorner_2 = Instance.new("UICorner",TextBox)
  460.    
  461.     KeyBind.LayoutOrder = LayoutOrder
  462.     KeyBind.Name = "KeyBind"
  463.     KeyBind.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  464.     KeyBind.BorderColor3 = Color3.fromRGB(27, 42, 53)
  465.     KeyBind.Position = UDim2.new(0, 0, 0.0653879344, 0)
  466.     KeyBind.Size = UDim2.new(0.340527564, 0, 0.143769965, 0)
  467.     UICorner.Parent = KeyBind
  468.     TextLabel.Parent = KeyBind
  469.     TextLabel.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  470.     TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  471.     TextLabel.Position = UDim2.new(0.0633802712, 0, 0.142351612, 0)
  472.     TextLabel.Size = UDim2.new(0, 76, 0, 33)
  473.     Lib:ToScaleSize(TextLabel)
  474.     TextLabel.Font = Enum.Font.Ubuntu
  475.     TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  476.     TextLabel.TextScaled = true
  477.     TextLabel.TextSize = 14.000
  478.     TextLabel.TextWrapped = true
  479.     TextLabel.Text = title
  480.     Spacing.Name = "Spacing"
  481.     Spacing.Parent = KeyBind
  482.     Spacing.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  483.     Spacing.BorderColor3 = Color3.fromRGB(61, 61, 61)
  484.     Spacing.Position = UDim2.new(1.01408446, 0, 0, 0)
  485.     Spacing.Size = UDim2.new(0, 14, 0, 45)
  486.     Lib:ToScaleSize(Spacing)
  487.     Spacing.BackgroundTransparency = 1
  488.     TextBox.Parent = KeyBind
  489.     TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  490.     TextBox.Position = UDim2.new(0.676056385, 0, 0.142351612, 0)
  491.     TextBox.Size = UDim2.new(0, 37, 0, 33)
  492.     Lib:ToScaleSize(TextBox)
  493.     Lib:ToScaleSize(TextBox)
  494.     print(TextBox.Size)
  495.     TextBox.Font = Enum.Font.SourceSans
  496.     TextBox.Text = ""
  497.     TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  498.     TextBox.TextScaled = true
  499.     TextBox.TextSize = 14.000
  500.     TextBox.TextWrapped = true
  501.  
  502.     UICorner_2.Parent = TextBox
  503.     return TextBox
  504.  
  505. end;    
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514. function Lib:FindRemoteEvent(instance, Name)
  515.  
  516.     for i,v in pairs(instance:GetDescendants())do
  517.         if v.Name == Name then
  518.             return v
  519.         end end
  520.  
  521. end;    
  522.  
  523. function Lib:Tween(object, time, proptable, playnow)
  524.       local ts = game.TweenService
  525.       local tween = ts:Create(object,TweenInfo.new(time), proptable)
  526.       tween:Play()
  527.       wait(time)
  528. end;
  529.  
  530.  
  531.  
  532.  
  533.  
  534. function Lib:SendNotif(title, text, delay)
  535.     game.StarterGui:SetCore("SendNotification", {Title = title,Text = text,Duration = delay})
  536. end;
  537.  
  538. return Lib;
Advertisement
Add Comment
Please, Sign In to add comment