Advertisement
Guest User

IceHub

a guest
Dec 7th, 2022
623
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 1 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local IceHub = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local Title = Instance.new("Frame")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local Frame_2 = Instance.new("Frame")
  12. local TextLabel = Instance.new("TextLabel")
  13. local ImageLabel = Instance.new("ImageLabel")
  14. local TextLabel_2 = Instance.new("TextLabel")
  15. local Frame_3 = Instance.new("Frame")
  16. local Frame_4 = Instance.new("Frame")
  17. local Frame_5 = Instance.new("Frame")
  18. local TextLabel_3 = Instance.new("TextLabel")
  19. local TextLabel_4 = Instance.new("TextLabel")
  20.  
  21. --Properties:
  22.  
  23. IceHub.Name = "IceHub"
  24. IceHub.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  25. IceHub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26.  
  27. Frame.Parent = IceHub
  28. Frame.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  29. Frame.Position = UDim2.new(0.383322954, 0, 0.374064833, 0)
  30. Frame.Size = UDim2.new(0, 375, 0, 202)
  31.  
  32. UICorner.CornerRadius = UDim.new(0.150000006, 0)
  33. UICorner.Parent = Frame
  34.  
  35. Title.Name = "Title"
  36. Title.Parent = Frame
  37. Title.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  38. Title.Size = UDim2.new(0, 375, 0, 44)
  39.  
  40. UICorner_2.CornerRadius = UDim.new(0.5, 0)
  41. UICorner_2.Parent = Title
  42.  
  43. Frame_2.Parent = Title
  44. Frame_2.BackgroundColor3 = Color3.fromRGB(14, 221, 214)
  45. Frame_2.BorderColor3 = Color3.fromRGB(170, 255, 255)
  46. Frame_2.Position = UDim2.new(0.0213333331, 0, 0.840909064, 0)
  47. Frame_2.Size = UDim2.new(0, 359, 0, 1)
  48.  
  49. TextLabel.Parent = Title
  50. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. TextLabel.BackgroundTransparency = 1.000
  52. TextLabel.Position = UDim2.new(0.0213333331, 0, 0, 0)
  53. TextLabel.Size = UDim2.new(0, 182, 0, 38)
  54. TextLabel.Font = Enum.Font.FredokaOne
  55. TextLabel.Text = "IceHub"
  56. TextLabel.TextColor3 = Color3.fromRGB(164, 246, 246)
  57. TextLabel.TextScaled = true
  58. TextLabel.TextSize = 14.000
  59. TextLabel.TextWrapped = true
  60.  
  61. ImageLabel.Parent = Title
  62. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. ImageLabel.BackgroundTransparency = 1.000
  64. ImageLabel.Position = UDim2.new(0.0213333331, 0, 0.0909090936, 0)
  65. ImageLabel.Size = UDim2.new(0, 32, 0, 30)
  66. ImageLabel.Image = "http://www.roblox.com/asset/?id=6169034516"
  67.  
  68. TextLabel_2.Parent = Title
  69. TextLabel_2.BackgroundColor3 = Color3.fromRGB(154, 231, 231)
  70. TextLabel_2.BackgroundTransparency = 1.000
  71. TextLabel_2.Position = UDim2.new(0.418666691, 0, 0.272727281, 0)
  72. TextLabel_2.Size = UDim2.new(0, 192, 0, 19)
  73. TextLabel_2.Font = Enum.Font.FredokaOne
  74. TextLabel_2.Text = "HOOD MODDED SCRIPTING ™"
  75. TextLabel_2.TextColor3 = Color3.fromRGB(152, 228, 228)
  76. TextLabel_2.TextScaled = true
  77. TextLabel_2.TextSize = 14.000
  78. TextLabel_2.TextWrapped = true
  79.  
  80. Frame_3.Parent = Title
  81. Frame_3.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  82. Frame_3.BorderSizePixel = 0
  83. Frame_3.Position = UDim2.new(0, 0, 0.431818187, 0)
  84. Frame_3.Size = UDim2.new(0, 374, 0, 25)
  85. Frame_3.ZIndex = 0
  86.  
  87. Frame_4.Parent = Title
  88. Frame_4.BackgroundColor3 = Color3.fromRGB(14, 221, 214)
  89. Frame_4.BorderColor3 = Color3.fromRGB(170, 255, 255)
  90. Frame_4.Position = UDim2.new(0.0213333331, 0, 0.840909064, 0)
  91. Frame_4.Size = UDim2.new(0, 359, 0, 1)
  92.  
  93. Frame_5.Parent = Title
  94. Frame_5.BackgroundColor3 = Color3.fromRGB(14, 221, 214)
  95. Frame_5.BorderColor3 = Color3.fromRGB(170, 255, 255)
  96. Frame_5.Position = UDim2.new(0.0213333331, 0, 3.27272725, 0)
  97. Frame_5.Size = UDim2.new(0, 359, 0, 1)
  98.  
  99. TextLabel_3.Parent = Title
  100. TextLabel_3.BackgroundColor3 = Color3.fromRGB(154, 231, 231)
  101. TextLabel_3.BackgroundTransparency = 1.000
  102. TextLabel_3.Position = UDim2.new(0.0586666651, 0, 3.47727275, 0)
  103. TextLabel_3.Size = UDim2.new(0, 327, 0, 35)
  104. TextLabel_3.Font = Enum.Font.FredokaOne
  105. TextLabel_3.Text = "https://discord.gg/RcfEnktbUM"
  106. TextLabel_3.TextColor3 = Color3.fromRGB(152, 228, 228)
  107. TextLabel_3.TextScaled = true
  108. TextLabel_3.TextSize = 14.000
  109. TextLabel_3.TextWrapped = true
  110.  
  111. TextLabel_4.Parent = Frame
  112. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. TextLabel_4.BackgroundTransparency = 1.000
  114. TextLabel_4.Position = UDim2.new(0.0879999921, 0, 0.217821777, 0)
  115. TextLabel_4.Size = UDim2.new(0, 308, 0, 88)
  116. TextLabel_4.Font = Enum.Font.FredokaOne
  117. TextLabel_4.Text = "Join the Discord to get Full Acces to the Script"
  118. TextLabel_4.TextColor3 = Color3.fromRGB(164, 246, 246)
  119. TextLabel_4.TextScaled = true
  120. TextLabel_4.TextSize = 14.000
  121. TextLabel_4.TextWrapped = true
  122.  
  123. -- Scripts:
  124.  
  125. local function ENUILS_fake_script() -- Frame.LocalScript
  126. local script = Instance.new('LocalScript', Frame)
  127.  
  128. local UIS = game:GetService('UserInputService')
  129. local frame = script.Parent
  130. local dragToggle = nil
  131. local dragSpeed = 0.25
  132. local dragStart = nil
  133. local startPos = nil
  134.  
  135. local function updateInput(input)
  136. local delta = input.Position - dragStart
  137. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  138. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  139. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  140. end
  141.  
  142. frame.InputBegan:Connect(function(input)
  143. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  144. dragToggle = true
  145. dragStart = input.Position
  146. startPos = frame.Position
  147. input.Changed:Connect(function()
  148. if input.UserInputState == Enum.UserInputState.End then
  149. dragToggle = false
  150. end
  151. end)
  152. end
  153. end)
  154.  
  155. UIS.InputChanged:Connect(function(input)
  156. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  157. if dragToggle then
  158. updateInput(input)
  159. end
  160. end
  161. end)
  162.  
  163. end
  164. coroutine.wrap(ENUILS_fake_script)()
  165.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement