Advertisement
CAT_SUS

ModuleListUI

Aug 6th, 2023 (edited)
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.02 KB | None | 0 0
  1. -- module list ui
  2.  
  3. local core = game:FindFirstChild('CoreGui')or game.Players.LocalPlayer.PlayerGui
  4. local UIS = game:GetService('UserInputService')
  5.  
  6. local imd = {}
  7.  
  8. function imd:new<t...>(titl__,decsa__)
  9. decsa__ = decsa__ or ""
  10. titl__ = titl__ or "script game "..tostring(game.Name)
  11. local imd = Instance.new("ScreenGui")
  12. local Frame = Instance.new("Frame")
  13. local UICorner = Instance.new("UICorner")
  14. local DropShadow = Instance.new("ImageLabel")
  15. local Title = Instance.new("TextLabel")
  16. local Frame_2 = Instance.new("Frame")
  17. local DropShadow_2 = Instance.new("ImageLabel")
  18. local underTitle = Instance.new("TextLabel")
  19. local ScrollingFrame = Instance.new("ScrollingFrame")
  20. local UIListLayout = Instance.new("UIListLayout")
  21. local DropShadow_3 = Instance.new("ImageLabel")
  22.  
  23. UIListLayout:GetPropertyChangedSignal('AbsoluteContentSize'):Connect(function()
  24. game:GetService('TweenService'):Create(ScrollingFrame,TweenInfo.new(3),{
  25. CanvasSize = UDim2.new(0,0,0,UIListLayout.AbsoluteContentSize.Y)
  26. }):Play()
  27. end)
  28.  
  29. imd.Name = "imd"
  30. imd.Parent = core
  31. imd.ResetOnSpawn = false
  32. imd.ZIndexBehavior = Enum.ZIndexBehavior.Global
  33. imd.IgnoreGuiInset = true
  34.  
  35. Frame.Parent = imd
  36. Frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  37. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  38. Frame.BorderSizePixel = 0
  39. Frame.Position = UDim2.new(0.609105825, 0, 0.01358697, 0)
  40. Frame.Size = UDim2.new(0.430000007, 0, 0.430000007, 0)
  41. Frame.SizeConstraint = Enum.SizeConstraint.RelativeYY
  42.  
  43. UICorner.CornerRadius = UDim.new(0, 3)
  44. UICorner.Parent = Frame
  45.  
  46. DropShadow.Name = "DropShadow"
  47. DropShadow.Parent = Frame
  48. DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  49. DropShadow.BackgroundTransparency = 1.000
  50. DropShadow.BorderSizePixel = 0
  51. DropShadow.Position = UDim2.new(0.499999911, 0, 0.54891938, 0)
  52. DropShadow.Size = UDim2.new(0.959999979, 35, 0.822000027, 35)
  53. DropShadow.ZIndex = 2
  54. DropShadow.Image = "rbxassetid://6014261993"
  55. DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  56. DropShadow.ImageTransparency = 0.500
  57. DropShadow.ScaleType = Enum.ScaleType.Slice
  58. DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
  59.  
  60. Title.Name = "Title"
  61. Title.Parent = Frame
  62. Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  63. Title.BackgroundTransparency = 1.000
  64. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  65. Title.BorderSizePixel = 0
  66. Title.Position = UDim2.new(0.0157987867, 0, 0, 0)
  67. Title.Size = UDim2.new(0.965000033, 0, 0.0763018206, 0)
  68. Title.ZIndex = 7
  69. Title.Font = Enum.Font.GothamBold
  70. Title.Text = titl__ or "Bedol Hub"
  71. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. Title.TextScaled = true
  73. Title.TextSize = 14.000
  74. Title.TextWrapped = true
  75.  
  76. Frame_2.Parent = Frame
  77. Frame_2.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  78. Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  79. Frame_2.BorderSizePixel = 0
  80. Frame_2.Size = UDim2.new(1, 0, 0.119999997, 0)
  81.  
  82. DropShadow_2.Name = "DropShadow"
  83. DropShadow_2.Parent = Frame_2
  84. DropShadow_2.AnchorPoint = Vector2.new(0.5, 0.5)
  85. DropShadow_2.BackgroundTransparency = 1.000
  86. DropShadow_2.BorderSizePixel = 0
  87. DropShadow_2.Position = UDim2.new(0.5, 0, 0.600000024, 0)
  88. DropShadow_2.Size = UDim2.new(1, 10, 1, 10)
  89. DropShadow_2.ZIndex = -5
  90. DropShadow_2.Image = "rbxassetid://6014261993"
  91. DropShadow_2.ImageColor3 = Color3.fromRGB(0, 0, 0)
  92. DropShadow_2.ImageTransparency = 0.500
  93. DropShadow_2.ScaleType = Enum.ScaleType.Slice
  94. DropShadow_2.SliceCenter = Rect.new(49, 49, 450, 450)
  95.  
  96. underTitle.Name = "underTitle"
  97. underTitle.Parent = Frame
  98. underTitle.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  99. underTitle.BackgroundTransparency = 1.000
  100. underTitle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  101. underTitle.BorderSizePixel = 0
  102. underTitle.Position = UDim2.new(0.0157987867, 0, 0.0763018206, 0)
  103. underTitle.Size = UDim2.new(0.965000033, 0, 0.0434466638, 0)
  104. underTitle.ZIndex = 7
  105. underTitle.Font = Enum.Font.GothamBold
  106. underTitle.Text = decsa__ or "all Script"
  107. underTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  108. underTitle.TextScaled = true
  109. underTitle.TextSize = 14.000
  110. underTitle.TextTransparency = 0.500
  111. underTitle.TextWrapped = true
  112.  
  113. ScrollingFrame.Parent = Frame
  114. ScrollingFrame.Active = true
  115. ScrollingFrame.AnchorPoint = Vector2.new(0.5, 0)
  116. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  117. ScrollingFrame.BackgroundTransparency = 0.950
  118. ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  119. ScrollingFrame.BorderSizePixel = 0
  120. ScrollingFrame.Position = UDim2.new(0.499999911, 0, 0.150088444, 0)
  121. ScrollingFrame.Size = UDim2.new(0.959999979, 0, 0.822352171, 0)
  122. ScrollingFrame.ZIndex = 3
  123. ScrollingFrame.BottomImage = ""
  124. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  125. ScrollingFrame.ScrollBarThickness = 2
  126. ScrollingFrame.TopImage = ""
  127.  
  128. UIListLayout.Parent = ScrollingFrame
  129. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  130. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  131. UIListLayout.Padding = UDim.new(0, 7)
  132.  
  133. DropShadow_3.Name = "DropShadow"
  134. DropShadow_3.Parent = Frame
  135. DropShadow_3.AnchorPoint = Vector2.new(0.5, 0.5)
  136. DropShadow_3.BackgroundTransparency = 1.000
  137. DropShadow_3.BorderSizePixel = 0
  138. DropShadow_3.Position = UDim2.new(0.5, 0, 0.5, 0)
  139. DropShadow_3.Size = UDim2.new(1, 47, 1, 47)
  140. DropShadow_3.ZIndex = -5
  141. DropShadow_3.Image = "rbxassetid://6014261993"
  142. DropShadow_3.ImageColor3 = Color3.fromRGB(0, 0, 0)
  143. DropShadow_3.ImageTransparency = 0.500
  144. DropShadow_3.ScaleType = Enum.ScaleType.Slice
  145. DropShadow_3.SliceCenter = Rect.new(49, 49, 450, 450)
  146.  
  147. local function createRich(link:string)
  148.  
  149. local _1 = [[<font color="rgb(0, 178, 232)">loadstring</font>(<font color="rgb(0, 178, 232)">game</font>:<font color="rgb(232, 227, 77)">HttpGet</font>(<font color="rgb(69, 232, 40)">"]]..tostring(link)..[["</font>))()]]
  150. return _1
  151. end
  152.  
  153. local dragToggle = nil
  154. local dragSpeed = 0.1
  155. local dragStart = nil
  156. local startPos = nil
  157.  
  158. local function updateInput(input)
  159. local delta = input.Position - dragStart
  160. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  161. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  162. game:GetService('TweenService'):Create(Frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  163. end
  164.  
  165. Frame.InputBegan:Connect(function(input)
  166. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  167. dragToggle = true
  168. dragStart = input.Position
  169. startPos = Frame.Position
  170. input.Changed:Connect(function()
  171. if input.UserInputState == Enum.UserInputState.End then
  172. dragToggle = false
  173. end
  174. end)
  175. end
  176. end)
  177.  
  178. UIS.InputChanged:Connect(function(input)
  179. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  180. if dragToggle then
  181. updateInput(input)
  182. end
  183. end
  184. end)
  185.  
  186.  
  187. return function(titlestring:string,script_link:string)
  188. local Frame = Instance.new("Frame")
  189. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  190. local UICorner = Instance.new("UICorner")
  191. local DropShadow = Instance.new("ImageLabel")
  192. local Title = Instance.new("TextLabel")
  193. local ScriptCode = Instance.new("TextLabel")
  194. local Copy = Instance.new("TextButton")
  195. local UICorner_2 = Instance.new("UICorner")
  196. local Run = Instance.new("TextButton")
  197. local UICorner_3 = Instance.new("UICorner")
  198.  
  199. Frame.Parent = ScrollingFrame
  200. Frame.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
  201. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  202. Frame.BorderSizePixel = 0
  203. Frame.Size = UDim2.new(1, 0, 0.5, 0)
  204. Frame.ZIndex = 6
  205.  
  206. UIAspectRatioConstraint.Parent = Frame
  207. UIAspectRatioConstraint.AspectRatio = 4.500
  208. UIAspectRatioConstraint.AspectType = Enum.AspectType.ScaleWithParentSize
  209.  
  210. UICorner.CornerRadius = UDim.new(0, 3)
  211. UICorner.Parent = Frame
  212.  
  213. DropShadow.Name = "DropShadow"
  214. DropShadow.Parent = Frame
  215. DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
  216. DropShadow.BackgroundTransparency = 1.000
  217. DropShadow.BorderSizePixel = 0
  218. DropShadow.Position = UDim2.new(0.499999911, 0, 0.54891938, 0)
  219. DropShadow.Size = UDim2.new(0.959999979, 45, 0.822000027, 45)
  220. DropShadow.ZIndex = 5
  221. DropShadow.Image = "rbxassetid://6014261993"
  222. DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  223. DropShadow.ImageTransparency = 0.500
  224. DropShadow.ScaleType = Enum.ScaleType.Slice
  225. DropShadow.SliceCenter = Rect.new(49, 49, 450, 450)
  226.  
  227. Title.Name = "Title"
  228. Title.Parent = Frame
  229. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230. Title.BackgroundTransparency = 1.000
  231. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  232. Title.BorderSizePixel = 0
  233. Title.Position = UDim2.new(0, 0, 7.06260792e-08, 0)
  234. Title.Size = UDim2.new(1, 0, 0.285141945, 0)
  235. Title.ZIndex = 7
  236. Title.Font = Enum.Font.GothamBold
  237. Title.Text = titlestring or "Script"
  238. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  239. Title.TextScaled = true
  240. Title.TextSize = 14.000
  241. Title.TextWrapped = true
  242.  
  243. ScriptCode.Name = "ScriptCode"
  244. ScriptCode.Parent = Frame
  245. ScriptCode.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  246. ScriptCode.BorderColor3 = Color3.fromRGB(0, 0, 0)
  247. ScriptCode.BorderSizePixel = 0
  248. ScriptCode.Position = UDim2.new(0.0329141393, 0, 0.388798267, 0)
  249. ScriptCode.Size = UDim2.new(0.925943196, 0, 0.285141945, 0)
  250. ScriptCode.ZIndex = 7
  251. ScriptCode.Font = Enum.Font.SourceSansBold
  252. ScriptCode.RichText = true
  253. ScriptCode.Text = createRich(tostring(script_link))
  254. ScriptCode.TextColor3 = Color3.fromRGB(255, 255, 255)
  255. ScriptCode.TextScaled = true
  256. ScriptCode.TextSize = 14.000
  257. ScriptCode.TextWrapped = true
  258. ScriptCode.TextXAlignment = Enum.TextXAlignment.Left
  259.  
  260. Copy.Name = "Copy"
  261. Copy.Parent = Frame
  262. Copy.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
  263. Copy.BorderColor3 = Color3.fromRGB(0, 0, 0)
  264. Copy.BorderSizePixel = 0
  265. Copy.Position = UDim2.new(0.0659999996, 0, 0.776000023, 0)
  266. Copy.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
  267. Copy.ZIndex = 7
  268. Copy.Font = Enum.Font.GothamBold
  269. Copy.Text = "Copy"
  270. Copy.TextColor3 = Color3.fromRGB(255, 255, 255)
  271. Copy.TextScaled = true
  272. Copy.TextSize = 14.000
  273. Copy.TextWrapped = true
  274.  
  275. UICorner_2.CornerRadius = UDim.new(0, 3)
  276. UICorner_2.Parent = Copy
  277.  
  278. Run.Name = "Run"
  279. Run.Parent = Frame
  280. Run.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
  281. Run.BorderColor3 = Color3.fromRGB(0, 0, 0)
  282. Run.BorderSizePixel = 0
  283. Run.Position = UDim2.new(0.600000024, 0, 0.776000023, 0)
  284. Run.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
  285. Run.ZIndex = 7
  286. Run.Font = Enum.Font.GothamBold
  287. Run.Text = "Run"
  288. Run.TextColor3 = Color3.fromRGB(255, 255, 255)
  289. Run.TextScaled = true
  290. Run.TextSize = 14.000
  291. Run.TextWrapped = true
  292.  
  293. UICorner_3.CornerRadius = UDim.new(0, 3)
  294. UICorner_3.Parent = Run
  295.  
  296. Copy.MouseButton1Click:Connect(function()
  297. local link = "-- script \n loadstring(game:HttpGet('"..tostring(script_link).."'))()"
  298. setclipboard(link)
  299. end)
  300.  
  301. Run.MouseButton1Click:Connect(function()
  302. loadstring(game:HttpGet(script_link))()
  303. if imd then
  304. imd:Remove()
  305. end
  306. end)
  307. end
  308. end
  309.  
  310. return imd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement