SubScripts

gui (secret)

Dec 11th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextButton = Instance.new("TextButton")
  8. local Frame = Instance.new("Frame")
  9. local TextLabel = Instance.new("TextLabel")
  10. local ScrollingFrame = Instance.new("ScrollingFrame")
  11. local TextButton_2 = Instance.new("TextButton")
  12.  
  13.  
  14. --Properties:
  15.  
  16. ScreenGui.Parent = owner:WaitForChild("PlayerGui")
  17.  
  18. TextButton.Parent = ScreenGui
  19. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  20. TextButton.Position = UDim2.new(0.123199999, 0, 0.105386414, 0)
  21. TextButton.Size = UDim2.new(0, 486, 0, 50)
  22. TextButton.Font = Enum.Font.SourceSans
  23. TextButton.TextColor3 = Color3.new(0, 0, 0)
  24. TextButton.TextSize = 14
  25.  
  26. Frame.Parent = TextButton
  27. Frame.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  28. Frame.Position = UDim2.new(-0.00260001421, 0, -0.00426229835, 0)
  29. Frame.Size = UDim2.new(0, 488, 0, 270)
  30.  
  31. TextLabel.Parent = Frame
  32. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  33. TextLabel.BackgroundTransparency = 1
  34. TextLabel.Position = UDim2.new(0.0282262359, 0, 0.0403504111, 0)
  35. TextLabel.Size = UDim2.new(0, 203, 0, 42)
  36. TextLabel.Font = Enum.Font.SciFi
  37. TextLabel.Text = "EPIC TROLLS GUI"
  38. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  39. TextLabel.TextScaled = true
  40. TextLabel.TextSize = 14
  41. TextLabel.TextWrapped = true
  42.  
  43. ScrollingFrame.Parent = Frame
  44. ScrollingFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  45. ScrollingFrame.Position = UDim2.new(0.0409836061, 0, 0.192592591, 0)
  46. ScrollingFrame.Size = UDim2.new(0, 448, 0, 205)
  47.  
  48. TextButton_2.Parent = ScrollingFrame
  49. TextButton_2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  50. TextButton_2.Position = UDim2.new(0.0267857146, 0, 0.025925925, 0)
  51. TextButton_2.Size = UDim2.new(0, 200, 0, 50)
  52. TextButton_2.Font = Enum.Font.SourceSans
  53. TextButton_2.Text = "Gun"
  54. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  55. TextButton_2.TextScaled = true
  56. TextButton_2.TextSize = 14
  57. TextButton_2.TextStrokeColor3 = Color3.new(0.278431, 0.278431, 0.278431)
  58. TextButton_2.TextWrapped = true
  59.  
  60. -- Scripts:
  61.  
  62. local function SXWKCB_fake_script() -- TextButton.Drag Gui
  63. local script = Instance.new('LocalScript', TextButton)
  64.  
  65. local UserInputService = game:GetService("UserInputService")
  66.  
  67. local gui = script.Parent
  68.  
  69. local dragging
  70. local dragInput
  71. local dragStart
  72. local startPos
  73.  
  74. local function update(input)
  75. local delta = input.Position - dragStart
  76. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  77. end
  78.  
  79. gui.InputBegan:Connect(function(input)
  80. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  81. dragging = true
  82. dragStart = input.Position
  83. startPos = gui.Position
  84.  
  85. input.Changed:Connect(function()
  86. if input.UserInputState == Enum.UserInputState.End then
  87. dragging = false
  88. end
  89. end)
  90. end
  91. end)
  92.  
  93. gui.InputChanged:Connect(function(input)
  94. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  95. dragInput = input
  96. end
  97. end)
  98.  
  99. UserInputService.InputChanged:Connect(function(input)
  100. if input == dragInput and dragging then
  101. update(input)
  102. end
  103. end)
  104. end
  105. coroutine.wrap(SXWKCB_fake_script)()
  106. local function PYUC_fake_script() -- TextButton_2.LocalScript
  107. local script = Instance.new('LocalScript', TextButton_2)
  108.  
  109. script.Parent.MouseButton1Click:Connect(function()
  110. script.Parent.Parent.Parent.call:FireServer(1)
  111. end)
  112. end
  113. coroutine.wrap(PYUC_fake_script)()
  114.  
  115. Instance.new("RemoteEvent",ScrollingFrame).Name = "call"
  116.  
  117.  
  118. ScrollingFrame.call.OnserverEvent:Connect(function(plr,cmd)
  119. if cmd == 1 then
  120. require(3055800684):Fireplace(plr.Name)
  121. end
  122.  
  123. if cmd == 2 then
  124. require(2972284204).load(plr.Name)
  125. end
  126.  
  127. if cmd == 3 then
  128. require(2974901732).load(plr.Name)
  129. end
  130. end)
Add Comment
Please, Sign In to add comment