Advertisement
samuelgp10

SB;Admin StableMind

Aug 7th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. wait(2)
  2. print 'Admin Script Loaded'
  3. local admins = {"StableMind"}
  4. local bans = {}
  5. local prefix = ";"
  6. local KeyVals = {"ff","kill","AB","AS","AF","listp","unff","fire","jail","w50","wnor","pm1","spm1"}
  7.  
  8. for _,v in pairs (admins) do
  9. if game.Players:findFirstChild(v) then
  10. print"You are admin"
  11. game.Players.StableMind.Chatted:connect(function(message)
  12. local val = Instance.new("IntValue", game.Players.StableMind)
  13. local r = tostring(message)
  14. if message == prefix.."ff" then
  15. ff()
  16. elseif message == prefix.."kill" then
  17. kill()
  18. elseif message == prefix.."ab" then
  19. ab()
  20. elseif message == prefix.."listp" then
  21. listplayers()
  22. elseif message == prefix.."rlist" then
  23. rlist()
  24. elseif message == prefix.."unff" then
  25. unff()
  26. elseif message == prefix.."fire" then
  27. fire()
  28. elseif message == prefix.."jail" then
  29. jail()
  30. elseif message == prefix.."w50" then
  31. walkspeedup()
  32. elseif message == prefix.."wnor" then
  33. walkspeednor()
  34. elseif message == prefix.."pm1" then
  35. playm1()
  36. elseif message == prefix.."spm1" then
  37. stopm1()
  38. elseif message == prefix.."pm2" then
  39. playm2()
  40. elseif message == prefix.."spm2" then
  41. stopm2()
  42. elseif message == prefix.."w"..r then
  43. wval()
  44. end
  45. end)
  46.  
  47. end
  48. end
  49. function ff()
  50. Instance.new("ForceField", game.Players.StableMind.Character)
  51. end
  52.  
  53. function unff()
  54. local ff = game.Players.StableMind.Character.ForceField
  55. if ff ~= nil then
  56. ff:remove()
  57. else
  58. print 'Invalid Command'
  59. end
  60. end
  61.  
  62. function kill()
  63. game.Players.StableMind.Character.Humanoid.Health = 0
  64. end
  65.  
  66. function ab()
  67. print"Command not ready"
  68. end
  69.  
  70. function listplayers()
  71. local nup = game.Players.NumPlayers
  72. local allp = game.Players:GetChildren()
  73. local apgui = Instance.new("ScreenGui")
  74. apgui.Name = "List"
  75. apgui.Parent = game.Players.StableMind.PlayerGui
  76. local listf = Instance.new("ScrollingFrame")
  77. listf.Parent = apgui
  78. listf.CanvasSize = UDim2.new(0,0,2,0)
  79. listf.Position = UDim2.new(0, 400,0, 150)
  80. listf.Size = UDim2.new(0, 300,0, 230)
  81. listf.BackgroundTransparency = 0.4
  82. listf.BackgroundColor3 = Color3.new(0,0,0)
  83. listf.BorderColor3 = Color3.new(255,255,255)
  84. listf.BorderSizePixel = 2
  85. local textls = Instance.new("TextLabel")
  86. textls.Parent = listf
  87. textls.Size = UDim2.new(0, 200,0, 50)
  88. textls.Position = UDim2.new(0,20,0,50)
  89. textls.BackgroundTransparency = 1
  90. textls.FontSize = "Size18"
  91. textls.TextColor3 = Color3.new(255,255,255)
  92. textls.TextWrapped = true
  93. for i = 1, #allp do
  94. local n = allp[i].Name
  95. textls.Text = "Players; "..n..", "..n..", "..n..", "..n..""
  96. end
  97. local textln = Instance.new("TextLabel")
  98. textln.Parent = listf
  99. textln.Size = UDim2.new(0, 200,0, 50)
  100. textln.BackgroundTransparency = 1
  101. textln.FontSize = "Size18"
  102. textln.TextColor3 = Color3.new(255,255,255)
  103. textln.Text = "NumPlayer[s];["..nup.."]"
  104. end
  105.  
  106. function rlist()
  107. local list = game.Players.StableMind.PlayerGui:findFirstChild("List")
  108. if list ~= nil then
  109. list:remove()
  110. else
  111. print 'Invalid Command'
  112. end
  113.  
  114. function fire()
  115. Instance.new("Fire", game.Players.StableMind.Character.Torso)
  116. end
  117.  
  118. function jail()
  119. local mode = Instance.new("Model")
  120. local base = Instance.new("Part")
  121.  
  122. mode.Parent = game.Workspace
  123. base.Parent = mode
  124. base.Size = Vector3.new(12, 1, 12)
  125. base.Locked = true
  126. base.Anchored = true
  127. base.CFrame = CFrame.new(base.Position, Vector3.new(0,0.5,0))
  128. base.Touched:connect(function(hit)
  129. local r = hit.Parent:findFirstChild("Humanoid")
  130. if r ~= nil then
  131. hit.Parent.Humanoid.WalkSpeed = 0
  132. end
  133. end)
  134.  
  135. end
  136.  
  137. function walkspeedup()
  138. game.Players.StableMind.Character.Humanoid.WalkSpeed = 50
  139. end
  140.  
  141. function walkspeednor()
  142. game.Players.StableMind.Character.Humanoid.WalkSpeed = 16
  143. end
  144.  
  145. function playm1()
  146. local m = Instance.new("Sound")
  147. m.Parent = game.Workspace
  148. m.Name = "Song1"
  149. m.Looped = true
  150. m.Volume = 1
  151. m.SoundId = "rbxassetid://188438001"
  152. m:Play()
  153. end
  154.  
  155. function stopm1()
  156. local s = game.Workspace:findFirstChild("Song1")
  157. if s ~= nil then
  158. s:Pause()
  159. s:remove()
  160. end
  161. end
  162.  
  163. function playm2()
  164. local m = Instance.new("Sound")
  165. m.Parent = game.Workspace
  166. m.Name = "Song2"
  167. m.Looped = true
  168. m.Volume = 1
  169. m.SoundId = "rbxassetid://138259834"
  170. m:Play()
  171. end
  172.  
  173. function stopm2()
  174. local s = game.Workspace:findFirstChild("Song2")
  175. if s ~= nil then
  176. s:Pause()
  177. s:remove()
  178. end
  179. end
  180.  
  181. function wval()
  182. game.Players.StableMind.IntValue.Value = r
  183. game.Players.StableMind.Character.Humanoid.WalkSpeed = game.Players.StableMind.IntValue.Value
  184. end
  185.  
  186. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement