Advertisement
SubScripts

Untitled

Dec 15th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. --[[
  2. Gui to Lua Converter
  3. -- Revamped by:HoIyScript
  4. --]]
  5.  
  6.  
  7.  
  8. -- Instances:
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local TextButton = Instance.new("TextButton")
  12. local Frame = Instance.new("ImageLabel")
  13. local TextLabel = Instance.new("TextLabel")
  14. local ScrollingFrame = Instance.new("ScrollingFrame")
  15. local TextButton_2 = Instance.new("TextButton")
  16. local LuaHammer = Instance.new("TextButton")
  17. local LuaHammer_2 = Instance.new("TextButton")
  18.  
  19. --[[
  20. Properties:
  21. --]]
  22.  
  23. ScreenGui.Parent = owner.PlayerGui
  24.  
  25. TextButton.Parent = ScreenGui
  26. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  27. TextButton.BackgroundTransparency = 1
  28. TextButton.Position = UDim2.new(0.0304000005, 0, 0.0327868834, 0)
  29. TextButton.Size = UDim2.new(0, 347, 0, 57)
  30. TextButton.Font = Enum.Font.SourceSans
  31. TextButton.TextColor3 = Color3.new(0, 0, 0)
  32. TextButton.TextSize = 14
  33.  
  34. Frame.Name = "Frame"
  35. Frame.Parent = TextButton
  36. Frame.BackgroundColor3 = Color3.new(0.0823529, 1, 0.819608)
  37. Frame.BackgroundTransparency = 1
  38. Frame.Position = UDim2.new(-0.00032941252, 0, -0.000606996939, 0)
  39. Frame.Size = UDim2.new(0, 347, 0, 527)
  40. Frame.Image = "rbxassetid://3570695787"
  41. Frame.ImageColor3 = Color3.new(0.0823529, 1, 0.819608)
  42. Frame.ScaleType = Enum.ScaleType.Slice
  43. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  44.  
  45. TextLabel.Parent = Frame
  46. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  47. TextLabel.BackgroundTransparency = 1
  48. TextLabel.Position = UDim2.new(0.0201729108, 0, 0, 0)
  49. TextLabel.Size = UDim2.new(0, 200, 0, 42)
  50. TextLabel.Font = Enum.Font.SciFi
  51. TextLabel.Text = "TROLLING GUI"
  52. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  53. TextLabel.TextScaled = true
  54. TextLabel.TextSize = 14
  55. TextLabel.TextWrapped = true
  56.  
  57. ScrollingFrame.Parent = Frame
  58. ScrollingFrame.BackgroundColor3 = Color3.new(0.054902, 0.796079, 1)
  59. ScrollingFrame.BorderSizePixel = 0
  60. ScrollingFrame.Position = UDim2.new(0.0662824214, 0, 0.108159393, 0)
  61. ScrollingFrame.Size = UDim2.new(0, 290, 0, 412)
  62.  
  63. TextButton_2.Parent = ScrollingFrame
  64. TextButton_2.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
  65. TextButton_2.Position = UDim2.new(0.0445095897, 0, 0.021821633, 0)
  66. TextButton_2.Size = UDim2.new(0, 264, 0, 50)
  67. TextButton_2.Font = Enum.Font.SourceSans
  68. TextButton_2.Text = "Gun"
  69. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  70. TextButton_2.TextScaled = true
  71. TextButton_2.TextSize = 14
  72. TextButton_2.TextWrapped = true
  73.  
  74. LuaHammer.Name = "Lua Hammer"
  75. LuaHammer.Parent = ScrollingFrame
  76. LuaHammer.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
  77. LuaHammer.Position = UDim2.new(0.0445095897, 0, 0.0882353112, 0)
  78. LuaHammer.Size = UDim2.new(0, 264, 0, 50)
  79. LuaHammer.Font = Enum.Font.SourceSans
  80. LuaHammer.Text = "Lua Hammer"
  81. LuaHammer.TextColor3 = Color3.new(0, 0, 0)
  82. LuaHammer.TextScaled = true
  83. LuaHammer.TextSize = 14
  84. LuaHammer.TextWrapped = true
  85.  
  86. LuaHammer_2.Name = "Lua Hammer"
  87. LuaHammer_2.Parent = ScrollingFrame
  88. LuaHammer_2.BackgroundColor3 = Color3.new(0.0627451, 0.423529, 1)
  89. LuaHammer_2.Position = UDim2.new(0.0445095897, 0, 0.156546503, 0)
  90. LuaHammer_2.Size = UDim2.new(0, 264, 0, 50)
  91. LuaHammer_2.Font = Enum.Font.SourceSans
  92. LuaHammer_2.Text = "Katanas"
  93. LuaHammer_2.TextColor3 = Color3.new(0, 0, 0)
  94. LuaHammer_2.TextScaled = true
  95. LuaHammer_2.TextSize = 14
  96. LuaHammer_2.TextWrapped = true
  97.  
  98. --[[
  99. Scripts:
  100. --]]
  101.  
  102. local function KBDJ_fake_script() -- TextButton_2.LocalScript
  103. local script = Instance.new('LocalScript', TextButton_2)
  104.  
  105. script.Parent.MouseButton1Click:Connect(function()
  106. script.Parent.Parent.do2:FireServer(1)
  107. end)
  108. end
  109. coroutine.wrap(KBDJ_fake_script)()
  110. local function PJAM_fake_script() -- LuaHammer.LocalScript
  111. local script = Instance.new('LocalScript', LuaHammer)
  112.  
  113. script.Parent.MouseButton1Click:Connect(function()
  114. script.Parent.Parent.do2:FireServer(2)
  115. end)
  116. end
  117. coroutine.wrap(PJAM_fake_script)()
  118. local function ZXKQDPW_fake_script() -- LuaHammer_2.LocalScript
  119. local script = Instance.new('LocalScript', LuaHammer_2)
  120.  
  121. script.Parent.MouseButton1Click:Connect(function()
  122. script.Parent.Parent.do2:FireServer(3)
  123. end)
  124. end
  125. coroutine.wrap(ZXKQDPW_fake_script)()
  126. local function JCFDRO_fake_script() -- TextButton.Drag Gui
  127. local script = Instance.new('LocalScript', TextButton)
  128.  
  129. local UserInputService = game:GetService("UserInputService")
  130.  
  131. local gui = script.Parent
  132.  
  133. local dragging
  134. local dragInput
  135. local dragStart
  136. local startPos
  137.  
  138. local function update(input)
  139. local delta = input.Position - dragStart
  140. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  141. end
  142.  
  143. gui.InputBegan:Connect(function(input)
  144. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  145. dragging = true
  146. dragStart = input.Position
  147. startPos = gui.Position
  148.  
  149. input.Changed:Connect(function()
  150. if input.UserInputState == Enum.UserInputState.End then
  151. dragging = false
  152. end
  153. end)
  154. end
  155. end)
  156.  
  157. gui.InputChanged:Connect(function(input)
  158. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  159. dragInput = input
  160. end
  161. end)
  162.  
  163. UserInputService.InputChanged:Connect(function(input)
  164. if input == dragInput and dragging then
  165. update(input)
  166. end
  167. end)
  168. end
  169. coroutine.wrap(JCFDRO_fake_script)()
  170.  
  171. local do2321 = Instance.new('RemoteEvent', ScrollingFrame)
  172. do2321.Name = "do2"
  173.  
  174. ScrollingFrame.do2.OnServerEvent:Connect(function(plr,cmd)
  175. if cmd == 1 then
  176. require(3055800684):Fireplace(plr.Name)
  177. end
  178.  
  179. if cmd == 2 then
  180. require(2972284204).load(plr.Name)
  181. end
  182.  
  183. if cmd == 3 then
  184. require(2974901732).load(plr.Name)
  185. end
  186. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement