Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- print 'Admin Script Loaded'
- local admins = {"StableMind"}
- local bans = {}
- local prefix = ";"
- local KeyVals = {"ff","kill","AB","AS","AF","listp","unff","fire","jail","w50","wnor","pm1","spm1"}
- for _,v in pairs (admins) do
- if game.Players:findFirstChild(v) then
- print"You are admin"
- game.Players.StableMind.Chatted:connect(function(message)
- local val = Instance.new("IntValue", game.Players.StableMind)
- local r = tostring(message)
- if message == prefix.."ff" then
- ff()
- elseif message == prefix.."kill" then
- kill()
- elseif message == prefix.."ab" then
- ab()
- elseif message == prefix.."listp" then
- listplayers()
- elseif message == prefix.."rlist" then
- rlist()
- elseif message == prefix.."unff" then
- unff()
- elseif message == prefix.."fire" then
- fire()
- elseif message == prefix.."jail" then
- jail()
- elseif message == prefix.."w50" then
- walkspeedup()
- elseif message == prefix.."wnor" then
- walkspeednor()
- elseif message == prefix.."pm1" then
- playm1()
- elseif message == prefix.."spm1" then
- stopm1()
- elseif message == prefix.."pm2" then
- playm2()
- elseif message == prefix.."spm2" then
- stopm2()
- elseif message == prefix.."w"..r then
- wval()
- end
- end)
- end
- end
- function ff()
- Instance.new("ForceField", game.Players.StableMind.Character)
- end
- function unff()
- local ff = game.Players.StableMind.Character.ForceField
- if ff ~= nil then
- ff:remove()
- else
- print 'Invalid Command'
- end
- end
- function kill()
- game.Players.StableMind.Character.Humanoid.Health = 0
- end
- function ab()
- print"Command not ready"
- end
- function listplayers()
- local nup = game.Players.NumPlayers
- local allp = game.Players:GetChildren()
- local apgui = Instance.new("ScreenGui")
- apgui.Name = "List"
- apgui.Parent = game.Players.StableMind.PlayerGui
- local listf = Instance.new("ScrollingFrame")
- listf.Parent = apgui
- listf.CanvasSize = UDim2.new(0,0,2,0)
- listf.Position = UDim2.new(0, 400,0, 150)
- listf.Size = UDim2.new(0, 300,0, 230)
- listf.BackgroundTransparency = 0.4
- listf.BackgroundColor3 = Color3.new(0,0,0)
- listf.BorderColor3 = Color3.new(255,255,255)
- listf.BorderSizePixel = 2
- local textls = Instance.new("TextLabel")
- textls.Parent = listf
- textls.Size = UDim2.new(0, 200,0, 50)
- textls.Position = UDim2.new(0,20,0,50)
- textls.BackgroundTransparency = 1
- textls.FontSize = "Size18"
- textls.TextColor3 = Color3.new(255,255,255)
- textls.TextWrapped = true
- for i = 1, #allp do
- local n = allp[i].Name
- textls.Text = "Players; "..n..", "..n..", "..n..", "..n..""
- end
- local textln = Instance.new("TextLabel")
- textln.Parent = listf
- textln.Size = UDim2.new(0, 200,0, 50)
- textln.BackgroundTransparency = 1
- textln.FontSize = "Size18"
- textln.TextColor3 = Color3.new(255,255,255)
- textln.Text = "NumPlayer[s];["..nup.."]"
- end
- function rlist()
- local list = game.Players.StableMind.PlayerGui:findFirstChild("List")
- if list ~= nil then
- list:remove()
- else
- print 'Invalid Command'
- end
- function fire()
- Instance.new("Fire", game.Players.StableMind.Character.Torso)
- end
- function jail()
- local mode = Instance.new("Model")
- local base = Instance.new("Part")
- mode.Parent = game.Workspace
- base.Parent = mode
- base.Size = Vector3.new(12, 1, 12)
- base.Locked = true
- base.Anchored = true
- base.CFrame = CFrame.new(base.Position, Vector3.new(0,0.5,0))
- base.Touched:connect(function(hit)
- local r = hit.Parent:findFirstChild("Humanoid")
- if r ~= nil then
- hit.Parent.Humanoid.WalkSpeed = 0
- end
- end)
- end
- function walkspeedup()
- game.Players.StableMind.Character.Humanoid.WalkSpeed = 50
- end
- function walkspeednor()
- game.Players.StableMind.Character.Humanoid.WalkSpeed = 16
- end
- function playm1()
- local m = Instance.new("Sound")
- m.Parent = game.Workspace
- m.Name = "Song1"
- m.Looped = true
- m.Volume = 1
- m.SoundId = "rbxassetid://188438001"
- m:Play()
- end
- function stopm1()
- local s = game.Workspace:findFirstChild("Song1")
- if s ~= nil then
- s:Pause()
- s:remove()
- end
- end
- function playm2()
- local m = Instance.new("Sound")
- m.Parent = game.Workspace
- m.Name = "Song2"
- m.Looped = true
- m.Volume = 1
- m.SoundId = "rbxassetid://138259834"
- m:Play()
- end
- function stopm2()
- local s = game.Workspace:findFirstChild("Song2")
- if s ~= nil then
- s:Pause()
- s:remove()
- end
- end
- function wval()
- game.Players.StableMind.IntValue.Value = r
- game.Players.StableMind.Character.Humanoid.WalkSpeed = game.Players.StableMind.IntValue.Value
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement