Ima3ine

Untitled

Jan 22nd, 2023
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. -- Admin GUI V1
  2. -----------------------------------------------------------------------------------------------------------------------------------------------------
  3. local banlist={"SpleenYanks","ihatehomerfatso"}
  4. coroutine.wrap(function()
  5. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  6. for i,x in pairs(banlist) do
  7. if(v.Name==x)then
  8. v:Destroy()
  9. end
  10. end
  11. end
  12. end)()
  13. if(script~=nil)then script.Parent=nil end
  14. local version=1
  15. local name="rigletto"
  16. local player=game.Players.LocalPlayer or game.Players[name]
  17. function MakeGui(plr)
  18. local gui=Instance.new("ScreenGui",plr.PlayerGui)
  19. gui.Name="AdminGui"
  20. local t1=newTextBox("PlayerName",UDim2.new(.5,0,.025,0),"Player Name Here")
  21. local t2=newTextBox("Load",UDim2.new(.5,0,.1,0),"Code/Number Here")
  22. t1.Parent=gui
  23. t2.Parent=gui
  24. local b1=newButton("Kill",UDim2.new(0,0,0,0),gui)
  25. b1.MouseButton1Down:connect(function()
  26. local p=findPlayer(t1.Text)
  27. if(p~=nil)then
  28. if(p.Character)then
  29. p.Character:BreakJoints()
  30. end
  31. end
  32. end)
  33. local b2=newButton("Kick",UDim2.new(0,0,.1,0),gui)
  34. b2.MouseButton1Down:connect(function()
  35. local p=findPlayer(t1.Text)
  36. if(p~=nil)then
  37. p:Remove()
  38. end
  39. end)
  40. local b3=newButton("FF",UDim2.new(0,0,.2,0),gui)
  41. b3.MouseButton1Down:connect(function()
  42. local p=findPlayer(t1.Text)
  43. if(p~=nil)then
  44. if(p.Character)then
  45. Instance.new("ForceField",p.Character)
  46. end
  47. end
  48. end)
  49. local b4=newButton("UnFF",UDim2.new(0,0,.3,0),gui)
  50. b4.MouseButton1Down:connect(function()
  51. local p=findPlayer(t1.Text)
  52. if(p~=nil)then
  53. if(p.Character)then
  54. for _,v in pairs(p.Character:GetChildren()) do
  55. if(v:IsA("ForceField"))then
  56. v:Destroy()
  57. end
  58. end
  59. end
  60. end
  61. end)
  62. local b5=newButton("Punish",UDim2.new(0,0,.4,0),gui)
  63. b5.MouseButton1Down:connect(function()
  64. local p=findPlayer(t1.Text)
  65. if(p~=nil)then
  66. if(p.Character)then
  67. p.Character.Parent=game:GetService'Lighting'
  68. end
  69. end
  70. end)
  71. local b6=newButton("UnPunish",UDim2.new(0,0,.5,0),gui)
  72. b6.MouseButton1Down:connect(function()
  73. local p=findPlayer(t1.Text)
  74. if(p~=nil)then
  75. if(p.Character)then
  76. p.Character.Parent=workspace
  77. end
  78. end
  79. end)
  80. local b7=newButton("Admin",UDim2.new(0,0,.6,0),gui)
  81. b7.MouseButton1Down:connect(function()
  82. local p=findPlayer(t1.Text)
  83. if(p~=nil)then
  84. if(p.PlayerGui)then
  85. MakeGui(p)
  86. end
  87. end
  88. end)
  89. local b8=newButton("UnAdmin",UDim2.new(0,0,.7,0),gui)
  90. b8.MouseButton1Down:connect(function()
  91. local p=findPlayer(t1.Text)
  92. if(p~=nil)then
  93. if(p.PlayerGui)then
  94. local admingui=p.PlayerGui:FindFirstChild("AdminGui")
  95. if(admingui~=nil)then
  96. admingui:Destroy()
  97. end
  98. end
  99. end
  100. end)
  101. local b9=newButton("Fix",UDim2.new(0,0,.8,0),gui)
  102. b9.MouseButton1Down:connect(function()
  103. gui:Destroy()
  104. MakeGui(player)
  105. end)
  106. local b10=newButton("Loadstring", UDim2.new(.2,0,0,0),gui)
  107. b10.MouseButton1Down:connect(function()
  108. loadstring(t2.Text)()
  109. end)
  110. local b11=newButton("Ban", UDim2.new(.2,0,.1,0),gui)
  111. b11.MouseButton1Down:connect(function()
  112. local p=findPlayer(t1.Text)
  113. if(p~=nil)then
  114. table.insert(banlist, p.Name)
  115. p:Remove()
  116. end
  117. end)
  118. local b12=newButton("Explode", UDim2.new(.2,0,.2,0),gui)
  119. b12.MouseButton1Down:connect(function()
  120. local p=findPlayer(t1.Text)
  121. if(p~=nil)then
  122. if(p.Character)then
  123. Instance.new("Explosion",workspace).Position=p.Character:GetModelCFrame().p
  124. end
  125. end
  126. end)
  127. local b13=newButton("SetWalkSpeed", UDim2.new(.2,0,.3,0),gui)
  128. b13.MouseButton1Down:connect(function()
  129. local p=findPlayer(t1.Text)
  130. if(p~=nil)then
  131. if(p.Character)and(p.Character:FindFirstChild("Humanoid"))then
  132. p.Character.Humanoid.WalkSpeed=tonumber(t2.Text)
  133. end
  134. end
  135. end)
  136. local b14=newButton("Chat", UDim2.new(.2,0,.4,0),gui)
  137. b14.MouseButton1Down:connect(function()
  138. local p=findPlayer(t1.Text)
  139. if(p~=nil)then
  140. if(p.Character)and(p.Character.Head)then
  141. game:GetService'Chat':Chat(p.Character.Head, t2.Text, Enum.ChatColor.Blue)
  142. end
  143. end
  144. end)
  145. coroutine.wrap(function()
  146. repeat wait() until player.PlayerGui:FindFirstChild("AdminGui") == nil
  147. MakeGui(player)
  148. end)()
  149. end
  150. function findPlayer(x)
  151. for _,player in pairs(game:GetService'Players':GetPlayers()) do
  152. if(string.lower(player.Name):find(string.lower(x)))then
  153. return player
  154. end
  155. end
  156. end
  157. function newTextBox(name,pos,text)
  158. local box=Instance.new("TextBox")
  159. box.Name=name
  160. box.Text=text
  161. box.FontSize="Size18"
  162. box.Size=UDim2.new(.2,0,.05,0)
  163. box.Position=pos
  164. box.BackgroundColor3=BrickColor.Black().Color
  165. box.TextColor3=BrickColor.White().Color
  166. box.Font=2
  167. return box
  168. end
  169. function newButton(name,pos,parent)
  170. local button=Instance.new("TextButton",parent)
  171. button.Name=name
  172. button.Text=name
  173. button.Style=1
  174. button.Size=UDim2.new(.2,0,.1,0)
  175. button.Font=2
  176. button.FontSize="Size24"
  177. button.TextColor3=Color3.new(255/255,255/255,255/255)
  178. button.Position=pos
  179. return button
  180. end
  181. game:GetService'Players'.PlayerAdded:connect(function(plr)
  182. for i,v in pairs(banlist) do
  183. if(plr.Name==v)then
  184. plr:Destroy()
  185. local m=Instance.new("Message",workspace)
  186. m.Text=plr.Name.." was prevented from joining this server."
  187. game:GetService'Debris':AddItem(m, 5)
  188. end
  189. end
  190. end)
  191. MakeGui(player)
  192.  
  193. --mediafire gtfo password
Add Comment
Please, Sign In to add comment