SkeletalScripts

BlueSlime Library V1:0.0

Apr 2nd, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.81 KB | None | 0 0
  1. local Lib = {}
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5. ScreenGui.ResetOnSpawn = false
  6. function Lib:CreateWindow(name)
  7. wait(0.2)
  8. local pos = 0.1
  9. local get = ScreenGui:GetChildren()
  10. if ScreenGui:FindFirstChildOfClass("ImageLabel") ~= nil then -- checking if there is already a menu
  11. for i = 1, #get do
  12. pos = pos + 0.058
  13. end
  14. else
  15. pos = 0.058
  16. end
  17.  
  18. local Main = Instance.new("ImageLabel")
  19. local JellyFrames = Instance.new("ImageLabel")
  20. local JellyFrames_2 = Instance.new("ImageLabel")
  21. local Title = Instance.new("TextLabel")
  22. local Container = Instance.new("ImageLabel")
  23. local Jelly = Instance.new("ImageButton")
  24.  
  25.  
  26. Main.Name = name
  27. Main.Parent = ScreenGui
  28. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29. Main.BackgroundTransparency = 1.000
  30. Main.Position = UDim2.new(pos, 0, 0.198288158, 0)
  31. Main.Size = UDim2.new(0, 175, 0, 30)
  32. Main.Image = "rbxassetid://3570695787"
  33. Main.ImageColor3 = Color3.fromRGB(58, 58, 58)
  34. Main.ScaleType = Enum.ScaleType.Slice
  35. Main.SliceCenter = Rect.new(100, 100, 100, 100)
  36. Main.SliceScale = 0.040
  37.  
  38. JellyFrames.Name = "JellyFrames"
  39. JellyFrames.Parent = Main
  40. JellyFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. JellyFrames.BackgroundTransparency = 1.000
  42. JellyFrames.Position = UDim2.new(0.0199999996, 0, 0.0199999996, 0)
  43. JellyFrames.Size = UDim2.new(0, 2, 0, 26)
  44. JellyFrames.Image = "rbxassetid://3570695787"
  45. JellyFrames.ImageColor3 = Color3.fromRGB(85, 85, 85)
  46. JellyFrames.ScaleType = Enum.ScaleType.Slice
  47. JellyFrames.SliceCenter = Rect.new(100, 100, 100, 100)
  48. JellyFrames.SliceScale = 0.040
  49.  
  50. JellyFrames_2.Name = "JellyFrames"
  51. JellyFrames_2.Parent = Main
  52. JellyFrames_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. JellyFrames_2.BackgroundTransparency = 1.000
  54. JellyFrames_2.Position = UDim2.new(0.970000029, 0, 0.0199999996, 0)
  55. JellyFrames_2.Size = UDim2.new(0, 2, 0, 26)
  56. JellyFrames_2.Image = "rbxassetid://3570695787"
  57. JellyFrames_2.ImageColor3 = Color3.fromRGB(85, 85, 85)
  58. JellyFrames_2.ScaleType = Enum.ScaleType.Slice
  59. JellyFrames_2.SliceCenter = Rect.new(100, 100, 100, 100)
  60. JellyFrames_2.SliceScale = 0.040
  61.  
  62. Title.Name = "Title"
  63. Title.Parent = Main
  64. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  65. Title.BackgroundTransparency = 1.000
  66. Title.Size = UDim2.new(1, 0, 1, 0)
  67. Title.ZIndex = 2
  68. Title.Font = Enum.Font.SourceSans
  69. Title.TextColor3 = Color3.fromRGB(206, 206, 206)
  70. Title.TextScaled = true
  71. Title.Text = name
  72. Title.TextSize = 14.000
  73. Title.TextWrapped = true
  74.  
  75. Container.Name = "Container"
  76. Container.Parent = Main
  77. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. Container.BackgroundTransparency = 1.000
  79. Container.Position = UDim2.new(0.0285714287, 0, 1, 0)
  80. Container.Size = UDim2.new(0.949999988, 0, 0, 0)
  81. Container.Image = "rbxassetid://3570695787"
  82. Container.ImageColor3 = Color3.fromRGB(58, 58, 58)
  83. Container.ScaleType = Enum.ScaleType.Slice
  84. Container.SliceCenter = Rect.new(100, 100, 100, 100)
  85. Container.SliceScale = 0.040
  86. Container.ClipsDescendants = true
  87.  
  88. Jelly.Name = "Jelly"
  89. Jelly.Parent = Main
  90. Jelly.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  91. Jelly.BackgroundTransparency = 1.000
  92. Jelly.BorderSizePixel = 0
  93. Jelly.Size = UDim2.new(0, 175, 0, 30)
  94. Jelly.Image = "http://www.roblox.com/asset/?id=4851028375"
  95. Jelly.ScaleType = Enum.ScaleType.Crop
  96. Jelly.SliceCenter = Rect.new(100, 100, 100, 100)
  97. Jelly.SliceScale = 0.100
  98.  
  99. local Details = Instance.new("TextLabel")
  100. local TextLabel_Roundify_4px = Instance.new("ImageLabel")
  101. local JellyFrames_3 = Instance.new("ImageLabel")
  102. local JellyFrames_4 = Instance.new("ImageLabel")
  103. local UIListLayout = Instance.new("UIListLayout")
  104.  
  105. Details.Name = "Details"
  106. Details.Parent = Container
  107. Details.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  108. Details.BackgroundTransparency = 1.000
  109. Details.BorderSizePixel = 0
  110. Details.Size = UDim2.new(1, 0, 0, 4)
  111. Details.Font = Enum.Font.SourceSans
  112. Details.Text = " "
  113. Details.TextColor3 = Color3.fromRGB(0, 0, 0)
  114. Details.TextSize = 14.000
  115.  
  116. TextLabel_Roundify_4px.Name = "TextLabel_Roundify_4px"
  117. TextLabel_Roundify_4px.Parent = Details
  118. TextLabel_Roundify_4px.AnchorPoint = Vector2.new(0.5, 0.5)
  119. TextLabel_Roundify_4px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  120. TextLabel_Roundify_4px.BackgroundTransparency = 1.000
  121. TextLabel_Roundify_4px.Position = UDim2.new(0.5, 0, 0.5, 0)
  122. TextLabel_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
  123. TextLabel_Roundify_4px.Image = "rbxassetid://3570695787"
  124. TextLabel_Roundify_4px.ImageColor3 = Color3.fromRGB(0, 170, 255)
  125. TextLabel_Roundify_4px.ScaleType = Enum.ScaleType.Slice
  126. TextLabel_Roundify_4px.SliceCenter = Rect.new(100, 100, 100, 100)
  127. TextLabel_Roundify_4px.SliceScale = 0.040
  128.  
  129. JellyFrames_3.Name = "JellyFrames"
  130. JellyFrames_3.Parent = Details
  131. JellyFrames_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  132. JellyFrames_3.BackgroundTransparency = 1.000
  133. JellyFrames_3.Position = UDim2.new(0.0199999996, 0, 1.01999998, 0)
  134. JellyFrames_3.Size = UDim2.new(0, 2, 0, 229)
  135. JellyFrames_3.Image = "rbxassetid://3570695787"
  136. JellyFrames_3.ImageColor3 = Color3.fromRGB(85, 85, 85)
  137. JellyFrames_3.ScaleType = Enum.ScaleType.Slice
  138. JellyFrames_3.SliceCenter = Rect.new(100, 100, 100, 100)
  139. JellyFrames_3.SliceScale = 0.040
  140.  
  141. JellyFrames_4.Name = "JellyFrames"
  142. JellyFrames_4.Parent = Details
  143. JellyFrames_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  144. JellyFrames_4.BackgroundTransparency = 1.000
  145. JellyFrames_4.Position = UDim2.new(0.976015091, 0, 1.01999998, 0)
  146. JellyFrames_4.Size = UDim2.new(0, 2, 0, 229)
  147. JellyFrames_4.Image = "rbxassetid://3570695787"
  148. JellyFrames_4.ImageColor3 = Color3.fromRGB(85, 85, 85)
  149. JellyFrames_4.ScaleType = Enum.ScaleType.Slice
  150. JellyFrames_4.SliceCenter = Rect.new(100, 100, 100, 100)
  151. JellyFrames_4.SliceScale = 0.040
  152.  
  153. UIListLayout.Parent = Container
  154. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  155. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  156. UIListLayout.Padding = UDim.new(0, 5)
  157.  
  158. local WindowPart = {}
  159.  
  160. function WindowPart:Button(name,callback)
  161. callback = callback or function() end
  162. local Button = Instance.new("TextButton")
  163. local JellyFrames_5 = Instance.new("ImageLabel")
  164. local JellyFrames_6 = Instance.new("ImageLabel")
  165.  
  166. Button.Name = name.."Button"
  167. Button.Parent = Container
  168. Button.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  169. Button.BorderColor3 = Color3.fromRGB(27, 42, 53)
  170. Button.BorderSizePixel = 0
  171. Button.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  172. Button.Size = UDim2.new(0, 150, 0, 20)
  173. Button.Font = Enum.Font.SourceSans
  174. Button.Text = " "..name
  175. Button.TextColor3 = Color3.fromRGB(206, 206, 206)
  176. Button.TextSize = 15.000
  177. Button.TextWrapped = true
  178. Button.TextXAlignment = Enum.TextXAlignment.Left
  179.  
  180. JellyFrames_5.Name = "JellyFrames"
  181. JellyFrames_5.Parent = Button
  182. JellyFrames_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. JellyFrames_5.BackgroundTransparency = 1.000
  184. JellyFrames_5.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  185. JellyFrames_5.Size = UDim2.new(0, 2, 1, -2)
  186. JellyFrames_5.Image = "rbxassetid://3570695787"
  187. JellyFrames_5.ImageColor3 = Color3.fromRGB(85, 85, 85)
  188. JellyFrames_5.ScaleType = Enum.ScaleType.Slice
  189. JellyFrames_5.SliceCenter = Rect.new(100, 100, 100, 100)
  190. JellyFrames_5.SliceScale = 0.040
  191.  
  192. JellyFrames_6.Name = "JellyFrames"
  193. JellyFrames_6.Parent = Button
  194. JellyFrames_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  195. JellyFrames_6.BackgroundTransparency = 1.000
  196. JellyFrames_6.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  197. JellyFrames_6.Size = UDim2.new(0, 2, 1, -2)
  198. JellyFrames_6.Image = "rbxassetid://3570695787"
  199. JellyFrames_6.ImageColor3 = Color3.fromRGB(85, 85, 85)
  200. JellyFrames_6.ScaleType = Enum.ScaleType.Slice
  201. JellyFrames_6.SliceCenter = Rect.new(100, 100, 100, 100)
  202. JellyFrames_6.SliceScale = 0.040
  203.  
  204. Button.MouseButton1Click:Connect(function()callback()end)
  205.  
  206. Container.Size = Container.Size + UDim2.new(0,0,0,25)
  207. end
  208. function WindowPart:Toggle(name,callback)
  209. callback = callback or function() end
  210.  
  211. local Toggle = Instance.new("TextLabel")
  212. local JellyFrames_7 = Instance.new("ImageLabel")
  213. local JellyFrames_8 = Instance.new("ImageLabel")
  214. local ToggleButton = Instance.new("TextButton")
  215.  
  216. Toggle.Name = name.."Toggle"
  217. Toggle.Parent = Container
  218. Toggle.Active = true
  219. Toggle.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  220. Toggle.BorderColor3 = Color3.fromRGB(27, 42, 53)
  221. Toggle.BorderSizePixel = 0
  222. Toggle.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  223. Toggle.Selectable = true
  224. Toggle.Size = UDim2.new(0, 150, 0, 20)
  225. Toggle.Font = Enum.Font.SourceSans
  226. Toggle.Text = " "..name
  227. Toggle.TextColor3 = Color3.fromRGB(206, 206, 206)
  228. Toggle.TextSize = 15.000
  229. Toggle.TextWrapped = true
  230. Toggle.TextXAlignment = Enum.TextXAlignment.Left
  231.  
  232. JellyFrames_7.Name = "JellyFrames"
  233. JellyFrames_7.Parent = Toggle
  234. JellyFrames_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  235. JellyFrames_7.BackgroundTransparency = 1.000
  236. JellyFrames_7.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  237. JellyFrames_7.Size = UDim2.new(0, 2, 1, -2)
  238. JellyFrames_7.Image = "rbxassetid://3570695787"
  239. JellyFrames_7.ImageColor3 = Color3.fromRGB(85, 85, 85)
  240. JellyFrames_7.ScaleType = Enum.ScaleType.Slice
  241. JellyFrames_7.SliceCenter = Rect.new(100, 100, 100, 100)
  242. JellyFrames_7.SliceScale = 0.040
  243.  
  244. JellyFrames_8.Name = "JellyFrames"
  245. JellyFrames_8.Parent = Toggle
  246. JellyFrames_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  247. JellyFrames_8.BackgroundTransparency = 1.000
  248. JellyFrames_8.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  249. JellyFrames_8.Size = UDim2.new(0, 2, 1, -2)
  250. JellyFrames_8.Image = "rbxassetid://3570695787"
  251. JellyFrames_8.ImageColor3 = Color3.fromRGB(85, 85, 85)
  252. JellyFrames_8.ScaleType = Enum.ScaleType.Slice
  253. JellyFrames_8.SliceCenter = Rect.new(100, 100, 100, 100)
  254. JellyFrames_8.SliceScale = 0.040
  255.  
  256. ToggleButton.Name = "ToggleButton"
  257. ToggleButton.Parent = Toggle
  258. ToggleButton.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  259. ToggleButton.BorderColor3 = Color3.fromRGB(85, 85, 85)
  260. ToggleButton.Position = UDim2.new(0.762205422, 0, -0.0123428348, 0)
  261. ToggleButton.Size = UDim2.new(0, 20, 0, 20)
  262. ToggleButton.Font = Enum.Font.SourceSans
  263. ToggleButton.Text = " "
  264. ToggleButton.TextColor3 = Color3.fromRGB(206, 206, 206)
  265. ToggleButton.TextScaled = true
  266. ToggleButton.TextSize = 14.000
  267. ToggleButton.TextWrapped = true
  268. local o = false
  269. ToggleButton.MouseButton1Click:Connect(function()
  270. if o == false then
  271. o = true
  272. ToggleButton.Text = "✓"
  273. callback()
  274. else
  275. o = false
  276. ToggleButton.Text = ""
  277. end
  278. end)
  279. Container.Size = Container.Size + UDim2.new(0,0,0,25)
  280. end
  281.  
  282. function WindowPart:Box(name,callback)
  283. callback = callback or function() end
  284. local Box = Instance.new("TextLabel")
  285. local JellyFrames_9 = Instance.new("ImageLabel")
  286. local JellyFrames_10 = Instance.new("ImageLabel")
  287. local RealBox = Instance.new("TextBox")
  288.  
  289. Box.Name = name.."Box"
  290. Box.Parent = Container
  291. Box.Active = true
  292. Box.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  293. Box.BorderColor3 = Color3.fromRGB(27, 42, 53)
  294. Box.BorderSizePixel = 0
  295. Box.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  296. Box.Selectable = true
  297. Box.Size = UDim2.new(0, 150, 0, 20)
  298. Box.Font = Enum.Font.SourceSans
  299. Box.Text = " "..name
  300. Box.TextColor3 = Color3.fromRGB(206, 206, 206)
  301. Box.TextSize = 15.000
  302. Box.TextWrapped = true
  303. Box.TextXAlignment = Enum.TextXAlignment.Left
  304.  
  305. JellyFrames_9.Name = "JellyFrames"
  306. JellyFrames_9.Parent = Box
  307. JellyFrames_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  308. JellyFrames_9.BackgroundTransparency = 1.000
  309. JellyFrames_9.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  310. JellyFrames_9.Size = UDim2.new(0, 2, 1, -2)
  311. JellyFrames_9.Image = "rbxassetid://3570695787"
  312. JellyFrames_9.ImageColor3 = Color3.fromRGB(85, 85, 85)
  313. JellyFrames_9.ScaleType = Enum.ScaleType.Slice
  314. JellyFrames_9.SliceCenter = Rect.new(100, 100, 100, 100)
  315. JellyFrames_9.SliceScale = 0.040
  316.  
  317. JellyFrames_10.Name = "JellyFrames"
  318. JellyFrames_10.Parent = Box
  319. JellyFrames_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  320. JellyFrames_10.BackgroundTransparency = 1.000
  321. JellyFrames_10.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  322. JellyFrames_10.Size = UDim2.new(0, 2, 1, -2)
  323. JellyFrames_10.Image = "rbxassetid://3570695787"
  324. JellyFrames_10.ImageColor3 = Color3.fromRGB(85, 85, 85)
  325. JellyFrames_10.ScaleType = Enum.ScaleType.Slice
  326. JellyFrames_10.SliceCenter = Rect.new(100, 100, 100, 100)
  327. JellyFrames_10.SliceScale = 0.040
  328.  
  329. RealBox.Name = "RealBox"
  330. RealBox.Parent = Box
  331. RealBox.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  332. RealBox.BorderColor3 = Color3.fromRGB(85, 85, 85)
  333. RealBox.Position = UDim2.new(0.642205417, 0, -0.0123428348, 0)
  334. RealBox.Size = UDim2.new(0, 38, 0, 20)
  335. RealBox.Font = Enum.Font.SourceSans
  336. RealBox.PlaceholderColor3 = Color3.fromRGB(126, 126, 126)
  337. RealBox.Text = ""
  338. RealBox.TextColor3 = Color3.fromRGB(206, 206, 206)
  339. RealBox.TextScaled = true
  340. RealBox.TextSize = 14.000
  341. RealBox.TextWrapped = true
  342.  
  343. RealBox.FocusLost:Connect(function()
  344. callback(RealBox.Text)
  345. end)
  346. Container.Size =Container.Size + UDim2.new(0,0,0,25)
  347.  
  348. end
  349.  
  350. function WindowPart:Slider(name,min,max,estimate,callback)
  351. callback = callback or function() end
  352. min = min or 0
  353. max = max or 100
  354. estimate = estimate or true
  355.  
  356. local Slider = Instance.new("TextLabel")
  357. local JellyFrames_11 = Instance.new("ImageLabel")
  358. local JellyFrames_12 = Instance.new("ImageLabel")
  359. local Slide = Instance.new("ImageButton")
  360. local Slider_2 = Instance.new("ImageButton")
  361.  
  362. Slider.Name = name.."Slider"
  363. Slider.Parent = Container
  364. Slider.Active = true
  365. Slider.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  366. Slider.BorderColor3 = Color3.fromRGB(27, 42, 53)
  367. Slider.BorderSizePixel = 0
  368. Slider.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  369. Slider.Selectable = true
  370. Slider.Size = UDim2.new(0, 150, 0, 20)
  371. Slider.Font = Enum.Font.SourceSans
  372. Slider.Text = " "..name
  373. Slider.TextColor3 = Color3.fromRGB(206, 206, 206)
  374. Slider.TextSize = 15.000
  375. Slider.TextWrapped = true
  376. Slider.TextXAlignment = Enum.TextXAlignment.Left
  377.  
  378. JellyFrames_11.Name = "JellyFrames"
  379. JellyFrames_11.Parent = Slider
  380. JellyFrames_11.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  381. JellyFrames_11.BackgroundTransparency = 1.000
  382. JellyFrames_11.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  383. JellyFrames_11.Size = UDim2.new(0, 2, 1, -2)
  384. JellyFrames_11.Image = "rbxassetid://3570695787"
  385. JellyFrames_11.ImageColor3 = Color3.fromRGB(85, 85, 85)
  386. JellyFrames_11.ScaleType = Enum.ScaleType.Slice
  387. JellyFrames_11.SliceCenter = Rect.new(100, 100, 100, 100)
  388. JellyFrames_11.SliceScale = 0.040
  389.  
  390. JellyFrames_12.Name = "JellyFrames"
  391. JellyFrames_12.Parent = Slider
  392. JellyFrames_12.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  393. JellyFrames_12.BackgroundTransparency = 1.000
  394. JellyFrames_12.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  395. JellyFrames_12.Size = UDim2.new(0, 2, 1, -2)
  396. JellyFrames_12.Image = "rbxassetid://3570695787"
  397. JellyFrames_12.ImageColor3 = Color3.fromRGB(85, 85, 85)
  398. JellyFrames_12.ScaleType = Enum.ScaleType.Slice
  399. JellyFrames_12.SliceCenter = Rect.new(100, 100, 100, 100)
  400. JellyFrames_12.SliceScale = 0.040
  401.  
  402. Slide.Name = "Slide"
  403. Slide.Parent = Slider
  404. Slide.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  405. Slide.BorderColor3 = Color3.fromRGB(85, 85, 85)
  406. Slide.Position = UDim2.new(0.588872075, 0, 0.0500000007, 0)
  407. Slide.Size = UDim2.new(-0.162205398, 70, 1, 0)
  408. Slide.Image = "rbxassetid://3570695787"
  409. Slide.ImageColor3 = Color3.fromRGB(58, 58, 58)
  410. Slide.ScaleType = Enum.ScaleType.Slice
  411. Slide.SliceCenter = Rect.new(100, 100, 100, 100)
  412. Slide.SliceScale = 0.040
  413.  
  414. Slider_2.Name = "Slider"
  415. Slider_2.Parent = Slide
  416. Slider_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  417. Slider_2.BackgroundTransparency = 1.000
  418. Slider_2.BorderSizePixel = 0
  419. Slider_2.Position = UDim2.new(-1.49011612e-08, 0, 0, 0)
  420. Slider_2.Size = UDim2.new(0, 0, 1, 0)
  421. Slider_2.Image = "rbxassetid://3570695787"
  422. Slider_2.ImageTransparency = 0.900
  423. Slider_2.ScaleType = Enum.ScaleType.Slice
  424. Slider_2.SliceCenter = Rect.new(100, 100, 100, 100)
  425. Slider_2.SliceScale = 0.040
  426.  
  427. local realVal = Slider.Text.." :"
  428. local Val = Slider
  429. local Sliderr = Slide
  430. local mousepressed = false
  431. print(Slider)
  432. local SliderBtn = Slider_2
  433. local Player = game:GetService("Players").LocalPlayer
  434. local UIS = game:GetService("UserInputService")
  435. local RuS = game:GetService("RunService")
  436. -- Properties
  437. local held = false
  438. local step = 0
  439. local percentage = 0
  440. function snap(number, factor)
  441. if factor == 0 then
  442. return number
  443. else
  444. return math.floor(number/factor+0.5)*factor
  445. end
  446. end
  447. UIS.InputEnded:connect(function(input, processed)
  448. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  449. held = false
  450. mousepressed = false
  451. end
  452. end)
  453. UIS.InputBegan:Connect(function(input)
  454. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  455. mousepressed = true
  456. end
  457. end)
  458. Sliderr.MouseEnter:connect(function()
  459. if mousepressed then
  460. held = true
  461. end
  462. end)
  463. RuS.RenderStepped:connect(function(delta)
  464. if held then
  465. local MousePos = UIS:GetMouseLocation().X
  466. local BtnPos = SliderBtn.Position
  467. local SliderSize = Sliderr.AbsoluteSize.X
  468. local SliderPos = Sliderr.AbsolutePosition.X
  469. local pos = snap((MousePos-SliderPos)/SliderSize,step)
  470. percentage = math.clamp(pos,0,1)
  471. SliderBtn.Position = UDim2.new(percentage/100,0,BtnPos.Y.Scale, BtnPos.Y.Offset)
  472. SliderBtn.Size = UDim2.new(percentage,0,1,0)
  473. local bry = (math.floor((0 + (max - 0) * percentage) * max) / max)
  474. if estimate == true then
  475.  
  476. local big = math.floor(bry)
  477. Val.Text = realVal..big..""
  478. elseif estimate == false then
  479. Val.Text = realVal..bry..""
  480. end
  481. end
  482. end)
  483. Container.Size = Container.Size + UDim2.new(0,0,0,25)
  484.  
  485.  
  486. end
  487.  
  488. function WindowPart:Dropdown(name,options,callback)
  489. callback = callback or function() end
  490. local Dropdown = Instance.new("TextLabel")
  491. local JellyFrames_13 = Instance.new("ImageLabel")
  492. local JellyFrames_14 = Instance.new("ImageLabel")
  493. local ToggleButton_2 = Instance.new("TextButton")
  494. local Container_2 = Instance.new("ImageLabel")
  495. local Details_2 = Instance.new("TextLabel")
  496. local TextLabel_Roundify_4px_2 = Instance.new("ImageLabel")
  497. local UIListLayout_2 = Instance.new("UIListLayout")
  498.  
  499. Dropdown.Name = "Dropdown"
  500. Dropdown.Parent = Container
  501. Dropdown.Active = true
  502. Dropdown.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  503. Dropdown.BorderColor3 = Color3.fromRGB(27, 42, 53)
  504. Dropdown.BorderSizePixel = 0
  505. Dropdown.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  506. Dropdown.Selectable = true
  507. Dropdown.Size = UDim2.new(0, 150, 0, 20)
  508. Dropdown.Font = Enum.Font.SourceSans
  509. Dropdown.Text = " Button"
  510. Dropdown.TextColor3 = Color3.fromRGB(206, 206, 206)
  511. Dropdown.TextSize = 15.000
  512. Dropdown.TextWrapped = true
  513. Dropdown.TextXAlignment = Enum.TextXAlignment.Left
  514.  
  515. JellyFrames_13.Name = "JellyFrames"
  516. JellyFrames_13.Parent = Dropdown
  517. JellyFrames_13.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  518. JellyFrames_13.BackgroundTransparency = 1.000
  519. JellyFrames_13.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  520. JellyFrames_13.Size = UDim2.new(0, 2, 1, -2)
  521. JellyFrames_13.Image = "rbxassetid://3570695787"
  522. JellyFrames_13.ImageColor3 = Color3.fromRGB(85, 85, 85)
  523. JellyFrames_13.ScaleType = Enum.ScaleType.Slice
  524. JellyFrames_13.SliceCenter = Rect.new(100, 100, 100, 100)
  525. JellyFrames_13.SliceScale = 0.040
  526.  
  527. JellyFrames_14.Name = "JellyFrames"
  528. JellyFrames_14.Parent = Dropdown
  529. JellyFrames_14.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  530. JellyFrames_14.BackgroundTransparency = 1.000
  531. JellyFrames_14.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  532. JellyFrames_14.Size = UDim2.new(0, 2, 1, -2)
  533. JellyFrames_14.Image = "rbxassetid://3570695787"
  534. JellyFrames_14.ImageColor3 = Color3.fromRGB(85, 85, 85)
  535. JellyFrames_14.ScaleType = Enum.ScaleType.Slice
  536. JellyFrames_14.SliceCenter = Rect.new(100, 100, 100, 100)
  537. JellyFrames_14.SliceScale = 0.040
  538.  
  539. ToggleButton_2.Name = "ToggleButton"
  540. ToggleButton_2.Parent = Dropdown
  541. ToggleButton_2.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  542. ToggleButton_2.BorderColor3 = Color3.fromRGB(85, 85, 85)
  543. ToggleButton_2.Position = UDim2.new(0.762205422, 0, -0.0123428348, 0)
  544. ToggleButton_2.Size = UDim2.new(0, 20, 0, 20)
  545. ToggleButton_2.Font = Enum.Font.SourceSans
  546. ToggleButton_2.Text = "V"
  547. ToggleButton_2.TextColor3 = Color3.fromRGB(206, 206, 206)
  548. ToggleButton_2.TextScaled = true
  549. ToggleButton_2.TextSize = 14.000
  550. ToggleButton_2.TextWrapped = true
  551.  
  552. Container_2.Name = "Container"
  553. Container_2.Parent = ToggleButton_2
  554. Container_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  555. Container_2.BackgroundTransparency = 1.000
  556. Container_2.Position = UDim2.new(-5.69999981, 0, 1, 0)
  557. Container_2.Size = UDim2.new(0, 150, 0, 35)
  558. Container_2.Visible = false
  559. Container_2.Image = "rbxassetid://3570695787"
  560. Container_2.ImageColor3 = Color3.fromRGB(58, 58, 58)
  561. Container_2.ScaleType = Enum.ScaleType.Slice
  562. Container_2.SliceCenter = Rect.new(100, 100, 100, 100)
  563. Container_2.SliceScale = 0.040
  564.  
  565. Details_2.Name = "Details"
  566. Details_2.Parent = Container_2
  567. Details_2.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  568. Details_2.BackgroundTransparency = 1.000
  569. Details_2.BorderSizePixel = 0
  570. Details_2.Size = UDim2.new(1, 0, 0, 4)
  571. Details_2.Font = Enum.Font.SourceSans
  572. Details_2.Text = " "
  573. Details_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  574. Details_2.TextSize = 14.000
  575.  
  576. TextLabel_Roundify_4px_2.Name = "TextLabel_Roundify_4px"
  577. TextLabel_Roundify_4px_2.Parent = Details_2
  578. TextLabel_Roundify_4px_2.AnchorPoint = Vector2.new(0.5, 0.5)
  579. TextLabel_Roundify_4px_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  580. TextLabel_Roundify_4px_2.BackgroundTransparency = 1.000
  581. TextLabel_Roundify_4px_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  582. TextLabel_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0)
  583. TextLabel_Roundify_4px_2.Image = "rbxassetid://3570695787"
  584. TextLabel_Roundify_4px_2.ImageColor3 = Color3.fromRGB(0, 170, 255)
  585. TextLabel_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice
  586. TextLabel_Roundify_4px_2.SliceCenter = Rect.new(100, 100, 100, 100)
  587. TextLabel_Roundify_4px_2.SliceScale = 0.040
  588.  
  589. UIListLayout_2.Parent = Container_2
  590. UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
  591. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  592. UIListLayout_2.Padding = UDim.new(0, 5)
  593. for i,v in pairs(options) do
  594. local Button_2 = Instance.new("TextButton")
  595. local JellyFrames_15 = Instance.new("ImageLabel")
  596. local JellyFrames_16 = Instance.new("ImageLabel")
  597. Button_2.Name = "Button"
  598. Button_2.Parent = Container_2
  599. Button_2.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  600. Button_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  601. Button_2.BorderSizePixel = 0
  602. Button_2.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  603. Button_2.Size = UDim2.new(0, 150, 0, 20)
  604. Button_2.Font = Enum.Font.SourceSans
  605. Button_2.Text = " Button"
  606. Button_2.TextColor3 = Color3.fromRGB(206, 206, 206)
  607. Button_2.TextScaled = true
  608. Button_2.TextSize = 14.000
  609. Button_2.TextWrapped = true
  610. Button_2.TextXAlignment = Enum.TextXAlignment.Left
  611.  
  612. JellyFrames_15.Name = "JellyFrames"
  613. JellyFrames_15.Parent = Button_2
  614. JellyFrames_15.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  615. JellyFrames_15.BackgroundTransparency = 1.000
  616. JellyFrames_15.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  617. JellyFrames_15.Size = UDim2.new(0, 2, 1, -2)
  618. JellyFrames_15.Image = "rbxassetid://3570695787"
  619. JellyFrames_15.ImageColor3 = Color3.fromRGB(85, 85, 85)
  620. JellyFrames_15.ScaleType = Enum.ScaleType.Slice
  621. JellyFrames_15.SliceCenter = Rect.new(100, 100, 100, 100)
  622. JellyFrames_15.SliceScale = 0.040
  623.  
  624. JellyFrames_16.Name = "JellyFrames"
  625. JellyFrames_16.Parent = Button_2
  626. JellyFrames_16.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  627. JellyFrames_16.BackgroundTransparency = 1.000
  628. JellyFrames_16.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  629. JellyFrames_16.Size = UDim2.new(0, 2, 1, -2)
  630. JellyFrames_16.Image = "rbxassetid://3570695787"
  631. JellyFrames_16.ImageColor3 = Color3.fromRGB(85, 85, 85)
  632. JellyFrames_16.ScaleType = Enum.ScaleType.Slice
  633. JellyFrames_16.SliceCenter = Rect.new(100, 100, 100, 100)
  634. JellyFrames_16.SliceScale = 0.040
  635.  
  636. Button_2.MouseButton1Click:Connect(function()
  637. callback(v)
  638. end)
  639. Container_2.Size = Container_2.Size + UDim2.new(0,0,0,25)
  640. end
  641. local real = Container_2.Size
  642. local rot = 0
  643. local open = false
  644. ToggleButton_2.MouseButton1Click:Connect(function()
  645. if rot == 0 then
  646. open = false
  647. for i = 1,180 do
  648. ToggleButton_2.Rotation = rot
  649. rot = rot + 1
  650. wait(0.0025)
  651. end
  652. Container_2.Size = UDim2.new(0,150,0,0)
  653. Container_2.Visible = true
  654. Container_2:TweenSize(real,"Out","Sine",0.45,false,nil)
  655. Container.ClipsDescendants = false
  656. elseif rot == 180 then
  657. for i = 1,180 do
  658. ToggleButton_2.Rotation = rot
  659. rot = rot - 1
  660. wait(0.01)
  661. end
  662. Container_2:TweenSize(UDim2.new(0, 150, 0, 0),"In","Sine",0.45,false,nil)
  663. Container.ClipsDescendants = true
  664. Container_2.Visible = false
  665. end
  666.  
  667. end)
  668. Container.Size =Container.Size + UDim2.new(0,0,0,25)
  669.  
  670.  
  671. end
  672.  
  673. function WindowPart:Sector(name)
  674. local Sector = Instance.new("TextLabel")
  675. local JellyFrames_17 = Instance.new("ImageLabel")
  676. local JellyFrames_18 = Instance.new("ImageLabel")
  677. Sector.Name = name.."Sector"
  678. Sector.Parent = Container
  679. Sector.Active = true
  680. Sector.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  681. Sector.BorderColor3 = Color3.fromRGB(27, 42, 53)
  682. Sector.BorderSizePixel = 0
  683. Sector.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
  684. Sector.Selectable = true
  685. Sector.Size = UDim2.new(0, 150, 0, 20)
  686. Sector.Font = Enum.Font.SourceSans
  687. Sector.Text = " "..name
  688. Sector.TextColor3 = Color3.fromRGB(206, 206, 206)
  689. Sector.TextSize = 15.000
  690. Sector.TextWrapped = true
  691. Sector.TextXAlignment = Enum.TextXAlignment.Left
  692.  
  693. JellyFrames_17.Name = "JellyFrames"
  694. JellyFrames_17.Parent = Sector
  695. JellyFrames_17.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  696. JellyFrames_17.BackgroundTransparency = 1.000
  697. JellyFrames_17.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
  698. JellyFrames_17.Size = UDim2.new(0, 2, 1, -2)
  699. JellyFrames_17.Image = "rbxassetid://3570695787"
  700. JellyFrames_17.ImageColor3 = Color3.fromRGB(85, 85, 85)
  701. JellyFrames_17.ScaleType = Enum.ScaleType.Slice
  702. JellyFrames_17.SliceCenter = Rect.new(100, 100, 100, 100)
  703. JellyFrames_17.SliceScale = 0.040
  704.  
  705. JellyFrames_18.Name = "JellyFrames"
  706. JellyFrames_18.Parent = Sector
  707. JellyFrames_18.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  708. JellyFrames_18.BackgroundTransparency = 1.000
  709. JellyFrames_18.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
  710. JellyFrames_18.Size = UDim2.new(0, 2, 1, -2)
  711. JellyFrames_18.Image = "rbxassetid://3570695787"
  712. JellyFrames_18.ImageColor3 = Color3.fromRGB(85, 85, 85)
  713. JellyFrames_18.ScaleType = Enum.ScaleType.Slice
  714. JellyFrames_18.SliceCenter = Rect.new(100, 100, 100, 100)
  715. JellyFrames_18.SliceScale = 0.040
  716. Container.Size.Y.Offset = Container.Size.Y.Offset + UDim2.new(0,0,0,25)
  717. end
  718.  
  719. return WindowPart;
  720.  
  721. end;
  722.  
  723. return Lib;
  724. --[[I thought you would need some help :)
  725. local window = library:CreateWindow("Window")
  726.  
  727. local Button = window:Button("Button",function()
  728. print("Button Pressed!")
  729. end)
  730.  
  731. local Toggle = window:Toggle("Toggle",function()
  732. print("Toggle Pressed!")
  733. end)
  734.  
  735. local Box = window:Box("Box",function(Text)
  736. local text = tonumber(Text)
  737.  
  738. print("Box Text Changed To: "..text)
  739. end)
  740.  
  741. local Slider = window:Slider("Slider(rounds up)",0,100,true,function(Val)
  742. print("Slider Value Changed To: "..Val)
  743. end)
  744.  
  745. local Slider = window:Slider("Slider(doesn't round)",0,100,false,function(Val)
  746. print("Slider Value Changed To: "..Val)
  747. end)
  748. sorry still developing dropdowns
  749. local Dropdown = window:Dropdown("Dropdown",{"a","b","c","d"},function(Selected)
  750. print("Dropdown Chosen: "..Selected)
  751. end)
  752.  
  753. local Sector = window:Sector("Sector!")
  754.  
  755. local Button = window:Button("Sections Work!", function()
  756. print("See!")
  757. end)
  758. ]]
Add Comment
Please, Sign In to add comment