Advertisement
joefromsansnite

Untitled

Dec 20th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.53 KB | None | 0 0
  1. local library = {}
  2.  
  3. --[[ Array Types ]]--
  4. type window = {Title: string, Scale: number}
  5. type tab = {Text: string, Icon: string}
  6. type section = {Text: string, Description: string, Icon: string}
  7. type button = {Text: string, Callback: any}
  8. type input = {Text: string, Placeholder: string, Callback: any}
  9. type slider = {Text: string, Min: number, Max: number, Callback: any}
  10. type toggle = {Text: string, Callback: any}
  11. type switch = {Text: string, Callback: any}
  12. type dropdown = {Text: string, Items: any, Callback: any}
  13. type vector3 = {Text: string, Callback: any}
  14. type vector2 = {Text: string, Callback: any}
  15.  
  16.  
  17. --[[ Library Functions ]]--
  18. function library:CreateWindow(args: window)
  19. --[[ Set Default Values ]]--
  20. args.Title = (args.Title == nil) and "Title" or args.Title
  21. args.Scale = (type(args.Scale) ~= "number") and 0.9 or args.Scale
  22. args.Scale = math.clamp(args.Scale, 0.5, 1.5)
  23.  
  24.  
  25. --[[ Variables ]]--
  26. -- Services --
  27. local tweenService = game:GetService("TweenService")
  28. local runService = game:GetService("RunService")
  29. local userInputService = game:GetService("UserInputService")
  30. local players = game:GetService("Players")
  31. local marketPlaceService = game:GetService("MarketplaceService")
  32. local starterGui = game:GetService("StarterGui")
  33. local coreGui = game:GetService("CoreGui")
  34.  
  35. -- Modules --
  36. local UUIDGenerator = loadstring(game:HttpGet("https://pastebin.com/raw/wy3u2eTU"))()
  37.  
  38.  
  39. -- Notification --
  40. starterGui:SetCore("SendNotification", {Title = "Credits",
  41. Text = [[
  42. UI Design By: ImposterSussy111
  43. Scripting By: ImposterSussy111
  44. ]],
  45. Button1 = "Close"
  46. })
  47.  
  48. -- Misc --
  49. local gameId = game.PlaceId
  50. local pages = 0
  51.  
  52. -- Player --
  53. local player = players.LocalPlayer
  54.  
  55. -- Player Info Values --
  56. local name, profile, gameName = player.Name, players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420), marketPlaceService:GetProductInfo(gameId).Name
  57.  
  58.  
  59. --[[ Gui ]]--
  60. local LibraryUI = Instance.new("ScreenGui")
  61. local Menu = Instance.new("Frame")
  62. local Background = Instance.new("Frame")
  63. local Tabs = Instance.new("ScrollingFrame")
  64. local UIListLayout = Instance.new("UIListLayout")
  65. local PlayerInfo = Instance.new("Frame")
  66. local ProfilePicture = Instance.new("ImageLabel")
  67. local UICorner = Instance.new("UICorner")
  68. local Name = Instance.new("TextLabel")
  69. local Game = Instance.new("TextLabel")
  70. local TabSearchbar = Instance.new("Frame")
  71. local UICorner_2 = Instance.new("UICorner")
  72. local Underline = Instance.new("Frame")
  73. local SearchInput = Instance.new("TextBox")
  74. local SearchButton = Instance.new("ImageLabel")
  75. local UIStroke = Instance.new("UIStroke")
  76. local Pages = Instance.new("Frame")
  77. local UIPageLayout = Instance.new("UIPageLayout")
  78. local Title = Instance.new("TextLabel")
  79. local Exit = Instance.new("ImageButton")
  80. local Maximize = Instance.new("ImageButton")
  81. local Minimize = Instance.new("ImageButton")
  82. local shadowHolder = Instance.new("Frame")
  83. local umbraShadow = Instance.new("ImageLabel")
  84. local penumbraShadow = Instance.new("ImageLabel")
  85. local ambientShadow = Instance.new("ImageLabel")
  86. local UIScale = Instance.new("UIScale")
  87. local UIScale_2 = Instance.new("UIScale")
  88. local Blur = Instance.new("ViewportFrame")
  89. local BlurPart = Instance.new("Part")
  90.  
  91. LibraryUI.Name = UUIDGenerator:Generate()
  92. LibraryUI.Parent = coreGui
  93. LibraryUI.IgnoreGuiInset = true
  94. LibraryUI.DisplayOrder = 9999
  95. LibraryUI.ResetOnSpawn = false
  96.  
  97. Menu.Name = "Menu"
  98. Menu.Parent = LibraryUI
  99. Menu.AnchorPoint = Vector2.new(0.5, 0.5)
  100. Menu.BackgroundColor3 = Color3.fromRGB(10, 10, 20)
  101. Menu.BackgroundTransparency = 0.1
  102. Menu.BorderSizePixel = 0
  103. Menu.Position = UDim2.new(0.513616562, 0, 0.180999994, 0)
  104. Menu.Size = UDim2.new(0, 600, 0, 25)
  105. Menu.Active = true
  106.  
  107. UIScale.Scale = args.Scale
  108. UIScale.Parent = Menu
  109.  
  110. Background.Name = "Background"
  111. Background.Parent = Menu
  112. Background.BackgroundColor3 = Color3.fromRGB(10, 10, 20)
  113. Background.BackgroundTransparency = 0.1
  114. Background.BorderSizePixel = 0
  115. Background.ClipsDescendants = true
  116. Background.Position = UDim2.new(0.5, 0, 8.36, 0)
  117. Background.Size = UDim2.new(1, 0, 10.7348843, 100)
  118. Background.AnchorPoint = Vector2.new(0.5, 0.5)
  119.  
  120. UIScale_2.Parent = Background
  121.  
  122. Blur.Position = UDim2.new(0.5, 0, 7.85, 0)
  123. Blur.Size = UDim2.new(1, 0, 15.7, 0)
  124. Blur.Ambient = Color3.fromRGB(255, 255, 255)
  125. Blur.LightColor = Color3.fromRGB(255, 255, 255)
  126. Blur.BackgroundTransparency = 1
  127. Blur.AnchorPoint = Vector2.new(0.5, 0.5)
  128. Blur.Name = "Blur"
  129. Blur.Parent = Menu
  130. Blur.ZIndex = -1
  131. Blur.ImageTransparency = 0.15
  132.  
  133. BlurPart.Color = Color3.fromRGB(91, 93, 105)
  134. BlurPart.Material = Enum.Material.Glass
  135. BlurPart.Size = Vector3.new(1680.75, 800, 1000)
  136. BlurPart.Position = Vector3.new(-80.925, -15.85, -511.75)
  137. BlurPart.Parent = Blur
  138.  
  139. Tabs.Name = "Tabs"
  140. Tabs.Parent = Background
  141. Tabs.Active = true
  142. Tabs.AnchorPoint = Vector2.new(0.5, 0.5)
  143. Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  144. Tabs.BackgroundTransparency = 1.000
  145. Tabs.BorderSizePixel = 0
  146. Tabs.Position = UDim2.new(0.148999989, 0, 0.622615039, 0)
  147. Tabs.Size = UDim2.new(0, 175, 0, 277)
  148. Tabs.CanvasSize = UDim2.new(0, 0, 0, 0)
  149. Tabs.ScrollBarThickness = 6
  150. Tabs.AutomaticCanvasSize = Enum.AutomaticSize.Y
  151.  
  152. UIListLayout.Parent = Tabs
  153. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  154.  
  155. PlayerInfo.Name = "PlayerInfo"
  156. PlayerInfo.Parent = Background
  157. PlayerInfo.AnchorPoint = Vector2.new(0.5, 0.5)
  158. PlayerInfo.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
  159. PlayerInfo.BackgroundTransparency = 1.000
  160. PlayerInfo.BorderSizePixel = 0
  161. PlayerInfo.Position = UDim2.new(0.148999989, 0, 0.0733076707, 0)
  162. PlayerInfo.Size = UDim2.new(0, 175, 0, 58)
  163.  
  164. ProfilePicture.Name = "ProfilePicture"
  165. ProfilePicture.Parent = PlayerInfo
  166. ProfilePicture.AnchorPoint = Vector2.new(0.5, 0.5)
  167. ProfilePicture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  168. ProfilePicture.Position = UDim2.new(0.191, 0, 0.5, 0)
  169. ProfilePicture.Size = UDim2.new(0, 45, 0, 45)
  170. ProfilePicture.Image = profile
  171.  
  172. UICorner.CornerRadius = UDim.new(1, 0)
  173. UICorner.Parent = ProfilePicture
  174.  
  175. Name.Name = "Name"
  176. Name.Parent = PlayerInfo
  177. Name.AnchorPoint = Vector2.new(0.5, 0.5)
  178. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  179. Name.BackgroundTransparency = 1.000
  180. Name.Position = UDim2.new(0.649754286, 0, 0.338669926, 0)
  181. Name.Size = UDim2.new(0, 101, 0, 18)
  182. Name.Font = Enum.Font.SourceSansSemibold
  183. Name.Text = name
  184. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  185. Name.TextScaled = true
  186. Name.TextSize = 14.000
  187. Name.TextWrapped = true
  188. Name.TextXAlignment = Enum.TextXAlignment.Left
  189.  
  190. Game.Name = "Game"
  191. Game.Parent = PlayerInfo
  192. Game.AnchorPoint = Vector2.new(0.5, 0.5)
  193. Game.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  194. Game.BackgroundTransparency = 1.000
  195. Game.Position = UDim2.new(0.649754286, 0, 0.661330044, 0)
  196. Game.Size = UDim2.new(0, 101, 0, 18)
  197. Game.Font = Enum.Font.SourceSansLight
  198. Game.Text = gameName
  199. Game.TextColor3 = Color3.fromRGB(255, 255, 255)
  200. Game.TextScaled = true
  201. Game.TextSize = 14.000
  202. Game.TextWrapped = true
  203. Game.TextXAlignment = Enum.TextXAlignment.Left
  204.  
  205. TabSearchbar.Name = "TabSearchbar"
  206. TabSearchbar.Parent = Background
  207. TabSearchbar.AnchorPoint = Vector2.new(0.5, 0.5)
  208. TabSearchbar.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  209. TabSearchbar.BorderSizePixel = 0
  210. TabSearchbar.ClipsDescendants = false
  211. TabSearchbar.Position = UDim2.new(0.148499995, 0, 0.200000003, 0)
  212. TabSearchbar.Size = UDim2.new(0, 155, 0, 25)
  213.  
  214. UICorner_2.CornerRadius = UDim.new(0, 4)
  215. UICorner_2.Parent = TabSearchbar
  216.  
  217. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  218. UIStroke.Thickness = 0
  219. UIStroke.Parent = TabSearchbar
  220.  
  221. Underline.Name = "Underline"
  222. Underline.Parent = TabSearchbar
  223. Underline.AnchorPoint = Vector2.new(0.5, 0.5)
  224. Underline.BackgroundColor3 = Color3.fromRGB(120, 120, 130)
  225. Underline.BorderSizePixel = 0
  226. Underline.Position = UDim2.new(0.5, 0, 0.949999988, 0)
  227. Underline.Size = UDim2.new(0.980000019, 0, 0.0399999991, 0)
  228.  
  229. SearchInput.Name = "SearchInput"
  230. SearchInput.Parent = TabSearchbar
  231. SearchInput.AnchorPoint = Vector2.new(0.5, 0.5)
  232. SearchInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  233. SearchInput.BackgroundTransparency = 1.000
  234. SearchInput.Position = UDim2.new(0.435000002, 0, 0.449999988, 0)
  235. SearchInput.Size = UDim2.new(0.781193614, 0, 0.600000083, 0)
  236. SearchInput.ClearTextOnFocus = false
  237. SearchInput.Font = Enum.Font.SourceSans
  238. SearchInput.PlaceholderText = "Search for tab"
  239. SearchInput.Text = ""
  240. SearchInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  241. SearchInput.TextScaled = true
  242. SearchInput.TextSize = 14.000
  243. SearchInput.TextWrapped = true
  244. SearchInput.TextXAlignment = Enum.TextXAlignment.Left
  245.  
  246. SearchButton.Name = "SearchButton"
  247. SearchButton.Parent = TabSearchbar
  248. SearchButton.AnchorPoint = Vector2.new(0.5, 0.5)
  249. SearchButton.BackgroundTransparency = 1.000
  250. SearchButton.BorderSizePixel = 0
  251. SearchButton.Position = UDim2.new(0.919354856, 0, 0.5, 0)
  252. SearchButton.Size = UDim2.new(0, 16, 0, 16)
  253. SearchButton.Image = "http://www.roblox.com/asset/?id=6031154871"
  254.  
  255. Pages.Name = "Pages"
  256. Pages.Parent = Background
  257. Pages.AnchorPoint = Vector2.new(0.5, 0.5)
  258. Pages.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  259. Pages.BackgroundTransparency = 1.000
  260. Pages.BorderSizePixel = 0
  261. Pages.Position = UDim2.new(0.659, 0, 0.5, 0)
  262. Pages.Size = UDim2.new(0, 410, 1, 0)
  263. Pages.ClipsDescendants = true
  264.  
  265. UIPageLayout.Parent = Pages
  266.  
  267. Title.Name = "Title"
  268. Title.Parent = Menu
  269. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  270. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  271. Title.BackgroundTransparency = 1.000
  272. Title.Position = UDim2.new(0.400000006, 0, 0.5, 0)
  273. Title.Size = UDim2.new(0.769999981, 0, -1, 42)
  274. Title.Font = Enum.Font.SourceSansBold
  275. Title.Text = args.Title
  276. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  277. Title.TextScaled = true
  278. Title.TextSize = 14.000
  279. Title.TextWrapped = true
  280. Title.TextXAlignment = Enum.TextXAlignment.Left
  281.  
  282. Exit.Name = "Exit"
  283. Exit.Parent = Menu
  284. Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  285. Exit.BackgroundTransparency = 1.000
  286. Exit.Position = UDim2.new(0.986000001, 0, 0.5, 0)
  287. Exit.Size = UDim2.new(0, 15, 0, 15)
  288. Exit.Image = "rbxassetid://7072725342"
  289.  
  290. Maximize.Name = "Maximize"
  291. Maximize.Parent = Menu
  292. Maximize.AnchorPoint = Vector2.new(0.5, 0.5)
  293. Maximize.BackgroundTransparency = 1.000
  294. Maximize.Position = UDim2.new(0.942608714, 0, 0.5, 0)
  295. Maximize.Size = UDim2.new(0, 15, 0, 15)
  296. Maximize.Image = "rbxassetid://7072718726"
  297.  
  298. Minimize.Name = "Minimize"
  299. Minimize.Parent = Menu
  300. Minimize.AnchorPoint = Vector2.new(0.5, 0.5)
  301. Minimize.BackgroundTransparency = 1.000
  302. Minimize.Position = UDim2.new(0.899130464, 0, 0.5, 0)
  303. Minimize.Size = UDim2.new(0, 15, 0, 15)
  304. Minimize.Image = "rbxassetid://7072719185"
  305.  
  306. shadowHolder.Name = "shadowHolder"
  307. shadowHolder.Parent = Menu
  308. shadowHolder.AnchorPoint = Vector2.new(0.5, 0.5)
  309. shadowHolder.BackgroundTransparency = 1.000
  310. shadowHolder.Position = UDim2.new(0.5, 0, 7.85, 0)
  311. shadowHolder.Size = UDim2.new(1, 10, 15.8, 10)
  312. shadowHolder.ZIndex = -1
  313.  
  314. umbraShadow.Name = "umbraShadow"
  315. umbraShadow.Parent = shadowHolder
  316. umbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  317. umbraShadow.BackgroundTransparency = 1.000
  318. umbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  319. umbraShadow.Size = UDim2.new(1, 4, 1, 4)
  320. umbraShadow.ZIndex = -1
  321. umbraShadow.Image = "rbxassetid://1316045217"
  322. umbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  323. umbraShadow.ImageTransparency = 0.860
  324. umbraShadow.ScaleType = Enum.ScaleType.Slice
  325. umbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  326.  
  327. penumbraShadow.Name = "penumbraShadow"
  328. penumbraShadow.Parent = shadowHolder
  329. penumbraShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  330. penumbraShadow.BackgroundTransparency = 1.000
  331. penumbraShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  332. penumbraShadow.Size = UDim2.new(1, 4, 1, 4)
  333. penumbraShadow.ZIndex = -1
  334. penumbraShadow.Image = "rbxassetid://1316045217"
  335. penumbraShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  336. penumbraShadow.ImageTransparency = 0.880
  337. penumbraShadow.ScaleType = Enum.ScaleType.Slice
  338. penumbraShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  339.  
  340. ambientShadow.Name = "ambientShadow"
  341. ambientShadow.Parent = shadowHolder
  342. ambientShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  343. ambientShadow.BackgroundTransparency = 1.000
  344. ambientShadow.Position = UDim2.new(0.5, 0, 0.5, 2)
  345. ambientShadow.Size = UDim2.new(1, 4, 1, 4)
  346. ambientShadow.ZIndex = -1
  347. ambientShadow.Image = "rbxassetid://1316045217"
  348. ambientShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  349. ambientShadow.ImageTransparency = 0.880
  350. ambientShadow.ScaleType = Enum.ScaleType.Slice
  351. ambientShadow.SliceCenter = Rect.new(10, 10, 118, 118)
  352.  
  353.  
  354. --[[ Functions ]]--
  355. local function setDraggable(draggable: boolean)
  356. Menu.Draggable = draggable
  357. end
  358. local function backgroundTween(scale: number, pos: UDim2, size: UDim2)
  359. local info = TweenInfo.new(0, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  360. local tween = tweenService:Create(shadowHolder, info, {Position = pos, Size = size})
  361.  
  362. local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  363. local tween2 = tweenService:Create(UIScale_2, info2, {Scale = scale})
  364.  
  365. tween:Play()
  366. tween2:Play()
  367. end
  368. local function inputHighlight(input: TextBox, stroke: UIStroke)
  369. local focused = false
  370.  
  371. input.Focused:Connect(function() focused = true stroke.Thickness = 2 end)
  372. input.FocusLost:Connect(function() focused = false stroke.Thickness = 0 end)
  373.  
  374. input.MouseEnter:Connect(function() if not focused then stroke.Thickness = 1 end end)
  375. input.MouseLeave:Connect(function() if not focused then stroke.Thickness = 0 end end)
  376. end
  377. local function buttonHighlight(button: GuiButton, stroke: UIStroke)
  378. button.MouseButton1Down:Connect(function() stroke.Thickness = 2 end)
  379. button.MouseButton1Up:Connect(function() stroke.Thickness = 1 end)
  380.  
  381. button.MouseEnter:Connect(function() stroke.Thickness = 1 end)
  382. button.MouseLeave:Connect(function() stroke.Thickness = 0 end)
  383. end
  384.  
  385. local function highlight(ui: GuiObject, hovering: boolean)
  386. local properties = (hovering == true) and {BackgroundTransparency = 0.95} or {BackgroundTransparency = 1}
  387.  
  388. local info = TweenInfo.new(.1, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
  389. local tween = tweenService:Create(ui, info, properties)
  390.  
  391. tween:Play()
  392. end
  393. local function search(ui: GuiObject, text: string)
  394. for _, u in pairs(ui:GetChildren()) do
  395. if u:IsA("GuiObject") then
  396. if #text == 0 then
  397. u.Visible = true
  398. end
  399. if string.find(u.Name:lower(), text) then
  400. u.Visible = true
  401. else
  402. u.Visible = false
  403. end
  404. end
  405. end
  406. end
  407. local function titleize(text: string)
  408. local t = ""
  409.  
  410. local nonCapitalizedWords = {[1] = "a", [2] = "an", [3] = "the",[4] = "for", [5] = "and", [6] = "nor", [7] = "but", [8] = "or", [9] = "yet",[10] = "so",[11] = "at", [12] = "around", [13] = "by", [14] = "after", [15] = "along",[16] = "from",[17] = "of",[18] = "on",[19] = "to",[20] = "with",[21] = "without"}
  411. local words = text:split(" ")
  412.  
  413. for _, word in pairs(words) do
  414. local firstChar = word:sub(1, 1):upper()
  415.  
  416. if table.find(nonCapitalizedWords, word:lower()) then
  417. firstChar = firstChar:lower()
  418. end
  419.  
  420. word = firstChar..word:sub(2, #word)
  421. t = t..word.." "
  422. end
  423.  
  424. return t
  425. end
  426.  
  427. local function exit()
  428. task.spawn(function()
  429. local info = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)
  430. local tween = tweenService:Create(UIScale, info, {Scale = 0})
  431.  
  432. tween:Play()
  433. tween.Completed:Wait()
  434. LibraryUI:Destroy()
  435. end)
  436. end
  437. local function maximize()
  438. backgroundTween(1, UDim2.new(0.5, 0, 7.82, 0), UDim2.new(1, 5, 15, 25))
  439. end
  440. local function minimize()
  441. backgroundTween(0, UDim2.new(0.5, 0, 0.5, 0), UDim2.new(1, 5, 1, 0))
  442. end
  443.  
  444. local function dropdown(dropUI: GuiObject, toggled: boolean, rot1: number, rot2: number, callback)
  445. local properties = (toggled == true) and {Rotation = rot1} or {Rotation = rot2}
  446. local info = TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  447. local tween = tweenService:Create(dropUI, info, properties)
  448.  
  449. tween:Play()
  450. callback(toggled)
  451. end
  452.  
  453. local function CreateContainer(parent: GuiObject, text: string)
  454. local Container = Instance.new("Frame")
  455. local UICorner_6 = Instance.new("UICorner")
  456. local ContainerLabel = Instance.new("TextLabel")
  457.  
  458. Container.Name = "Container"
  459. Container.Parent = parent
  460. Container.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  461. Container.BackgroundTransparency = 0.5
  462. Container.Position = UDim2.new(0, 0, 0, 0)
  463. Container.Size = UDim2.new(1, 0, 0, 35)
  464. Container.AutomaticSize = Enum.AutomaticSize.Y
  465.  
  466. UICorner_6.CornerRadius = UDim.new(0, 6)
  467. UICorner_6.Parent = Container
  468.  
  469. ContainerLabel.Name = "ContainerLabel"
  470. ContainerLabel.Parent = Container
  471. ContainerLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  472. ContainerLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  473. ContainerLabel.BackgroundTransparency = 1.000
  474. ContainerLabel.Position = UDim2.new(0.20238699, 0, 0.5, 0)
  475. ContainerLabel.Size = UDim2.new(0, 125, 0, 18)
  476. ContainerLabel.Font = Enum.Font.SourceSansSemibold
  477. ContainerLabel.Text = text
  478. ContainerLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  479. ContainerLabel.TextScaled = true
  480. ContainerLabel.TextSize = 14.000
  481. ContainerLabel.TextWrapped = true
  482. ContainerLabel.TextXAlignment = Enum.TextXAlignment.Left
  483.  
  484. return Container
  485. end
  486.  
  487.  
  488. --[[ Call Functions ]]--
  489. setDraggable(true)
  490. Title.Text = titleize(args.Title)
  491. Exit.MouseButton1Click:Connect(exit)
  492. --Maximize.MouseButton1Click:Connect(maximize)
  493. --Minimize.MouseButton1Click:Connect(minimize)
  494. SearchInput:GetPropertyChangedSignal("Text"):Connect(function() search(Tabs, SearchInput.Text) end)
  495. inputHighlight(SearchInput, UIStroke)
  496.  
  497.  
  498. --[[ Tab Module ]]--
  499. local tMod = {}
  500.  
  501. function tMod:AddTab(args: tab)
  502. --[[ Set Default Values ]]--
  503. args.Text = (args.Text == nil) and "Tab" or args.Text
  504. args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031233851" or args.Icon
  505.  
  506.  
  507. --[[ Variables ]]--
  508. pages += 1
  509.  
  510.  
  511. --[[ Gui ]]--
  512. local Tab = Instance.new("TextButton")
  513. local TabLabel = Instance.new("TextLabel")
  514. local TabIcon = Instance.new("ImageLabel")
  515. local Highlight = Instance.new("Frame")
  516. local UICorner = Instance.new("UICorner")
  517. local TabSelectedFrame = Instance.new("Frame")
  518. local UICorner_2 = Instance.new("UICorner")
  519. local Page = Instance.new("ScrollingFrame")
  520. local UIListLayout = Instance.new("UIListLayout")
  521. local SectionOffset = Instance.new("Frame")
  522. local PageLabel = Instance.new("TextLabel")
  523. local Selected = Instance.new("BoolValue")
  524.  
  525. Tab.Name = args.Text
  526. Tab.Parent = Tabs
  527. Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  528. Tab.BackgroundTransparency = 1.000
  529. Tab.Size = UDim2.new(0, 167, 0, 35)
  530. Tab.Font = Enum.Font.SourceSans
  531. Tab.Text = ""
  532. Tab.TextColor3 = Color3.fromRGB(0, 0, 0)
  533. Tab.TextSize = 14.000
  534.  
  535. TabLabel.Name = "TabLabel"
  536. TabLabel.Parent = Tab
  537. TabLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  538. TabLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  539. TabLabel.BackgroundTransparency = 1.000
  540. TabLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  541. TabLabel.Position = UDim2.new(0.629940152, 0, 0.5, 0)
  542. TabLabel.Size = UDim2.new(0.783999979, 0, 0.449999988, 0)
  543. TabLabel.Font = Enum.Font.SourceSansSemibold
  544. TabLabel.Text = args.Text
  545. TabLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  546. TabLabel.TextScaled = true
  547. TabLabel.TextSize = 14.000
  548. TabLabel.TextWrapped = true
  549. TabLabel.TextXAlignment = Enum.TextXAlignment.Left
  550.  
  551. TabIcon.Name = "TabIcon"
  552. TabIcon.Parent = Tab
  553. TabIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  554. TabIcon.BackgroundTransparency = 1.000
  555. TabIcon.BorderSizePixel = 0
  556. TabIcon.Position = UDim2.new(0.119999997, 0, 0.5, 0)
  557. TabIcon.Size = UDim2.new(0, 18, 0, 18)
  558. TabIcon.Image = args.Icon
  559.  
  560. Highlight.Name = "Highlight"
  561. Highlight.Parent = Tab
  562. Highlight.AnchorPoint = Vector2.new(0.5, 0.5)
  563. Highlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  564. Highlight.BackgroundTransparency = 1.000
  565. Highlight.ClipsDescendants = true
  566. Highlight.Position = UDim2.new(0.507113814, 0, 0.5, 0)
  567. Highlight.Size = UDim2.new(0.958227634, 0, 0.820000072, 0)
  568.  
  569. UICorner.CornerRadius = UDim.new(0, 4)
  570. UICorner.Parent = Highlight
  571.  
  572. TabSelectedFrame.Name = "TabSelectedFrame"
  573. TabSelectedFrame.Parent = Highlight
  574. TabSelectedFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  575. TabSelectedFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  576. TabSelectedFrame.BackgroundTransparency = 1.000
  577. TabSelectedFrame.Position = UDim2.new(-0.0107285455, 0, 0.5, 0)
  578. TabSelectedFrame.Size = UDim2.new(0.050999999, 0, 0.699999988, 0)
  579.  
  580. UICorner_2.CornerRadius = UDim.new(0, 4)
  581. UICorner_2.Parent = TabSelectedFrame
  582.  
  583. Page.Name = tostring(pages)
  584. Page.Parent = Pages
  585. Page.Active = true
  586. Page.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  587. Page.BackgroundTransparency = 1.000
  588. Page.BorderSizePixel = 0
  589. Page.Size = UDim2.new(1, 0, 1, 0)
  590. Page.CanvasSize = UDim2.new(0, 0, 0, 0)
  591. Page.ScrollBarThickness = 6
  592. Page.AutomaticCanvasSize = Enum.AutomaticSize.Y
  593.  
  594. UIListLayout.Parent = Page
  595. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  596. UIListLayout.Padding = UDim.new(0, 7)
  597.  
  598. SectionOffset.Name = "SectionOffset"
  599. SectionOffset.Parent = Page
  600. SectionOffset.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  601. SectionOffset.BackgroundTransparency = 1.000
  602. SectionOffset.Size = UDim2.new(0, 0, 0, 15)
  603.  
  604. PageLabel.Name = "PageLabel"
  605. PageLabel.Parent = Page
  606. PageLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  607. PageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  608. PageLabel.BackgroundTransparency = 1.000
  609. PageLabel.Position = UDim2.new(0.510975599, 0, 0.075000003, 0)
  610. PageLabel.Size = UDim2.new(0.977999985, 0, 0, 32)
  611. PageLabel.Font = Enum.Font.SourceSansSemibold
  612. PageLabel.Text = titleize(args.Text)
  613. PageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  614. PageLabel.TextScaled = true
  615. PageLabel.TextSize = 14.000
  616. PageLabel.TextWrapped = true
  617. PageLabel.TextXAlignment = Enum.TextXAlignment.Left
  618.  
  619. Selected.Parent = Tab
  620. Selected.Name = "TabSelected"
  621. Selected.Value = false
  622.  
  623. self.selectedFrame = TabSelectedFrame
  624.  
  625.  
  626. --[[ Functions ]]--
  627. Tab.MouseButton1Click:Connect(function()
  628. for _, tab in pairs(Tabs:GetChildren()) do
  629. if tab:IsA("TextButton") then
  630. tab["TabSelected"].Value = false
  631. tab["Highlight"].BackgroundTransparency = 1
  632. tab["Highlight"]["TabSelectedFrame"].BackgroundTransparency = 1
  633. end
  634. end
  635.  
  636. Selected.Value = true
  637.  
  638. Highlight.BackgroundTransparency = 0.9
  639. TabSelectedFrame.BackgroundTransparency = 0
  640.  
  641. UIPageLayout:JumpToIndex(tonumber(Page.Name)-1)
  642. end)
  643. Tab.MouseEnter:Connect(function() if Selected.Value == false then highlight(Highlight, true) end end)
  644. Tab.MouseLeave:Connect(function() if Selected.Value == false then highlight(Highlight, false) end end)
  645. --runService.RenderStepped:Connect(function()
  646. -- Page.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y)
  647. --end)
  648.  
  649. --[[ Section Module ]]--
  650. local sMod = {}
  651.  
  652. function sMod:AddSection(args: section)
  653. --[[ Set Default Values ]]--
  654. args.Text = (args.Text == nil) and "Section" or args.Text
  655. args.Description = (args.Description == nil) and "Description." or args.Description
  656. args.Icon = (args.Icon == nil) and "http://www.roblox.com/asset/?id=6031229341" or args.Icon
  657.  
  658.  
  659. --[[ Variables ]]--
  660. local toggled = true
  661.  
  662.  
  663. --[[ Gui ]]--
  664. local Section = Instance.new("Frame")
  665. local SectionInfo = Instance.new("Frame")
  666. local UICorner_5 = Instance.new("UICorner")
  667. local SectionDropdown = Instance.new("ImageButton")
  668. local SectionIcon = Instance.new("ImageLabel")
  669. local SectionDescription = Instance.new("TextButton")
  670. local SectionName = Instance.new("TextLabel")
  671. local UIListLayout_3 = Instance.new("UIListLayout")
  672.  
  673. Section.Name = "Section"
  674. Section.Parent = Page
  675. Section.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  676. Section.BackgroundTransparency = 1.000
  677. Section.Position = UDim2.new(0, 0, 0.150000006, 0)
  678. Section.Size = UDim2.new(0.936999977, 0, 0, 45)
  679. Section.AutomaticSize = Enum.AutomaticSize.Y
  680.  
  681. SectionInfo.Name = "SectionInfo"
  682. SectionInfo.Parent = Section
  683. SectionInfo.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  684. SectionInfo.BackgroundTransparency = 0.5
  685. SectionInfo.Size = UDim2.new(1, 0, 0, 45)
  686.  
  687. UICorner_5.CornerRadius = UDim.new(0, 6)
  688. UICorner_5.Parent = SectionInfo
  689.  
  690. SectionDropdown.Name = "SectionDropdown"
  691. SectionDropdown.Parent = SectionInfo
  692. SectionDropdown.AnchorPoint = Vector2.new(0.5, 0.5)
  693. SectionDropdown.BackgroundTransparency = 1.000
  694. SectionDropdown.BorderSizePixel = 0
  695. SectionDropdown.Position = UDim2.new(0.958130538, 0, 0.5, 0)
  696. SectionDropdown.Size = UDim2.new(0, 25, 0, 25)
  697. SectionDropdown.Image = "http://www.roblox.com/asset/?id=6034818365"
  698. SectionDropdown.Rotation = -90
  699.  
  700. SectionIcon.Name = "SectionIcon"
  701. SectionIcon.Parent = SectionInfo
  702. SectionIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  703. SectionIcon.BackgroundTransparency = 1.000
  704. SectionIcon.BorderSizePixel = 0
  705. SectionIcon.Position = UDim2.new(0.0649999976, 0, 0.5, 0)
  706. SectionIcon.Size = UDim2.new(0, 25, 0, 32)
  707. SectionIcon.Image = args.Icon
  708.  
  709. SectionDescription.Name = "SectionDescription"
  710. SectionDescription.Parent = SectionInfo
  711. SectionDescription.AnchorPoint = Vector2.new(0.5, 0.5)
  712. SectionDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  713. SectionDescription.BackgroundTransparency = 1.000
  714. SectionDescription.Position = UDim2.new(0.528219938, 0, 0.702777803, 0)
  715. SectionDescription.Size = UDim2.new(0, 305, 0, 17)
  716. SectionDescription.Font = Enum.Font.SourceSansLight
  717. SectionDescription.Text = args.Description
  718. SectionDescription.TextColor3 = Color3.fromRGB(255, 255, 255)
  719. SectionDescription.TextScaled = true
  720. SectionDescription.TextSize = 14.000
  721. SectionDescription.TextWrapped = true
  722. SectionDescription.TextXAlignment = Enum.TextXAlignment.Left
  723.  
  724. SectionName.Name = "SectionName"
  725. SectionName.Parent = SectionInfo
  726. SectionName.AnchorPoint = Vector2.new(0.5, 0.5)
  727. SectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  728. SectionName.BackgroundTransparency = 1.000
  729. SectionName.Position = UDim2.new(0.528219938, 0, 0.280555546, 0)
  730. SectionName.Size = UDim2.new(0, 305, 0, 17)
  731. SectionName.Font = Enum.Font.SourceSansSemibold
  732. SectionName.Text = args.Text
  733. SectionName.TextColor3 = Color3.fromRGB(255, 255, 255)
  734. SectionName.TextScaled = true
  735. SectionName.TextSize = 14.000
  736. SectionName.TextWrapped = true
  737. SectionName.TextXAlignment = Enum.TextXAlignment.Left
  738.  
  739. UIListLayout_3.Parent = Section
  740. UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  741. UIListLayout_3.Padding = UDim.new(0, 2)
  742.  
  743.  
  744. --[[ Functions ]]--
  745. SectionDropdown.MouseButton1Click:Connect(function()
  746. toggled = not toggled
  747.  
  748. dropdown(SectionDropdown, toggled, -90, 0, function(v)
  749. for _, container in pairs(Section:GetChildren()) do
  750. if container.Name == "Container" then
  751. container.Visible = v
  752. end
  753. end
  754. end)
  755. end)
  756.  
  757.  
  758. --[[ Fin Module ]]--
  759. local fMod = {}
  760.  
  761. function fMod:AddButton(args: button)
  762. --[[ Set Default Values ]]--
  763. args.Text = (args.Text == nil) and "Button" or args.Text
  764. args.Callback = (type(args.Callback) ~= "function") and function()
  765. return
  766. end or args.Callback
  767.  
  768.  
  769. --[[ Gui ]]--
  770. local Button = Instance.new("TextButton")
  771. local UICorner = Instance.new("UICorner")
  772. local ButtonLabel = Instance.new("TextLabel")
  773. local Outline = Instance.new("Frame")
  774. local UICorner_2 = Instance.new("UICorner")
  775. local UIStroke = Instance.new("UIStroke")
  776. local Container = CreateContainer(Section, args.Text)
  777.  
  778. Button.Name = "Button"
  779. Button.Parent = Container
  780. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  781. Button.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  782. Button.Position = UDim2.new(0.812360466, 0, 0.5, 0)
  783. Button.Size = UDim2.new(0, 110, 0, 25)
  784. Button.AutoButtonColor = false
  785. Button.Font = Enum.Font.SourceSans
  786. Button.Text = ""
  787. Button.TextColor3 = Color3.fromRGB(0, 0, 0)
  788. Button.TextSize = 14.000
  789.  
  790. UICorner.CornerRadius = UDim.new(0, 4)
  791. UICorner.Parent = Button
  792.  
  793. ButtonLabel.Name = "ButtonLabel"
  794. ButtonLabel.Parent = Button
  795. ButtonLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  796. ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  797. ButtonLabel.BackgroundTransparency = 1.000
  798. ButtonLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  799. ButtonLabel.Size = UDim2.new(1, 0, 0.649999976, 0)
  800. ButtonLabel.Font = Enum.Font.SourceSansLight
  801. ButtonLabel.Text = args.Text
  802. ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  803. ButtonLabel.TextScaled = true
  804. ButtonLabel.TextSize = 14.000
  805. ButtonLabel.TextWrapped = true
  806.  
  807. Outline.Name = "Outline"
  808. Outline.Parent = Button
  809. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  810. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  811. Outline.BackgroundTransparency = 1.000
  812. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  813. Outline.Size = UDim2.new(1, 0, 1, 0)
  814.  
  815. UICorner_2.CornerRadius = UDim.new(0, 4)
  816. UICorner_2.Parent = Outline
  817.  
  818. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  819. UIStroke.Thickness = 0
  820. UIStroke.Parent = Outline
  821.  
  822.  
  823. --[[ Functions ]]--
  824. Button.MouseButton1Click:Connect(function() args.Callback() end)
  825. buttonHighlight(Button, UIStroke)
  826. end
  827. function fMod:AddInput(args: input)
  828. --[[ Set Default Values ]]--
  829. args.Text = (args.Text == nil) and "Input" or args.Text
  830. args.Placeholder = (args.Placeholder == nil) and "Placeholder" or args.Placeholder
  831. args.Callback = (type(args.Callback) ~= "function") and function()
  832. return
  833. end or args.Callback
  834.  
  835.  
  836. --[[ Gui ]]--
  837. local Input = Instance.new("TextBox")
  838. local UICorner = Instance.new("UICorner")
  839. local Clipboard = Instance.new("ImageButton")
  840. local Outline = Instance.new("Frame")
  841. local UICorner_2 = Instance.new("UICorner")
  842. local UIStroke = Instance.new("UIStroke")
  843. local Container = CreateContainer(Section, args.Text)
  844.  
  845. Input.Parent = Container
  846. Input.AnchorPoint = Vector2.new(0.5, 0.5)
  847. Input.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  848. Input.Position = UDim2.new(0.812383175, 0, 0.5, 0)
  849. Input.Size = UDim2.new(0, 110, 0, 25)
  850. Input.ClearTextOnFocus = false
  851. Input.Font = Enum.Font.SourceSansLight
  852. Input.PlaceholderText = args.Placeholder
  853. Input.Text = ""
  854. Input.TextColor3 = Color3.fromRGB(255, 255, 255)
  855. Input.TextSize = 15
  856. Input.TextWrapped = true
  857.  
  858. UICorner.CornerRadius = UDim.new(0, 4)
  859. UICorner.Parent = Input
  860.  
  861. Clipboard.Parent = Input
  862. Clipboard.AnchorPoint = Vector2.new(0.5, 0.5)
  863. Clipboard.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  864. Clipboard.BorderSizePixel = 0
  865. Clipboard.Position = UDim2.new(0.910000026, 0, 0.349999994, 0)
  866. Clipboard.Size = UDim2.new(0, 13, 0, 13)
  867. Clipboard.ZIndex = 2
  868. Clipboard.Image = "http://www.roblox.com/asset/?id=6035053278"
  869. Clipboard.AutoButtonColor = false
  870.  
  871. Outline.Name = "Outline"
  872. Outline.Parent = Input
  873. Outline.AnchorPoint = Vector2.new(0.5, 0.5)
  874. Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  875. Outline.BackgroundTransparency = 1.000
  876. Outline.Position = UDim2.new(0.5, 0, 0.5, 0)
  877. Outline.Size = UDim2.new(1, 0, 1, 0)
  878.  
  879. UICorner_2.CornerRadius = UDim.new(0, 4)
  880. UICorner_2.Parent = Outline
  881.  
  882. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  883. UIStroke.Thickness = 0
  884. UIStroke.Parent = Outline
  885.  
  886.  
  887. --[[ Functions ]]--
  888. Clipboard.MouseButton1Click:Connect(function()
  889. xpcall(function()
  890. setclipboard(Input.Text)
  891. end, function()
  892. warn([[executor doesnt support: setclipboard(value: any)]])
  893. end)
  894. end)
  895.  
  896. Input.FocusLost:Connect(function()
  897. args.Callback(Input.Text)
  898. end)
  899. inputHighlight(Input, UIStroke)
  900. end
  901. function fMod:AddSlider(args: slider)
  902. --[[ Set Default Values ]]--
  903. args.Text = (args.Text == nil) and "Input" or args.Text
  904. args.Min = (type(args.Min) ~= "number") and 0 or args.Min
  905. args.Max = (type(args.Max) ~= "number") and 10 or args.Max
  906. args.Callback = (type(args.Callback) ~= "function") and function()
  907. return
  908. end or args.Callback
  909.  
  910.  
  911. --[[ Variables ]]--
  912. local holding = false
  913.  
  914.  
  915. --[[ Gui ]]--
  916. local Slider = Instance.new("Frame")
  917. local Fill = Instance.new("Frame")
  918. local UICorner = Instance.new("UICorner")
  919. local FillButton = Instance.new("Frame")
  920. local UICorner_2 = Instance.new("UICorner")
  921. local HoldButton = Instance.new("TextButton")
  922. local UICorner_3 = Instance.new("UICorner")
  923. local UIStroke = Instance.new("UIStroke")
  924. local ValueLabel = Instance.new("TextLabel")
  925. local Container = CreateContainer(Section, args.Text)
  926.  
  927. Slider.Name = "Slider"
  928. Slider.Parent = Container
  929. Slider.AnchorPoint = Vector2.new(0.5, 0.5)
  930. Slider.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
  931. Slider.BorderSizePixel = 0
  932. Slider.Position = UDim2.new(0.730000019, 0, 0.5, 0)
  933. Slider.Size = UDim2.new(0, 175, 0, 4)
  934.  
  935. Fill.Name = "Fill"
  936. Fill.Parent = Slider
  937. Fill.AnchorPoint = Vector2.new(0.5, 0.5)
  938. Fill.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  939. Fill.BorderSizePixel = 0
  940. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  941. Fill.Size = UDim2.new(0, 0, 1, 0)
  942.  
  943. UICorner.CornerRadius = UDim.new(1, 0)
  944. UICorner.Parent = Fill
  945.  
  946. FillButton.Name = "FillButton"
  947. FillButton.Parent = Slider
  948. FillButton.AnchorPoint = Vector2.new(0.5, 0.5)
  949. FillButton.BackgroundColor3 = Color3.fromRGB(0, 175, 255)
  950. FillButton.Position = UDim2.new(0, 0, 0.5, 0)
  951. FillButton.Size = UDim2.new(0, 10, 0, 10)
  952.  
  953. UICorner_2.Parent = FillButton
  954.  
  955. HoldButton.Name = "HoldButton"
  956. HoldButton.Parent = Slider
  957. HoldButton.AnchorPoint = Vector2.new(0.5, 0.5)
  958. HoldButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  959. HoldButton.BackgroundTransparency = 1
  960. HoldButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  961. HoldButton.Size = UDim2.new(1, 15, 1, 15)
  962. HoldButton.Font = Enum.Font.SourceSans
  963. HoldButton.Text = ""
  964. HoldButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  965. HoldButton.TextSize = 14.000
  966.  
  967. UICorner_3.CornerRadius = UDim.new(1, 0)
  968. UICorner_3.Parent = Slider
  969.  
  970. UIStroke.Parent = FillButton
  971. UIStroke.Color = Color3.fromRGB(45, 45, 55)
  972. UIStroke.Thickness = 5
  973.  
  974. ValueLabel.Name = "ValueLabel"
  975. ValueLabel.Parent = Slider
  976. ValueLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  977. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  978. ValueLabel.BackgroundTransparency = 1.000
  979. ValueLabel.Position = UDim2.new(-0.185194612, 0, 0.5, 0)
  980. ValueLabel.Size = UDim2.new(0, 40, 0, 15)
  981. ValueLabel.Font = Enum.Font.SourceSans
  982. ValueLabel.Text = tostring(math.floor(args.Min))
  983. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  984. ValueLabel.TextScaled = true
  985. ValueLabel.TextSize = 14.000
  986. ValueLabel.TextWrapped = true
  987.  
  988.  
  989. --[[ Functions ]]--
  990. HoldButton.MouseButton1Down:Connect(function() holding = true FillButton.Size = UDim2.new(0, 7, 0, 7) end)
  991. HoldButton.MouseButton1Up:Connect(function() holding = false FillButton.Size = UDim2.new(0, 10, 0, 10) end)
  992.  
  993. runService.RenderStepped:Connect(function()
  994. if holding then
  995. local mousePos = userInputService:GetMouseLocation()
  996.  
  997. local xPos = (mousePos.X - Slider.AbsolutePosition.X)/Slider.AbsoluteSize.X
  998. xPos = math.clamp(xPos, 0, 1)
  999.  
  1000. local value = args.Min + (xPos * (args.Max-args.Min))
  1001.  
  1002. ValueLabel.Text = tostring(math.floor(value))
  1003. FillButton.Position = UDim2.new(xPos, 0, 0.5, 0)
  1004.  
  1005. Fill.Size = UDim2.new(xPos, 0, 1, 0)
  1006. Fill.Position = UDim2.new(xPos/2, 0, 0.5, 0)
  1007.  
  1008. args.Callback(value)
  1009. end
  1010. end)
  1011.  
  1012. local methods = {}
  1013.  
  1014. function methods:SetMin(min: number)
  1015. args.Min = min
  1016. end
  1017. function methods:SetMax(max: number)
  1018. args.Max = max
  1019. end
  1020.  
  1021. return methods
  1022. end
  1023. function fMod:AddSwitch(args: switch)
  1024. --[[ Set Default Values ]]--
  1025. args.Text = (args.Text == nil) and "Switch" or args.Text
  1026. args.Callback = (type(args.Callback) ~= "function") and function()
  1027. return
  1028. end or args.Callback
  1029.  
  1030.  
  1031. --[[ Variables ]]--
  1032. local toggled = false
  1033. local uisToTween = {}
  1034.  
  1035.  
  1036. --[[ Gui ]]--
  1037. local Switch = Instance.new("Frame")
  1038. local UICorner = Instance.new("UICorner")
  1039. local SwitchButton = Instance.new("Frame")
  1040. local SwitchClickable = Instance.new("TextButton")
  1041. local UICorner_2 = Instance.new("UICorner")
  1042. local ToggledLabel = Instance.new("TextLabel")
  1043. local UIStroke = Instance.new("UIStroke")
  1044. local Container = CreateContainer(Section, args.Text)
  1045.  
  1046. Switch.Name = "Switch"
  1047. Switch.Parent = Container
  1048. Switch.AnchorPoint = Vector2.new(0.5, 0)
  1049. Switch.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  1050. Switch.BorderSizePixel = 0
  1051. Switch.Position = UDim2.new(0.899999976, 0, 0.200000003, 0)
  1052. Switch.Size = UDim2.new(0, 45, 0, 20)
  1053.  
  1054. UICorner.CornerRadius = UDim.new(1, 0)
  1055. UICorner.Parent = Switch
  1056.  
  1057. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1058. UIStroke.Parent = Switch
  1059.  
  1060. SwitchButton.Parent = Switch
  1061. SwitchButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1062. SwitchButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1063. SwitchButton.Position = UDim2.new(0.200000003, 0, 0.5, 0)
  1064. SwitchButton.Size = UDim2.new(0, 14, 0, 14)
  1065.  
  1066. SwitchClickable.Size = UDim2.new(1, 0, 1, 0)
  1067. SwitchClickable.AnchorPoint = Vector2.new(0.5, 0.5)
  1068. SwitchClickable.Position = UDim2.new(0.5, 0, 0.5, 0)
  1069. SwitchClickable.BackgroundTransparency = 1
  1070. SwitchClickable.Parent = Switch
  1071. SwitchClickable.Text = ""
  1072.  
  1073. UICorner_2.CornerRadius = UDim.new(1, 0)
  1074. UICorner_2.Parent = SwitchButton
  1075.  
  1076. ToggledLabel.Name = "ToggledLabel"
  1077. ToggledLabel.Parent = Switch
  1078. ToggledLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1079. ToggledLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1080. ToggledLabel.BackgroundTransparency = 1.000
  1081. ToggledLabel.Position = UDim2.new(-0.518527985, 0, 0.5, 0)
  1082. ToggledLabel.Size = UDim2.new(0, 40, 0, 15)
  1083. ToggledLabel.Font = Enum.Font.SourceSans
  1084. ToggledLabel.Text = "Off"
  1085. ToggledLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1086. ToggledLabel.TextScaled = true
  1087. ToggledLabel.TextSize = 14.000
  1088. ToggledLabel.TextWrapped = true
  1089.  
  1090.  
  1091. uisToTween = {[1] = SwitchButton, [2] = Switch, [3] = UIStroke}
  1092.  
  1093. --[[ Functions ]]--
  1094. SwitchClickable.MouseButton1Click:Connect(function()
  1095. toggled = not toggled
  1096.  
  1097. local text = (toggled == true) and "On" or "Off"
  1098.  
  1099. for i, ui in pairs(uisToTween) do
  1100. local properties = {[1] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(30, 30, 40), Position = UDim2.new(0.8, 0, 0.5, 0)} or {BackgroundColor3 = Color3.fromRGB(255, 255, 255), Position = UDim2.new(0.2, 0, 0.5, 0)}, [2] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(0, 175, 255)} or {BackgroundColor3 = Color3.fromRGB(30, 30, 40)}, [3] = (toggled == true) and {Color = Color3.fromRGB(0, 175, 255)} or {Color = Color3.fromRGB(255, 255, 255)}}
  1101.  
  1102. local info = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1103. local tween = tweenService:Create(ui, info, properties[i])
  1104.  
  1105. tween:Play()
  1106. end
  1107.  
  1108. ToggledLabel.Text = text
  1109. args.Callback(toggled)
  1110. end)
  1111. end
  1112. function fMod:AddToggle(args: toggle)
  1113. --[[ Set Default Values ]]--
  1114. args.Text = (args.Text == nil) and "Toggle" or args.Text
  1115. args.Callback = (type(args.Callback) ~= "function") and function()
  1116. return
  1117. end or args.Callback
  1118.  
  1119.  
  1120. --[[ Variables ]]--
  1121. local toggled = false
  1122. local uisToTween = {}
  1123.  
  1124.  
  1125. --[[ Gui ]]--
  1126. local Toggle = Instance.new("Frame")
  1127. local UICorner = Instance.new("UICorner")
  1128. local ToggleButton = Instance.new("Frame")
  1129. local UICorner_2 = Instance.new("UICorner")
  1130. local ToggleClickable = Instance.new("TextButton")
  1131. local ToggleLabel = Instance.new("TextLabel")
  1132. local UIStroke = Instance.new("UIStroke")
  1133. local Container = CreateContainer(Section, args.Text)
  1134.  
  1135. Toggle.Name = "Toggle"
  1136. Toggle.Parent = Container
  1137. Toggle.AnchorPoint = Vector2.new(0.5, 0)
  1138. Toggle.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  1139. Toggle.BorderSizePixel = 0
  1140. Toggle.Position = UDim2.new(0.932365716, 0, 0.200000003, 0)
  1141. Toggle.Size = UDim2.new(0, 20, 0, 20)
  1142.  
  1143. UIStroke.Color = Color3.fromRGB(200, 200, 200)
  1144. UIStroke.Parent = Toggle
  1145.  
  1146. UICorner.CornerRadius = UDim.new(1, 0)
  1147. UICorner.Parent = Toggle
  1148.  
  1149. ToggleButton.Name = "ToggleButton"
  1150. ToggleButton.Parent = Toggle
  1151. ToggleButton.AnchorPoint = Vector2.new(0.5, 0.5)
  1152. ToggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  1153. ToggleButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  1154. ToggleButton.Size = UDim2.new(0, 0, 0, 0)
  1155.  
  1156. UICorner_2.CornerRadius = UDim.new(1, 0)
  1157. UICorner_2.Parent = ToggleButton
  1158.  
  1159. ToggleClickable.Name = "ToggleClickable"
  1160. ToggleClickable.Parent = Toggle
  1161. ToggleClickable.AnchorPoint = Vector2.new(0.5, 0.5)
  1162. ToggleClickable.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1163. ToggleClickable.BackgroundTransparency = 1.000
  1164. ToggleClickable.Position = UDim2.new(0.5, 0, 0.5, 0)
  1165. ToggleClickable.Size = UDim2.new(1, 0, 1, 0)
  1166. ToggleClickable.Font = Enum.Font.SourceSans
  1167. ToggleClickable.Text = ""
  1168. ToggleClickable.TextColor3 = Color3.fromRGB(0, 0, 0)
  1169. ToggleClickable.TextSize = 14.000
  1170.  
  1171. ToggleLabel.Name = "ToggleLabel"
  1172. ToggleLabel.Parent = Toggle
  1173. ToggleLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1174. ToggleLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1175. ToggleLabel.BackgroundTransparency = 1.000
  1176. ToggleLabel.Position = UDim2.new(-1.46852803, 0, 0.5, 0)
  1177. ToggleLabel.Size = UDim2.new(0, 40, 0, 15)
  1178. ToggleLabel.Font = Enum.Font.SourceSans
  1179. ToggleLabel.Text = "Off"
  1180. ToggleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1181. ToggleLabel.TextScaled = true
  1182. ToggleLabel.TextSize = 14.000
  1183. ToggleLabel.TextWrapped = true
  1184.  
  1185.  
  1186. uisToTween = {[1] = ToggleButton, [2] = Toggle, [3] = UIStroke}
  1187.  
  1188. --[[ Functions ]]--
  1189. ToggleClickable.MouseButton1Click:Connect(function()
  1190. toggled = not toggled
  1191.  
  1192. local text = (toggled == true) and "On" or "Off"
  1193.  
  1194. for i, ui in pairs(uisToTween) do
  1195. local properties = {[1] = (toggled == true) and {Size = UDim2.new(0, 12, 0, 12)} or {Size = UDim2.new(0, 0, 0, 0)}, [2] = (toggled == true) and {BackgroundColor3 = Color3.fromRGB(0, 175, 255)} or {BackgroundColor3 = Color3.fromRGB(30, 30, 40)}, [3] = (toggled == true) and {Color = Color3.fromRGB(0, 175, 255)} or {Color = Color3.fromRGB(255, 255, 255)}}
  1196.  
  1197. local info = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  1198. local tween = tweenService:Create(ui, info, properties[i])
  1199.  
  1200. tween:Play()
  1201. end
  1202.  
  1203. args.Callback(toggled)
  1204. ToggleLabel.Text = text
  1205. end)
  1206. end
  1207. function fMod:AddDropdown(args: dropdown)
  1208. --[[ Set Default Values ]]--
  1209. args.Text = (args.Text == nil) and "Toggle" or args.Text
  1210. args.Items = (type(args) ~= "table") and {} or args.Items
  1211. args.Callback = (type(args.Callback) ~= "function") and function()
  1212. return
  1213. end or args.Callback
  1214.  
  1215.  
  1216. --[[ Variables ]]--
  1217. local toggled = true
  1218.  
  1219.  
  1220. --[[ Gui ]]--
  1221. local Dropdown = Instance.new("Frame")
  1222. local UICorner = Instance.new("UICorner")
  1223. local DropdownSearch = Instance.new("TextBox")
  1224. local DropdownIcon = Instance.new("ImageButton")
  1225. local ScrollFix = Instance.new("Frame")
  1226. local Items = Instance.new("ScrollingFrame")
  1227. local UIListLayout = Instance.new("UIListLayout")
  1228. local DropdownOffset = Instance.new("Frame")
  1229. local Container = CreateContainer(Section, args.Text)
  1230.  
  1231. Dropdown.Name = "Dropdown"
  1232. Dropdown.Parent = Container
  1233. Dropdown.AnchorPoint = Vector2.new(0.5, 0)
  1234. Dropdown.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1235. Dropdown.BorderSizePixel = 0
  1236. Dropdown.Position = UDim2.new(0.782, 0, 0.2, 0)
  1237. Dropdown.Size = UDim2.new(0, 135, 0, 20)
  1238.  
  1239. UICorner.CornerRadius = UDim.new(0, 4)
  1240. UICorner.Parent = Dropdown
  1241.  
  1242. DropdownSearch.Name = "SelectedLabel"
  1243. DropdownSearch.Parent = Dropdown
  1244. DropdownSearch.AnchorPoint = Vector2.new(0.5, 0.5)
  1245. DropdownSearch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1246. DropdownSearch.BackgroundTransparency = 1.000
  1247. DropdownSearch.Position = UDim2.new(0.449999988, 0, 0.5, 0)
  1248. DropdownSearch.ClearTextOnFocus = false
  1249. DropdownSearch.Size = UDim2.new(0.75, 0, 0, 20)
  1250. DropdownSearch.Font = Enum.Font.SourceSansSemibold
  1251. DropdownSearch.Text = " "
  1252. DropdownSearch.TextColor3 = Color3.fromRGB(255, 255, 255)
  1253. DropdownSearch.TextSize = 14.000
  1254. DropdownSearch.TextXAlignment = Enum.TextXAlignment.Left
  1255.  
  1256. DropdownIcon.Name = "SectionDropdown"
  1257. DropdownIcon.Parent = Dropdown
  1258. DropdownIcon.AnchorPoint = Vector2.new(0.5, 0.5)
  1259. DropdownIcon.BackgroundTransparency = 1.000
  1260. DropdownIcon.BorderSizePixel = 0
  1261. DropdownIcon.Rotation = -90
  1262. DropdownIcon.Position = UDim2.new(0.920000017, 0, 0.5, 0)
  1263. DropdownIcon.Size = UDim2.new(0, 18, 0, 18)
  1264. DropdownIcon.Image = "http://www.roblox.com/asset/?id=6034818365"
  1265.  
  1266. ScrollFix.Name = "ScrollFix"
  1267. ScrollFix.Parent = Dropdown
  1268. ScrollFix.AnchorPoint = Vector2.new(0.5, 0.5)
  1269. ScrollFix.BackgroundTransparency = 1.000
  1270. ScrollFix.Position = UDim2.new(0.5, 0, 2.55, 0)
  1271. ScrollFix.Size = UDim2.new(0, 135, 0, 65)
  1272.  
  1273. Items.Name = "Items"
  1274. Items.Parent = ScrollFix
  1275. Items.Active = true
  1276. Items.AnchorPoint = Vector2.new(0.5, 0.5)
  1277. Items.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1278. Items.BorderSizePixel = 0
  1279. Items.Position = UDim2.new(0.5, 0, 0.5, 0)
  1280. Items.Size = UDim2.new(0, 135, 0, 65)
  1281. Items.ScrollBarThickness = 6
  1282. Items.AutomaticCanvasSize = Enum.AutomaticSize.Y
  1283.  
  1284. UIListLayout.Parent = Items
  1285. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1286.  
  1287. DropdownOffset.Name = "DropdownOffset"
  1288. DropdownOffset.Parent = Container
  1289. DropdownOffset.BackgroundTransparency = 1.000
  1290. DropdownOffset.Position = UDim2.new(0.514999986, 0, 2.4000001, 0)
  1291. DropdownOffset.Size = UDim2.new(0, 0, 0, 15)
  1292.  
  1293.  
  1294. --[[ Functions ]]--
  1295. local function toggleDropdown(toggled: boolean)
  1296. dropdown(DropdownIcon, toggled, -90, 0, function(v)
  1297. ScrollFix.Parent = (v == true) and Dropdown or nil
  1298. DropdownOffset.Parent = (v == true) and Container or nil
  1299. end)
  1300. end
  1301. toggleDropdown(false)
  1302.  
  1303. DropdownIcon.MouseButton1Click:Connect(function() toggled = not toggled toggleDropdown(toggled) end)
  1304. DropdownSearch.FocusLost:Connect(function() search(Items, DropdownSearch.Text) end)
  1305.  
  1306. for _, item in pairs(args.Items) do
  1307. local itemName = (typeof(item) == "Instance") and item.Name or item
  1308.  
  1309. local Item = Instance.new("TextButton")
  1310. local ButtonLabel = Instance.new("TextLabel")
  1311.  
  1312. Item.Name = itemName
  1313. Item.Parent = Items
  1314. Item.AnchorPoint = Vector2.new(0.5, 0.5)
  1315. Item.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1316. Item.BorderSizePixel = 0
  1317. Item.Position = UDim2.new(0.458916098, 0, 0.192307696, 0)
  1318. Item.Size = UDim2.new(0, 128, 0, 25)
  1319. Item.AutoButtonColor = false
  1320. Item.Font = Enum.Font.SourceSans
  1321. Item.Text = ""
  1322. Item.TextColor3 = Color3.fromRGB(0, 0, 0)
  1323. Item.TextSize = 14.000
  1324.  
  1325. ButtonLabel.Name = "ButtonLabel"
  1326. ButtonLabel.Parent = Item
  1327. ButtonLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  1328. ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1329. ButtonLabel.BackgroundTransparency = 1.000
  1330. ButtonLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
  1331. ButtonLabel.Size = UDim2.new(1, 0, 0.649999976, 0)
  1332. ButtonLabel.Font = Enum.Font.SourceSansLight
  1333. ButtonLabel.Text = itemName
  1334. ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1335. ButtonLabel.TextScaled = true
  1336. ButtonLabel.TextSize = 14.000
  1337. ButtonLabel.TextWrapped = true
  1338.  
  1339. Item.MouseButton1Click:Connect(function() toggled = false toggleDropdown(toggled) DropdownSearch.Text = itemName args.Callback(itemName) end)
  1340. end
  1341. end
  1342. function fMod:AddVector3Input(args: vector3)
  1343. --[[ Set Default Values ]]--
  1344. args.Text = (args.Text == nil) and "Vector3" or args.Text
  1345. args.Callback = (type(args.Callback) ~= "function") and function()
  1346. return
  1347. end or args.Callback
  1348.  
  1349.  
  1350. --[[ Variables ]]--
  1351. local inputs
  1352.  
  1353.  
  1354. --[[ Gui ]]--
  1355. local YInput = Instance.new("TextBox")
  1356. local UICorner = Instance.new("UICorner")
  1357. local ZInput = Instance.new("TextBox")
  1358. local UICorner_2 = Instance.new("UICorner")
  1359. local XInput = Instance.new("TextBox")
  1360. local UICorner_3 = Instance.new("UICorner")
  1361. local Container = CreateContainer(Section, args.Text)
  1362.  
  1363. YInput.Name = "YInput"
  1364. YInput.Parent = Container
  1365. YInput.AnchorPoint = Vector2.new(0.5, 0.5)
  1366. YInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1367. YInput.ClipsDescendants = true
  1368. YInput.Position = UDim2.new(0.856512547, 0, 0.5, 0)
  1369. YInput.Size = UDim2.new(0, 25, 0, 25)
  1370. YInput.ClearTextOnFocus = false
  1371. YInput.Font = Enum.Font.SourceSansLight
  1372. YInput.PlaceholderText = "Y"
  1373. YInput.Text = ""
  1374. YInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  1375. YInput.TextSize = 14.000
  1376. YInput.TextWrapped = true
  1377.  
  1378. UICorner.Parent = YInput
  1379.  
  1380. ZInput.Name = "ZInput"
  1381. ZInput.Parent = Container
  1382. ZInput.AnchorPoint = Vector2.new(0.5, 0.5)
  1383. ZInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1384. ZInput.ClipsDescendants = true
  1385. ZInput.Position = UDim2.new(0.931999981, 0, 0.5, 0)
  1386. ZInput.Size = UDim2.new(0, 25, 0, 25)
  1387. ZInput.ClearTextOnFocus = false
  1388. ZInput.Font = Enum.Font.SourceSansLight
  1389. ZInput.PlaceholderText = "Z"
  1390. ZInput.Text = ""
  1391. ZInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  1392. ZInput.TextSize = 14.000
  1393. ZInput.TextWrapped = true
  1394.  
  1395. UICorner_2.Parent = ZInput
  1396.  
  1397. XInput.Name = "XInput"
  1398. XInput.Parent = Container
  1399. XInput.AnchorPoint = Vector2.new(0.5, 0.5)
  1400. XInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1401. XInput.ClipsDescendants = true
  1402. XInput.Position = UDim2.new(0.778422117, 0, 0.5, 0)
  1403. XInput.Size = UDim2.new(0, 25, 0, 25)
  1404. XInput.ClearTextOnFocus = false
  1405. XInput.Font = Enum.Font.SourceSansLight
  1406. XInput.PlaceholderText = "X"
  1407. XInput.Text = ""
  1408. XInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  1409. XInput.TextSize = 14.000
  1410. XInput.TextWrapped = true
  1411.  
  1412. UICorner_3.Parent = XInput
  1413.  
  1414. inputs = {[1] = XInput, [2] = YInput, [3] = ZInput}
  1415.  
  1416.  
  1417. --[[ Functions ]]--
  1418. for _, input in pairs(inputs) do
  1419. input.FocusLost:Connect(function()
  1420. args.Callback(Vector3.new(inputs[1].Text, inputs[2].Text, inputs[3].Text))
  1421. end)
  1422. end
  1423. end
  1424. function fMod:AddVector2Input(args: vector2)
  1425. --[[ Set Default Values ]]--
  1426. args.Text = (args.Text == nil) and "Vector2" or args.Text
  1427. args.Callback = (type(args.Callback) ~= "function") and function()
  1428. return
  1429. end or args.Callback
  1430.  
  1431.  
  1432. --[[ Variables ]]--
  1433. local inputs
  1434.  
  1435.  
  1436. --[[ Gui ]]--
  1437. local XInput = Instance.new("TextBox")
  1438. local UICorner = Instance.new("UICorner")
  1439. local YInput = Instance.new("TextBox")
  1440. local UICorner_2 = Instance.new("UICorner")
  1441. local Container = CreateContainer(Section, args.Text)
  1442.  
  1443. XInput.Name = "XInput"
  1444. XInput.Parent = Container
  1445. XInput.AnchorPoint = Vector2.new(0.5, 0.5)
  1446. XInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1447. XInput.ClipsDescendants = true
  1448. XInput.Position = UDim2.new(0.856512547, 0, 0.5, 0)
  1449. XInput.Size = UDim2.new(0, 25, 0, 25)
  1450. XInput.ClearTextOnFocus = false
  1451. XInput.Font = Enum.Font.SourceSansLight
  1452. XInput.PlaceholderText = "X"
  1453. XInput.Text = ""
  1454. XInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  1455. XInput.TextSize = 14.000
  1456. XInput.TextWrapped = true
  1457.  
  1458. UICorner.Parent = XInput
  1459.  
  1460. YInput.Name = "YInput"
  1461. YInput.Parent = Container
  1462. YInput.AnchorPoint = Vector2.new(0.5, 0.5)
  1463. YInput.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  1464. YInput.ClipsDescendants = true
  1465. YInput.Position = UDim2.new(0.931999981, 0, 0.5, 0)
  1466. YInput.Size = UDim2.new(0, 25, 0, 25)
  1467. YInput.ClearTextOnFocus = false
  1468. YInput.Font = Enum.Font.SourceSansLight
  1469. YInput.PlaceholderText = "Y"
  1470. YInput.Text = ""
  1471. YInput.TextColor3 = Color3.fromRGB(255, 255, 255)
  1472. YInput.TextSize = 14.000
  1473. YInput.TextWrapped = true
  1474.  
  1475. UICorner_2.Parent = YInput
  1476.  
  1477. inputs = {[1] = XInput, [2] = YInput}
  1478.  
  1479.  
  1480. --[[ Functions ]]--
  1481. for _, input in pairs(inputs) do
  1482. input.FocusLost:Connect(function()
  1483. args.Callback(Vector2.new(inputs[1].Text, inputs[2].Text))
  1484. end)
  1485. end
  1486. end
  1487.  
  1488. return fMod
  1489. end
  1490.  
  1491. return sMod
  1492. end
  1493.  
  1494. return tMod
  1495. end
  1496.  
  1497. return library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement