Advertisement
SWP360_Hacked

Control Gui

May 7th, 2018
12,440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. -- Made by SWP360_Hacked
  2.  
  3. -- Objects
  4. local player = game.Players.LocalPlayer
  5.  
  6. local ControlGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local PlayerUser = Instance.new("TextBox")
  10. local Credits = Instance.new("TextLabel")
  11.  
  12. -- Properties
  13.  
  14. ControlGui.Name = "ControlGui"
  15. ControlGui.Parent = player.PlayerGui
  16.  
  17. Frame.Parent = ControlGui
  18. Frame.Active = true
  19. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  20. Frame.BackgroundTransparency = 0.5
  21. Frame.Position = UDim2.new(0.26081425, 0, 0.313559324, 0)
  22. Frame.Size = UDim2.new(0, 376, 0, 198)
  23. Frame.Draggable = true
  24.  
  25. TextButton.Parent = Frame
  26. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  27. TextButton.BackgroundTransparency = 0.5
  28. TextButton.Position = UDim2.new(0.224734023, 0, 0.590909123, 0)
  29. TextButton.Size = UDim2.new(0, 206, 0, 50)
  30. TextButton.Font = Enum.Font.SourceSans
  31. TextButton.Text = "Control"
  32. TextButton.TextColor3 = Color3.new(1, 1, 1)
  33. TextButton.TextScaled = true
  34. TextButton.TextSize = 14
  35. TextButton.TextWrapped = true
  36. TextButton.MouseButton1Down:connect(function()
  37. TextButton.MouseButton1Down:connect(function()
  38. if TextButton.Text == "Control" then
  39. TextButton.Text = "UnControl"
  40. workspace[PlayerUser.Text].Humanoid.PlatformStand = true
  41. W1 = Instance.new("Weld",workspace)
  42. W1.Name = "Weld1"
  43. W1.Part0 = player.Character.Torso
  44. W1.Part1 = workspace[PlayerUser.Text].Torso
  45. W2 = Instance.new("Weld",workspace)
  46. W2.Name = "Weld2"
  47. W2.Part0 = player.Character.Head
  48. W2.Part1 = workspace[PlayerUser.Text].Head
  49. W3 = Instance.new("Weld",workspace)
  50. W3.Name = "Weld3"
  51. W3.Part0 = player.Character.HumanoidRootPart
  52. W3.Part1 = workspace[PlayerUser.Text].HumanoidRootPart
  53. W4 = Instance.new("Weld",workspace)
  54. W4.Name = "Weld4"
  55. W4.Part0 = player.Character["Left Arm"]
  56. W4.Part1 = workspace[PlayerUser.Text]["Left Arm"]
  57. W5 = Instance.new("Weld",workspace)
  58. W5.Name = "Weld5"
  59. W5.Part0 = player.Character["Left Leg"]
  60. W5.Part1 = workspace[PlayerUser.Text]["Left Leg"]
  61. W6 = Instance.new("Weld",workspace)
  62. W6.Name = "Weld6"
  63. W6.Part0 = player.Character["Right Arm"]
  64. W6.Part1 = workspace[PlayerUser.Text]["Right Arm"]
  65. W7 = Instance.new("Weld",workspace)
  66. W7.Name = "Weld7"
  67. W7.Part0 = player.Character["Right Leg"]
  68. W7.Part1 = workspace[PlayerUser.Text]["Right Leg"]
  69. for i,v in pairs(player.Character:GetChildren()) do
  70. if v.ClassName == "Part" then
  71. v.Transparency = 1
  72. end
  73. player.Character.HumanoidRootPart.Transparency = 1
  74. if v.ClassName == "Accessory" then
  75. v.Handle.Transparency = 1
  76. end
  77. player.Character.Humanoid.NameOcclusion = "NoOcclusion"
  78. end
  79. elseif TextButton.Text == "UnControl" then
  80. TextButton.Text = "Control"
  81. workspace[PlayerUser.Text].Humanoid.PlatformStand = false
  82. workspace.Weld1:Remove()
  83. workspace.Weld2:Remove()
  84. workspace.Weld3:Remove()
  85. workspace.Weld4:Remove()
  86. workspace.Weld5:Remove()
  87. workspace.Weld6:Remove()
  88. workspace.Weld7:Remove()
  89. for i,v in pairs(player.Character:GetChildren()) do
  90. if v.ClassName == "Part" then
  91. v.Transparency = 0
  92. end
  93. player.Character.HumanoidRootPart.Transparency = 1
  94. if v.ClassName == "Accessory" then
  95. v.Handle.Transparency = 0
  96. end
  97. player.Character.Humanoid.NameOcclusion = "OccludeAll"
  98. end
  99. end
  100. end)
  101.  
  102. end)
  103.  
  104. PlayerUser.Parent = Frame
  105. PlayerUser.BackgroundColor3 = Color3.new(0, 0, 0)
  106. PlayerUser.BackgroundTransparency = 0.5
  107. PlayerUser.Position = UDim2.new(0.039893616, 0, 0.12626262, 0)
  108. PlayerUser.Size = UDim2.new(0, 345, 0, 50)
  109. PlayerUser.Font = Enum.Font.SourceSans
  110. PlayerUser.Text = "Username"
  111. PlayerUser.TextColor3 = Color3.new(1, 1, 1)
  112. PlayerUser.TextScaled = true
  113. PlayerUser.TextSize = 14
  114. PlayerUser.TextWrapped = true
  115.  
  116. Credits.Name = "Credits"
  117. Credits.Parent = Frame
  118. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  119. Credits.BackgroundTransparency = 5
  120. Credits.Position = UDim2.new(0, 0, 0.843434334, 0)
  121. Credits.Size = UDim2.new(0, 376, 0, 31)
  122. Credits.Font = Enum.Font.SourceSans
  123. Credits.Text = "Made by: SWP360_Hacked"
  124. Credits.TextColor3 = Color3.new(1, 1, 1)
  125. Credits.TextScaled = true
  126. Credits.TextSize = 14
  127. Credits.TextWrapped = true
  128.  
  129.  
  130. ----- Warns -------
  131. warn("Made by: SWP360_Hacked")
  132. warn("Welcome to Control GUI, "..game:GetService("Players").LocalPlayer.Name.." Suh dude")
  133. warn("SWP360_Hacked made this not you...")
  134. warn("Do you know who sucks? "..game:GetService("Players").LocalPlayer.Name.." Yup you suck...")
  135. ----- End of warns-------
  136.  
  137. --------- Yourself Control--------
  138. TextButton.MouseButton1Down:connect(function()
  139. if PlayerUser.Text == game.Players.LocalPlayer.Name then
  140. Credits.Text = "You can't control yourself!"
  141. wait(2)
  142. Credits.Text = "You will break the GUI if you continue!"
  143. TextButton.Active = false
  144. ControlGui:Remove()
  145. wait(5)
  146. Credits.Text = "Made by: SWP360_Hacked"
  147. TextButton.Active = true
  148. else
  149. wait()
  150. end
  151. end)
  152.  
  153.  
  154.  
  155. ---------- Not done yet... -------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement