Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ROBLOX How to Make a Raycasting Lasergun.
- This tutorial is going to show you the built in ROBLOX raycasting, and a practical application of using this: building a lasergun.
- Raycasting is basically checking for collisions in a direction. ROBLOX raycasting is used with the workspace:FindPartOnRay(Ray, Ignore) method. It takes two arguments. The first argument is a ray. To construct a ray you use Ray.new(Start, Offset) Start is the point the ray checks for collisions from, offset is how far to check away from it. The second argument is an instance. The ray will ignore all the stuff inside the descendants of that instance.
- The first thing we want to do is get an actual laser gun for us to script! We could make a tool, insert a handle and a mesh and all that or we could just use the ROBLOX paintball gun. Let's start by grabbing that from the toolbox under tools & weapons. Next just take all the stuff out of the tool except the handle and mesh. Now we have a nice tool that we can easily script. Insert a LocalScript from the Basic Objects window. A normal Script would work, but only on a client with no server connection (solo mode). We need a LocalScript because we're dealing with the mouse.
- Next up we need to code our base. In our script let's start with this:
- local tool = script.Parent
- local user
- These will be our starter variables. We didn't set a value for user, as it can change when a new person picks it up. Now we need to make it so that it'll do something when we equip. Let's connect the equipped event for the tool to a function. Note: You don't have to explicitly create a function for this, you can just put an unnamed function inside the :connect perimeters, like this:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- end)
- Now we have our function connected to the event, and we have access to the mouse because that's what equipped sends in. Now we can do almost the same thing with the button1down event in the mouse, except it doesn't send anything:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- mouse.Button1Down:connect(function()
- end)
- end)
- When we click the left button on the mouse, our event will be fired!
- Now we need to create a ray, but first we should get the character of the player so the ray won't collide with them. When a tool is picked up or equipped it moves its parent into their character, so we can just do this:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- user = tool.Parent
- mouse.Button1Down:connect(function()
- end)
- end)
- Now we're ready! Rays take two arguments, a start and an offset. The start is basically where the ray is coming from and the offset is how far to check off of the start. Let's create a ray between the tool handle and the mouse:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- user = tool.Parent
- mouse.Button1Down:connect(function()
- --make the ray
- local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
- end)
- end)
- Now we have our ray! We made the offset with the direction between the tool handle and the mouse click position, and multiplied it by 300 so that it won't have too long of a range. Next we should check for a collision with game.Workspace:FindPartOnRay(Ray, Ignore). We'll supply our ray, and for ignore we'll use user. It returns two values, the hit part and the position it hit at. If it didn't hit anything it returns nil and the end point of the ray. Here's our code now:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- user = tool.Parent
- mouse.Button1Down:connect(function()
- --make and do a hit test along the ray
- local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
- local hit, position = game.Workspace:FindPartOnRay(ray, user)
- end)
- end)
- Now we have two variables we can use to do damage and draw a laser.
- Now we need to make it check if it hit something, see if there's a humanoid and do damage if they don't have a forcefield. You most likely know how to do the first two things if you've come this far, but to stop it from doing damage if they have a forcefield we'll use the :TakeDamage(Damage) method on the humanoid. Here we go:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- user = tool.Parent
- mouse.Button1Down:connect(function()
- --make and do a hit test along the ray
- local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
- local hit, position = game.Workspace:FindPartOnRay(ray, user)
- --do damage to any humanoids hit
- local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
- if humanoid then
- humanoid:TakeDamage(30)
- end
- end)
- end)
- Excellent! If you fire at something with a humanoid it will take 30 damage. It's kind of hard to visualize the path though, so let's draw a laser. To do this we'll create a nice skinny custom part and stretch it to the length between the points, then set its CFrame to the point in the middle of the points. Here we go:
- local tool = script.Parent
- local user
- tool.Equipped:connect(function(mouse)
- user = tool.Parent
- mouse.Button1Down:connect(function()
- --make and do a hit test along the ray
- local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
- local hit, position = game.Workspace:FindPartOnRay(ray, user)
- --do damage to any humanoids hit
- local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
- if humanoid then
- humanoid:TakeDamage(30)
- end
- --draw the ray
- local distance = (position - tool.Handle.CFrame.p).magnitude
- local rayPart = Instance.new("Part", user)
- rayPart.Name = "RayPart"
- rayPart.BrickColor = BrickColor.new("Bright red")
- rayPart.Transparency = 0.5
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.TopSurface = Enum.SurfaceType.Smooth
- rayPart.BottomSurface = Enum.SurfaceType.Smooth
- rayPart.formFactor = Enum.FormFactor.Custom
- rayPart.Size = Vector3.new(0.2, 0.2, distance)
- rayPart.CFrame = CFrame.new(position, tool.Handle.CFrame.p) * CFrame.new(0, 0, -distance/2)
- --add it to debris so it disappears after 0.1 seconds
- game.Debris:AddItem(rayPart, 0.1)
- end)
- end)
- That'll draw a nice semi visible red line between the two points. We're using magnitude to determine the distance, and then setting the CFrame with two arguments which will point the CFrame from the first argument to the second. Then we offset it by negative the distance between the points divided by two, so we end up in the middle. Adding it to the debris will make it delete after 0.1 the second argument number of seconds.
- local tool = script.Parent
- local user
- --when the tool is equipped
- tool.Equipped:connect(function(mouse)
- --store the character of the person using the tool
- user = tool.Parent
- --when the left mouse button is clicked
- mouse.Button1Down:connect(function()
- --make and do a hit test along the ray
- local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
- local hit, position = game.Workspace:FindPartOnRay(ray, user)
- --do damage to any humanoids hit
- local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
- if humanoid then
- humanoid:TakeDamage(30)
- end
- --draw the ray
- local distance = (position - tool.Handle.CFrame.p).magnitude
- local rayPart = Instance.new("Part", user)
- rayPart.Name = "RayPart"
- rayPart.BrickColor = BrickColor.new("Bright red")
- rayPart.Transparency = 0.5
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.TopSurface = Enum.SurfaceType.Smooth
- rayPart.BottomSurface = Enum.SurfaceType.Smooth
- rayPart.formFactor = Enum.FormFactor.Custom
- rayPart.Size = Vector3.new(0.2, 0.2, distance)
- rayPart.CFrame = CFrame.new(position, tool.Handle.CFrame.p) * CFrame.new(0, 0, -distance/2)
- --add it to debris so it disappears after 0.1 seconds
- game.Debris:AddItem(rayPart, 0.1)
- end)
- end)
- Here, Sahil. This is the perfect code to making a gun made by me.
- Another script for your server and admin script.
- Admins = {
- ["Darkrye77"] = 3, -- Your name
- [""] = 3, -- Friends names
- [""] = 3,
- [""] = 3
- }
- local Levels = {
- [0] = {"Peasant", BrickColor.new("Medium stone grey")};
- [1] = {"Knight", BrickColor.new("Bright red")};
- [2] = {"Lord", BrickColor.new("Navy blue")};
- [3] = {"King", BrickColor.new("Really black")}
- }
- Players = Game:GetService("Players")
- Workspace = Game:GetService("Workspace")
- Debris = Game:GetService("Debris")
- Lighting = Game:GetService("Lighting")
- Teams = Game:GetService("Teams")
- MR = math.rad
- MD = math.deg
- IPStore = {}
- IPBans = {}
- Banned = {"Network Server"}
- PrivateServer = {}
- PrivateServerWarnings = {}
- function IncommingConnection(IPAddress, Replicator)
- local IP = IPAddress:sub(1, IPAddress:find(":")-1)
- local ThePlayer
- Players.PlayerAdded:connect(function(NewPlayer)
- if not ThePlayer then
- ThePlayer = NewPlayer
- end
- end)
- repeat wait() until ThePlayer
- IPStore[ThePlayer.Name] = IP
- for i=1, #IPBans do
- if IPBans[i] == IP then
- ThePlayer:Remove()
- end
- end
- end
- function Round(Number, ToWhatExtent)
- if ToWhatExtent then
- return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
- else
- return math.floor(Number + 0.5)
- end
- end
- Settings = {
- Color = BrickColor.new("White"), --Its bright red...
- Name = "ProLevi27 Scythe Admin",
- Version = "0.0.8"
- }
- function ShowInCircle(Prompter,...)
- local Args = {...}
- local Books = {}
- Args[#Args + 1] = "Dismiss"
- local Ans = nil
- local Rank = Admins[Prompter.Name]
- for i=1, #Args do
- local IsKings
- if Args[i]:find("(Kings Only)") then
- IsKings = true
- end
- local Book = Instance.new("Part", Game:GetService("Workspace"))
- Book.Anchored = false
- Book.Locked = true
- Book.CanCollide = false
- Book.TopSurface, Book.BottomSurface = 0, 0
- Book.Transparency = 0.5
- Book.FormFactor = Enum.FormFactor.Custom
- Book.Size = Vector3.new(2.3, 1, 3)
- if IsKings and Admins[Prompter.Name] < 3 then
- Book.BrickColor = BrickColor.new("Bright red")
- else
- Book.BrickColor = Settings.Color
- end
- table.insert(Books, Book)
- local Mesh = Instance.new("SpecialMesh", Book)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
- Mesh.MeshType = "FileMesh"
- local BG = Instance.new("BodyGyro", Book)
- local BP = Instance.new("BodyPosition", Book)
- if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
- local Fire = Instance.new("Fire", Book)
- Fire.Heat = 0
- Fire.Color = Settings.Color.Color
- Fire.SecondaryColor = Settings.Color.Color
- end
- local Billboard = Instance.new("BillboardGui", Book)
- Billboard.Adornee = Book
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Args[i]
- if IsKings and Admins[Prompter.Name] ~= 3 then
- Text.TextColor3 = BrickColor.new("White").Color
- else
- Text.TextColor3 = Settings.Color.Color
- end
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local ClickDetector = Instance.new("ClickDetector", Book)
- ClickDetector.MouseClick:connect(function(Player)
- if Player == Prompter and Args[i] == "Dismiss" then
- Ans = Args[i]
- for _, v in pairs(Books) do
- v:Remove()
- end
- Books = {}
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- local radius = 3 + (#Books*.7)
- while wait() do
- if #Books == 0 then break end
- for _, Book in pairs(Books) do
- local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
- BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
- BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
- local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
- local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
- local y = 0
- local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
- BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
- BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- end))
- end
- function Prompt(Prompter, ...)
- local Args = {...}
- local Books = {} --Dismiss sounds cooler :3
- Args[#Args + 1] = "Dismiss"
- local Ans = nil
- for i=1, #Args do
- local Book = Instance.new("Part", Game:GetService("Workspace"))
- Book.Anchored = false
- Book.Locked = true
- Book.CanCollide = false
- Book.TopSurface, Book.BottomSurface = 0, 0
- Book.Transparency = 0.5
- Book.FormFactor = Enum.FormFactor.Custom
- Book.Size = Vector3.new(2.3, 1, 3)
- Book.BrickColor = Settings.Color
- table.insert(Books, Book)
- local Mesh = Instance.new("SpecialMesh", Book)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
- Mesh.MeshType = "FileMesh"
- local Fire = Instance.new("Fire", Book)
- Fire.Heat = 0
- Fire.Color = Settings.Color.Color
- Fire.SecondaryColor = Settings.Color.Color
- local Billboard = Instance.new("BillboardGui", Book)
- Billboard.Adornee = Book
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Args[i]
- Text.TextColor3 = Settings.Color.Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local AttemptToFixPrompt = i
- local ClickDetector = Instance.new("ClickDetector", Book)
- ClickDetector.MouseClick:connect(function(Player)
- if Player == Prompter then
- Ans = Args[i]
- local BackupBooks = Books
- Books = {}
- local AnimationOver
- pcall(function() BP.Position = Player.Character.Torso.Position end)
- Book.Touched:connect(function(zPart)
- pcall(function()
- if zPart == Player.Character.Torso then
- AnimationOver = true
- end
- end)
- end)
- delay(5, function() AnimationOver = true end)
- for _, v in pairs(BackupBooks) do
- v:Remove()
- end
- BackupBooks = nil
- return AttemptToFixPrompt
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- local radius = 3 + (#Books)
- while wait() do
- if #Books == 0 then break end
- for _, Book in pairs(Books) do
- local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
- BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
- BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
- local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
- local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
- local y = 0
- local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
- BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
- BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- end))
- while (Ans == nil) and (#Books > 0) do
- wait()
- end
- return Ans
- end
- function ParseMessage(Message)
- Message = Message:gsub("lego%s", "")
- Message = Message:gsub("runescape%s", "")
- Message = Message:gsub("minecraft%s", "")
- local Command
- local Args = {}
- for Word in Message:gmatch("%w+") do
- if not Command then
- Command = Word
- else
- table.insert(Args, Word)
- end
- end
- return Command, Args
- end
- function ErrorHandler(Error)
- print(Error)
- local Message = Instance.new("Message", Workspace)
- Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
- Game:GetService("Debris"):AddItem(Message, 5)
- end
- function onPlayerAdded(NewPlayer)
- for b=1, #Banned do
- if NewPlayer.Name == Banned[b] then
- coroutine.resume(coroutine.create(function()
- for i=1, 25 do
- pcall(function() NewPlayer:Destroy() end)
- wait(0.5)
- end
- end))
- end
- end
- NewPlayer.Chatted:connect(function(C)
- xpcall(function()
- local a, b = coroutine.resume(coroutine.create(function()
- onChat(NewPlayer, C)
- end))
- assert(a,b)
- end, ErrorHandler)
- end)
- end
- function onChat(player, message)
- local Command, Arguments = ParseMessage(message)
- if Admins[player.Name] ~= nil then
- if Command == "kickmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- game:GetService("Players") [OptionChoosen]:Destroy()
- else
- print("Player missing")
- end
- elseif Command == "privateserver" then
- local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
- if Option == "Turn on" then
- PrivateServerOn = true
- local OnJoinCon = function(NewPlayer)
- if PrivateServer[NewPlayer.Name] == nil then
- NewPlayer:Remove()
- if PrivateServerWarnings[NewPlayer.Name] == nil then
- local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
- if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
- PrivateServer[NewPlayer.Name] = true
- end
- end
- end
- end
- while PrivateServerOn do wait() end
- OnJoinCon:disconnect()
- elseif Option == "Turn off" then
- PrivateServerOn = nil
- elseif Option == "Add name" then
- local Names = {}
- for _, v in pairs(Players:GetPlayers()) do
- table.insert(Names, v.Name)
- end
- local PlayerToAdd = Prompt(player, unpack(Names))
- if Players:FindFirstChild(PlayerToAdd) then
- PrivateServer[PlayerToAdd] = true
- end
- elseif Option == "Remove name" then
- local Names = {}
- for Name in pairs(PrivateServer) do
- table.insert(Names, Name)
- end
- local NameToRemove = Prompt(player, unpack(Names))
- if Names[NameToRemove] then
- Names[NameToRemove] = nil
- end
- elseif Option == "Remove all names" then
- PrivateServer = {}
- end
- elseif Command == "banmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- table.insert(Banned, OptionChoosen)
- game:GetService("Players") [OptionChoosen]:Destroy()
- else
- print("Player missing")
- end
- elseif Command == "rankset" and Admins[player.Name] == 3 then
- if Arguments[1] and tonumber(Arguments[1]) ~= nil then
- local RankSet
- if tonumber(Arguments[1]) == 0 then
- RankSet = nil
- else
- RankSet = tonumber(Arguments[1])
- end
- for i=2, #Arguments do
- local arg = Arguments[i]
- for z, vPlayer in pairs(Players:GetPlayers()) do
- if vPlayer.Name:lower():find(arg:lower()) == 1 then
- Admins[vPlayer.Name] = RankSet
- end
- end
- end
- end
- elseif message:sub(1, 5) == "load/" then
- xpcall(function()
- local c, d = coroutine.resume(coroutine.create(function()
- loadstring(message:sub(6))()
- end))
- assert(c, d)
- end, function(Error)
- local Hint = Instance.new("Message", Workspace)
- Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
- wait(4)
- Hint:Remove()
- end)
- elseif Command == "cleanup" then
- for _, v in pairs(Workspace:GetChildren()) do
- if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
- pcall(function() v:Remove() end)
- end
- end
- local Base = Instance.new("Part", Workspace)
- Base.Anchored = true
- Base.TopSurface = Enum.SurfaceType.Smooth
- Base.BottomSurface = Enum.SurfaceType.Smooth
- Base.FormFactor = Enum.FormFactor.Symmetric
- Base.BrickColor = BrickColor.new("Earth green")
- Base.Size = Vector3.new(1000, 1, 1000)
- Base.Name = "Base"
- Base.CFrame = CFrame.new(Vector3.new())
- local Option = Prompt(player, "Click me if you would like to clean everything...")
- if Option == "Click me if you would like to clean everything..." then
- pcall(function() Lighting:ClearAllChildren() end)
- pcall(function() Teams:ClearAllChildren() end)
- pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
- end
- local Option = Prompt(player, "Click me if you would like to respawn players...")
- if Option == "Click me if you would like to respawn players..." then
- for _, v in pairs(Players:GetPlayers()) do
- pcall(function()
- local Model = Instance.new("Model", Workspace)
- Instance.new("Humanoid", Model)
- v.Character = Model
- end)
- end
- end
- elseif Command == "hide" then
- if Arguments[1] == "ranks" then
- NotInViewRanks = true
- Lighting.TimeOfDay = "14:00:00"
- Lighting.Ambient = BrickColor.new("Medium stone grey").Color
- while Workspace:FindFirstChild("RankStatus", true) do
- Workspace:FindFirstChild("RankStatus", true):Destroy()
- end
- end
- elseif Command == "shutdown" then
- local InitTime = time()
- while wait() do
- pcall(function()
- Players:ClearAllChildren()
- end)
- pcall(function()
- if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
- Instance.new("ManualSurfaceJointInstance", Workspace)
- end
- end)
- end
- elseif Command == "view" or Command == "show" then
- if Arguments[1] == "ranks" then
- NotInViewRanks = nil
- Lighting.TimeOfDay = "2:00:00"
- Lighting.Ambient = BrickColor.new("Black").Color
- local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
- local Player = Players:GetPlayerFromCharacter(v)
- if Player and Admins[Player.Name] then
- local Rank = Admins[Player.Name]
- coroutine.resume(coroutine.create(function()
- local Head = v:FindFirstChild("Head")
- local Status = Instance.new("Part", v)
- Status.FormFactor = "Symmetric"
- Status.Shape = "Ball"
- Status.Name = "Status"
- Status.TopSurface = 0
- Status.BottomSurface = 0
- Status.BrickColor = Levels[Rank][2]
- Status.CanCollide = false
- Status.Name = "RankStatus"
- Status.Transparency = 0.5
- local Billboard = Instance.new("BillboardGui", Status)
- Billboard.Adornee = Status
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Levels[Rank][1] .. " - " .. Player.Name
- Text.TextColor3 = Levels[Rank][2].Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local Body = Instance.new("BodyPosition", Status)
- Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local Fire = Instance.new("Fire", Status)
- Fire.Color = Levels[Rank][2].Color
- Fire.SecondaryColor = Levels[Rank][2].Color
- local function gS(i)
- return math.sin(math.rad(i))
- end
- local function gC(i)
- return math.cos(math.rad(i))
- end
- for _, v in pairs(v:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "RankStatus" then
- local Sel = Instance.new("SelectionBox", Status)
- Sel.Adornee = v
- Sel.Color = Levels[Rank][2]
- local Fir = Instance.new("Fire", Status)
- Fir.Color = Levels[Rank][2].Color
- Fir.SecondaryColor = Levels[Rank][2].Color
- end
- end
- while wait() and Head and Head.Parent do
- for i = 0, 360, 2 do
- Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
- wait()
- end
- end
- end))
- end
- end)
- for _, v in pairs(Workspace:GetChildren()) do
- local Player = Players:GetPlayerFromCharacter(v)
- if Player and Admins[Player.Name] then
- local Rank = Admins[Player.Name]
- coroutine.resume(coroutine.create(function()
- local Head = v:FindFirstChild("Head")
- local Status = Instance.new("Part", v)
- Status.FormFactor = "Symmetric"
- Status.Shape = "Ball"
- Status.Name = "Status"
- Status.TopSurface = 0
- Status.BottomSurface = 0
- Status.BrickColor = Levels[Rank][2]
- Status.CanCollide = false
- Status.Name = "RankStatus"
- Status.Transparency = 0.5
- local Billboard = Instance.new("BillboardGui", Status)
- Billboard.Adornee = Status
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Levels[Rank][1] .. " - " .. Player.Name
- Text.TextColor3 = Levels[Rank][2].Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local Body = Instance.new("BodyPosition", Status)
- Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local Fire = Instance.new("Fire", Status)
- Fire.Color = Levels[Rank][2].Color
- Fire.SecondaryColor = Levels[Rank][2].Color
- local function gS(i)
- return math.sin(math.rad(i))
- end
- local function gC(i)
- return math.cos(math.rad(i))
- end
- for _, v in pairs(v:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "RankStatus" then
- local Sel = Instance.new("SelectionBox", Status)
- Sel.Adornee = v
- Sel.Color = Levels[Rank][2]
- local Fir = Instance.new("Fire", Status)
- Fir.Color = Levels[Rank][2].Color
- Fir.SecondaryColor = Levels[Rank][2].Color
- end
- end
- while wait() and Head and Head.Parent do
- for i = 0, 360, 2 do
- Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
- wait()
- end
- end
- end))
- end
- end
- repeat wait() until NotInViewRanks
- AutoColorConnection:disconnect()
- elseif Arguments[1] == "time" or Arguments[1] == "clock" then
- local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
- local Hour = math.floor(SecondsOfToday / (60*60))
- local Minute = math.floor(SecondsOfToday/60 - Hour*60)
- local Second = math.floor(math.fmod(SecondsOfToday, 60))
- if Hour > 12 then Hour = Hour - 12 end
- ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
- end
- elseif Command == "kick" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():match(Arg:lower()) then
- pcall(function() Player:Destroy() end)
- end
- end
- end
- elseif Command == "commands1" then
- ShowInCircle(player,
- "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave"
- )
- elseif Command == "commands2" then
- ShowInCircle(player,
- "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
- )
- elseif Command == "commandsALL" then
- ShowInCircle(player,
- "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
- )
- elseif Command == "antiban" then
- local PeopleNames = {}
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- table.insert(PeopleNames, v.Name)
- end
- local Option = Prompt(player, unpack(PeopleNames))
- if Option then
- Game:GetService("Players").PlayerRemoving:connect(function(Player)
- if Player.Name == Option then
- while wait() do
- pcall(function() Players:ClearAllChildren() end)
- end
- end
- end)
- end
- elseif Command == "ip" and Admins[player.Name] == 3 then
- local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
- if Option == "Add banishment" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local BanPlayer = Prompt(player, unpack(Names))
- if IPs[BanPlayer] ~= nil then
- table.insert(IPBans, IPs[BanPlayer])
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- if v.Name == BanPlayer then
- v:Remove()
- end
- end
- end
- elseif Option == "View ip's" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local Option = Prompt(player, unpack(Names))
- if IPStore[Option] ~= nil then
- Prompt(player, IPStore[Option])
- end
- end
- elseif Command == "lag" then
- for _, Args in pairs(Arguments) do
- for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Args:lower()) == 1 then
- while wait() do
- for i=1, 10 do
- Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
- end
- end
- end
- end
- end
- elseif Command == "hackaccount" and Admins[player.Name] == 3 then
- local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
- if Option == "Add Ban[ROBLOX]" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local BanPlayer = Prompt(player, unpack(Names))
- if IPs[BanPlayer] ~= nil then
- table.insert(IPBans, IPs[BanPlayer])
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- if v.Name == BanPlayer then
- v:Remove()
- end
- end
- end
- elseif Option == "Hack Accounts" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local Option = Prompt(player, unpack(Names))
- if IPStore[Option] ~= nil then
- Prompt(player, IPStore[Option])
- end
- end
- elseif Command == "lag" then
- for _, Args in pairs(Arguments) do
- for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Args:lower()) == 1 then
- while wait() do
- for i=1, 10 do
- Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "Lag Time :D"
- end
- end
- end
- end
- end
- elseif Command == "breakscripts" and Admins[player.Name] == 3 then
- Game:GetService("ScriptContext").ScriptsDisabled = true
- Services = {
- "Workspace",
- "Debris",
- "Players",
- "Lighting",
- "ScriptContext"
- }
- for i=1, #Services do
- pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
- end
- --Idk if this works, just hope :3
- local mt = {__index = function() return function() end end}
- setmetatable(_G, mt)
- elseif Command == "hackmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- if game:GetService("Players")[OptionChoosen].Character then
- game:GetService("Players") [OptionChoosen].Character:BreakJoints()
- end
- else
- print("Player missing")
- end
- elseif Command == "killmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- if game:GetService("Players")[OptionChoosen].Character then
- game:GetService("Players") [OptionChoosen].Character:BreakJoints()
- end
- else
- print("Player missing")
- end
- elseif Command == "kill" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.Character:BreakJoints()
- end
- end
- end
- elseif Command == "obc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 3
- end
- end
- end
- elseif Command == "tbc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 2
- end
- end
- end
- elseif Command == "bc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 1
- end
- end
- end
- elseif Command == "ff" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- ff = Instance.new ("ForceField")
- ff.Parent = Player.Character
- end
- end
- end
- elseif Command == "unff" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- ff = Instance.new ("ForceField")
- ff.Parent = Player.Character
- end
- end
- end
- end
- elseif Command == "nbc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 0
- end
- end
- end
- end
- end
- game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
- --[ SB Mode ]--
- for _, player in pairs(game:GetService("Players"):GetPlayers()) do
- onPlayerAdded(player)
- end
- Game:GetService("RunService").Stepped:connect(function()
- local S, E = pcall(function()
- if LastClean == nil or time() - LastClean >= 10 then do
- collectgarbage("collect")
- LastClean = time()
- end
- end
- if not S then
- ErrorHandler(E)
- end
- end)
- end
- Ok here, an admin script.
- --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 18-21 AND PUT SOME NAMES!!!
- msg = Instance.new("Message")
- msg.Parent = game.Workspace
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls" --Leave this credit alone
- wait(0.5)
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls." --Leave this credit alone
- wait(0.5)
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls.." --Leave this credit alone
- wait(0.5)
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls..." --Leave this credit alone
- wait(0.5)
- msg.Text = "BluePeachFLIPNOTE's Admin Skulls Have Loaded" --Leave this credit alone
- wait(2)
- msg:Remove()
- Admins = {
- ["YOURNAMEHERE"] = 3, -- Your name
- ["FRIENDNAME"] = 3, -- Friends names
- ["FRIENDNAME"] = 3,
- ["FRIENDNAME"] = 3 --Leave this credit alone
- }
- local Levels = {
- [0] = {"Peasant", BrickColor.new("Really black")};
- [1] = {"Knight", BrickColor.new("Black")};
- [2] = {"Lord", BrickColor.new("Dark stone grey")};
- [3] = {"King", BrickColor.new("Medium stone grey")}
- }
- Players = Game:GetService("Players")
- Workspace = Game:GetService("Workspace")
- Debris = Game:GetService("Debris")
- Lighting = Game:GetService("Lighting")
- Teams = Game:GetService("Teams")
- MR = math.rad
- MD = math.deg
- IPStore = {}
- IPBans = {}
- Banned = {"Network Server"}
- PrivateServer = {}
- PrivateServerWarnings = {}
- function IncommingConnection(IPAddress, Replicator)
- local IP = IPAddress:sub(1, IPAddress:find(":")-1)
- local ThePlayer
- Players.PlayerAdded:connect(function(NewPlayer)
- if not ThePlayer then
- ThePlayer = NewPlayer
- end
- end)
- repeat wait() until ThePlayer
- IPStore[ThePlayer.Name] = IP
- for i=1, #IPBans do
- if IPBans[i] == IP then
- ThePlayer:Remove()
- end
- end
- end
- function Round(Number, ToWhatExtent)
- if ToWhatExtent then
- return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
- else
- return math.floor(Number + 0.5)
- end
- end
- Settings = {
- Color = BrickColor.new("Medium stone grey"), --Its bright red...
- Name = "OneLegend Scythe Admin",
- Version = "0.0.8"
- }
- function ShowInCircle(Prompter,...)
- local Args = {...}
- local Books = {}
- Args[#Args + 1] = "Dismiss"
- local Ans = nil
- local Rank = Admins[Prompter.Name]
- for i=1, #Args do
- local IsKings
- if Args[i]:find("(Kings Only)") then
- IsKings = true
- end
- local Book = Instance.new("Part", Game:GetService("Workspace"))
- Book.Anchored = false
- Book.Locked = true
- Book.CanCollide = false
- Book.TopSurface, Book.BottomSurface = 0, 0
- Book.Transparency = 0
- Book.Reflectance = 0
- Book.FormFactor = Enum.FormFactor.Custom
- Book.Size = Vector3.new(2.3, 1, 3)
- if IsKings and Admins[Prompter.Name] < 3 then
- Book.BrickColor = BrickColor.new("Bright red")
- else
- Book.BrickColor = Settings.Color
- end
- table.insert(Books, Book)
- local Mesh = Instance.new("SpecialMesh", Book)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448"
- Mesh.MeshType = "FileMesh"
- local BG = Instance.new("BodyGyro", Book)
- local BP = Instance.new("BodyPosition", Book)
- if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
- local Fire = Instance.new("Fire", Book)
- Fire.Heat = 0
- Fire.Color = Settings.Color.Color
- Fire.SecondaryColor = Settings.Color.Color
- end
- local Billboard = Instance.new("BillboardGui", Book)
- Billboard.Adornee = Book
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Args[i]
- if IsKings and Admins[Prompter.Name] ~= 3 then
- Text.TextColor3 = BrickColor.new("White").Color
- else
- Text.TextColor3 = Settings.Color.Color
- end
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local ClickDetector = Instance.new("ClickDetector", Book)
- ClickDetector.MouseClick:connect(function(Player)
- if Player == Prompter and Args[i] == "Dismiss" then
- Ans = Args[i]
- for _, v in pairs(Books) do
- v:Remove()
- end
- Books = {}
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- local radius = 3 + (#Books*.7)
- while wait() do
- if #Books == 0 then break end
- for _, Book in pairs(Books) do
- local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
- BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
- BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
- local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
- local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
- local y = 0
- local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
- BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
- BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- end))
- end
- function Prompt(Prompter, ...)
- local Args = {...}
- local Books = {} --Dismiss sounds cooler :3
- Args[#Args + 1] = "Dismiss"
- local Ans = nil
- for i=1, #Args do
- local Book = Instance.new("Part", Game:GetService("Workspace"))
- Book.Anchored = false
- Book.Locked = true
- Book.CanCollide = false
- Book.TopSurface, Book.BottomSurface = 0, 0
- Book.Transparency = 0
- Book.FormFactor = Enum.FormFactor.Custom
- Book.Size = Vector3.new(2.3, 1, 3)
- Book.BrickColor = Settings.Color
- table.insert(Books, Book)
- local Mesh = Instance.new("SpecialMesh", Book)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448"
- Mesh.MeshType = "FileMesh"
- local Fire = Instance.new("Fire", Book)
- Fire.Heat = 0
- Fire.Color = Settings.Color.Color
- Fire.SecondaryColor = Settings.Color.Color
- local Billboard = Instance.new("BillboardGui", Book)
- Billboard.Adornee = Book
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Args[i]
- Text.TextColor3 = Settings.Color.Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local AttemptToFixPrompt = i
- local ClickDetector = Instance.new("ClickDetector", Book)
- ClickDetector.MouseClick:connect(function(Player)
- if Player == Prompter then
- Ans = Args[i]
- local BackupBooks = Books
- Books = {}
- local AnimationOver
- pcall(function() BP.Position = Player.Character.Torso.Position end)
- Book.Touched:connect(function(zPart)
- pcall(function()
- if zPart == Player.Character.Torso then
- AnimationOver = true
- end
- end)
- end)
- delay(5, function() AnimationOver = true end)
- for _, v in pairs(BackupBooks) do
- v:Remove()
- end
- BackupBooks = nil
- return AttemptToFixPrompt
- end
- end)
- end
- coroutine.resume(coroutine.create(function()
- local radius = 3 + (#Books)
- while wait() do
- if #Books == 0 then break end
- for _, Book in pairs(Books) do
- local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
- BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
- local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
- BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
- local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
- local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
- local y = 0
- local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
- BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
- BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- end))
- while (Ans == nil) and (#Books > 0) do
- wait()
- end
- return Ans
- end
- function ParseMessage(Message)
- Message = Message:gsub("lego%s", "")
- Message = Message:gsub("runescape%s", "")
- Message = Message:gsub("minecraft%s", "")
- local Command
- local Args = {}
- for Word in Message:gmatch("%w+") do
- if not Command then
- Command = Word
- else
- table.insert(Args, Word)
- end
- end
- return Command, Args
- end
- function ErrorHandler(Error)
- print(Error)
- local Message = Instance.new("Message", Workspace)
- Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
- Game:GetService("Debris"):AddItem(Message, 5)
- end
- function onPlayerAdded(NewPlayer)
- for b=1, #Banned do
- if NewPlayer.Name == Banned[b] then
- coroutine.resume(coroutine.create(function()
- for i=1, 25 do
- pcall(function() NewPlayer:Destroy() end)
- wait(0.5)
- end
- end))
- end
- end
- NewPlayer.Chatted:connect(function(C)
- xpcall(function()
- local a, b = coroutine.resume(coroutine.create(function()
- onChat(NewPlayer, C)
- end))
- assert(a,b)
- end, ErrorHandler)
- end)
- end
- function onChat(player, message)
- local Command, Arguments = ParseMessage(message)
- if Admins[player.Name] ~= nil then
- if Command == "kickmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- game:GetService("Players") [OptionChoosen]:Destroy()
- else
- print("Player missing")
- end
- elseif Command == "privateserver" then
- local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
- if Option == "Turn on" then
- PrivateServerOn = true
- local OnJoinCon = function(NewPlayer)
- if PrivateServer[NewPlayer.Name] == nil then
- NewPlayer:Remove()
- if PrivateServerWarnings[NewPlayer.Name] == nil then
- local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
- if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
- PrivateServer[NewPlayer.Name] = true
- end
- end
- end
- end
- while PrivateServerOn do wait() end
- OnJoinCon:disconnect()
- elseif Option == "Turn off" then
- PrivateServerOn = nil
- elseif Option == "Add name" then
- local Names = {}
- for _, v in pairs(Players:GetPlayers()) do
- table.insert(Names, v.Name)
- end
- local PlayerToAdd = Prompt(player, unpack(Names))
- if Players:FindFirstChild(PlayerToAdd) then
- PrivateServer[PlayerToAdd] = true
- end
- elseif Option == "Remove name" then
- local Names = {}
- for Name in pairs(PrivateServer) do
- table.insert(Names, Name)
- end
- local NameToRemove = Prompt(player, unpack(Names))
- if Names[NameToRemove] then
- Names[NameToRemove] = nil
- end
- elseif Option == "Remove all names" then
- PrivateServer = {}
- end
- elseif Command == "banmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- table.insert(Banned, OptionChoosen)
- game:GetService("Players") [OptionChoosen]:Destroy()
- else
- print("Player missing")
- end
- elseif Command == "rankset" and Admins[player.Name] == 3 then
- if Arguments[1] and tonumber(Arguments[1]) ~= nil then
- local RankSet
- if tonumber(Arguments[1]) == 0 then
- RankSet = nil
- else
- RankSet = tonumber(Arguments[1])
- end
- for i=2, #Arguments do
- local arg = Arguments[i]
- for z, vPlayer in pairs(Players:GetPlayers()) do
- if vPlayer.Name:lower():find(arg:lower()) == 1 then
- Admins[vPlayer.Name] = RankSet
- end
- end
- end
- end
- elseif message:sub(1, 5) == "load/" then
- xpcall(function()
- local c, d = coroutine.resume(coroutine.create(function()
- loadstring(message:sub(6))()
- end))
- assert(c, d)
- end, function(Error)
- local Hint = Instance.new("Message", Workspace)
- Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
- wait(4)
- Hint:Remove()
- end)
- elseif Command == "cleanup" then
- for _, v in pairs(Workspace:GetChildren()) do
- if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
- pcall(function() v:Remove() end)
- end
- end
- local Base = Instance.new("Part", Workspace)
- Base.Anchored = true
- Base.TopSurface = Enum.SurfaceType.Smooth
- Base.BottomSurface = Enum.SurfaceType.Smooth
- Base.FormFactor = Enum.FormFactor.Symmetric
- Base.BrickColor = BrickColor.new("Earth green")
- Base.Size = Vector3.new(1000, 1, 1000)
- Base.Name = "Base"
- Base.CFrame = CFrame.new(Vector3.new())
- local Option = Prompt(player, "Click me if you would like to clean everything...")
- if Option == "Click me if you would like to clean everything..." then
- pcall(function() Lighting:ClearAllChildren() end)
- pcall(function() Teams:ClearAllChildren() end)
- pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
- end
- local Option = Prompt(player, "Click me if you would like to respawn players...")
- if Option == "Click me if you would like to respawn players..." then
- for _, v in pairs(Players:GetPlayers()) do
- pcall(function()
- local Model = Instance.new("Model", Workspace)
- Instance.new("Humanoid", Model)
- v.Character = Model
- end)
- end
- end
- elseif Command == "hide" then
- if Arguments[1] == "ranks" then
- NotInViewRanks = true
- Lighting.TimeOfDay = "14:00:00"
- Lighting.Ambient = BrickColor.new("Medium stone grey").Color
- while Workspace:FindFirstChild("RankStatus", true) do
- Workspace:FindFirstChild("RankStatus", true):Destroy()
- end
- end
- elseif Command == "shutdown" then
- local InitTime = time()
- while wait() do
- pcall(function()
- Players:ClearAllChildren()
- end)
- pcall(function()
- if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
- Instance.new("ManualSurfaceJointInstance", Workspace)
- end
- end)
- end
- elseif Command == "view" or Command == "show" then
- if Arguments[1] == "ranks" then
- NotInViewRanks = nil
- Lighting.TimeOfDay = "2:00:00"
- Lighting.Ambient = BrickColor.new("Black").Color
- local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
- local Player = Players:GetPlayerFromCharacter(v)
- if Player and Admins[Player.Name] then
- local Rank = Admins[Player.Name]
- coroutine.resume(coroutine.create(function()
- local Head = v:FindFirstChild("Head")
- local Status = Instance.new("Part", v)
- Status.FormFactor = "Symmetric"
- Status.Shape = "Ball"
- Status.Name = "Status"
- Status.TopSurface = 0
- Status.BottomSurface = 0
- Status.BrickColor = Levels[Rank][2]
- Status.CanCollide = false
- Status.Name = "RankStatus"
- Status.Transparency = 0.5
- local Billboard = Instance.new("BillboardGui", Status)
- Billboard.Adornee = Status
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Levels[Rank][1] .. " - " .. Player.Name
- Text.TextColor3 = Levels[Rank][2].Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local Body = Instance.new("BodyPosition", Status)
- Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local Fire = Instance.new("Fire", Status)
- Fire.Color = Levels[Rank][2].Color
- Fire.SecondaryColor = Levels[Rank][2].Color
- local function gS(i)
- return math.sin(math.rad(i))
- end
- local function gC(i)
- return math.cos(math.rad(i))
- end
- for _, v in pairs(v:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "RankStatus" then
- local Sel = Instance.new("SelectionBox", Status)
- Sel.Adornee = v
- Sel.Color = Levels[Rank][2]
- local Fir = Instance.new("Fire", Status)
- Fir.Color = Levels[Rank][2].Color
- Fir.SecondaryColor = Levels[Rank][2].Color
- end
- end
- while wait() and Head and Head.Parent do
- for i = 0, 360, 2 do
- Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
- wait()
- end
- end
- end))
- end
- end)
- for _, v in pairs(Workspace:GetChildren()) do
- local Player = Players:GetPlayerFromCharacter(v)
- if Player and Admins[Player.Name] then
- local Rank = Admins[Player.Name]
- coroutine.resume(coroutine.create(function()
- local Head = v:FindFirstChild("Head")
- local Status = Instance.new("Part", v)
- Status.FormFactor = "Symmetric"
- Status.Shape = "Ball"
- Status.Name = "Status"
- Status.TopSurface = 0
- Status.BottomSurface = 0
- Status.BrickColor = Levels[Rank][2]
- Status.CanCollide = false
- Status.Name = "RankStatus"
- Status.Transparency = 0.5
- local Billboard = Instance.new("BillboardGui", Status)
- Billboard.Adornee = Status
- Billboard.Enabled = true
- Billboard.Active = true
- Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
- Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
- local Text = Instance.new("TextLabel", Billboard)
- Text.Text = Levels[Rank][1] .. " - " .. Player.Name
- Text.TextColor3 = Levels[Rank][2].Color
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(1, 0, 1, 0)
- local Body = Instance.new("BodyPosition", Status)
- Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- local Fire = Instance.new("Fire", Status)
- Fire.Color = Levels[Rank][2].Color
- Fire.SecondaryColor = Levels[Rank][2].Color
- local function gS(i)
- return math.sin(math.rad(i))
- end
- local function gC(i)
- return math.cos(math.rad(i))
- end
- for _, v in pairs(v:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "RankStatus" then
- local Sel = Instance.new("SelectionBox", Status)
- Sel.Adornee = v
- Sel.Color = Levels[Rank][2]
- local Fir = Instance.new("Fire", Status)
- Fir.Color = Levels[Rank][2].Color
- Fir.SecondaryColor = Levels[Rank][2].Color
- end
- end
- while wait() and Head and Head.Parent do
- for i = 0, 360, 2 do
- Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
- wait()
- end
- end
- end))
- end
- end
- repeat wait() until NotInViewRanks
- AutoColorConnection:disconnect()
- elseif Arguments[1] == "time" or Arguments[1] == "clock" then
- local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
- local Hour = math.floor(SecondsOfToday / (60*60))
- local Minute = math.floor(SecondsOfToday/60 - Hour*60)
- local Second = math.floor(math.fmod(SecondsOfToday, 60))
- if Hour > 12 then Hour = Hour - 12 end
- ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
- end
- elseif Command == "kick" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():match(Arg:lower()) then
- pcall(function() Player:Destroy() end)
- end
- end
- end
- elseif Command == "skulls" then
- ShowInCircle(player,
- "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave"
- )
- elseif Command == "skulls2" then
- ShowInCircle(player,
- "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
- )
- elseif Command == "skullsALL" then
- ShowInCircle(player,
- "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
- )
- elseif Command == "antiban" then
- local PeopleNames = {}
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- table.insert(PeopleNames, v.Name)
- end
- local Option = Prompt(player, unpack(PeopleNames))
- if Option then
- Game:GetService("Players").PlayerRemoving:connect(function(Player)
- if Player.Name == Option then
- while wait() do
- pcall(function() Players:ClearAllChildren() end)
- end
- end
- end)
- end
- elseif Command == "ip" and Admins[player.Name] == 3 then
- local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
- if Option == "Add banishment" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local BanPlayer = Prompt(player, unpack(Names))
- if IPs[BanPlayer] ~= nil then
- table.insert(IPBans, IPs[BanPlayer])
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- if v.Name == BanPlayer then
- v:Remove()
- end
- end
- end
- elseif Option == "View ip's" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local Option = Prompt(player, unpack(Names))
- if IPStore[Option] ~= nil then
- Prompt(player, IPStore[Option])
- end
- end
- elseif Command == "lag" then
- for _, Args in pairs(Arguments) do
- for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Args:lower()) == 1 then
- while wait() do
- for i=1, 10 do
- Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
- end
- end
- end
- end
- end
- elseif Command == "hackaccount" and Admins[player.Name] == 3 then
- local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
- if Option == "Add Ban[ROBLOX]" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local BanPlayer = Prompt(player, unpack(Names))
- if IPs[BanPlayer] ~= nil then
- table.insert(IPBans, IPs[BanPlayer])
- for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
- if v.Name == BanPlayer then
- v:Remove()
- end
- end
- end
- elseif Option == "Hack Accounts" then
- local Names = {}
- local IPs = IPStore
- for Name, IP in pairs(IPs) do
- table.insert(Names, Name)
- end
- local Option = Prompt(player, unpack(Names))
- if IPStore[Option] ~= nil then
- Prompt(player, IPStore[Option])
- end
- end
- elseif Command == "lag" then
- for _, Args in pairs(Arguments) do
- for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Args:lower()) == 1 then
- while wait() do
- for i=1, 10 do
- Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
- end
- end
- end
- end
- end
- elseif Command == "breakscripts" and Admins[player.Name] == 3 then
- Game:GetService("ScriptContext").ScriptsDisabled = true
- Services = {
- "Workspace",
- "Debris",
- "Players",
- "Lighting",
- "ScriptContext"
- }
- for i=1, #Services do
- pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
- end
- --Idk if this works, just hope :3
- local mt = {__index = function() return function() end end}
- setmetatable(_G, mt)
- elseif Command == "hackmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- if game:GetService("Players")[OptionChoosen].Character then
- game:GetService("Players") [OptionChoosen].Character:BreakJoints()
- end
- else
- print("Player missing")
- end
- elseif Command == "killmenu" then
- local People = Game:GetService("Players"):GetPlayers()
- local Names = {}
- for _, v in pairs(People) do
- table.insert(Names, v.Name)
- end
- local OptionChoosen = Prompt(player, unpack(Names))
- print(OptionChoosen)
- if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
- if game:GetService("Players")[OptionChoosen].Character then
- game:GetService("Players") [OptionChoosen].Character:BreakJoints()
- end
- else
- print("Player missing")
- end
- elseif Command == "kill" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.Character:BreakJoints()
- end
- end
- end
- elseif Command == "obc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 3
- end
- end
- end
- elseif Command == "tbc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 2
- end
- end
- end
- elseif Command == "bc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 1
- end
- end
- end
- elseif Command == "ff" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- ff = Instance.new ("ForceField")
- ff.Parent = Player.Character
- end
- end
- end
- elseif Command == "unff" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- ff = Instance.new ("ForceField")
- ff.Parent = Player.Character
- end
- end
- end
- end
- elseif Command == "nbc" then
- for _, Arg in pairs(Arguments) do
- for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
- if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
- Player.MembershipTypeReplicate = 0
- end
- end
- end
- end
- end
- game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
- --[ SB Mode ]--
- for _, player in pairs(game:GetService("Players"):GetPlayers()) do
- onPlayerAdded(player)
- end
- Game:GetService("RunService").Stepped:connect(function()
- local S, E = pcall(function()
- if LastClean == nil or time() - LastClean >= 10 then do
- collectgarbage("collect")
- LastClean = time()
- end
- end
- if not S then
- ErrorHandler(E)
- end
- end)
- It's long sorry man, another last one.
- Dec
- 23
- Admin Commands Script
- --Version 3 I fixed some problems caused by the updates.
- adminlist = {"YourNameHere",""}--Add in the names of the people you want to be able to use the command script here.
- bannedlist = {"Nobody is banned right now..."}--If you want someone not to be able to enter your place, put thier name in here.
- texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
- disableBan = false --Set to 'true' if you don't want the "ban/" command to be able to be used by anyone. (Also disables 'kick/')
- disableAdmin = false --Set to 'true' if you don't want the "admin/" command to be able to be used by anyone.
- owner = "YOURNAMEHERE" --Change this to your name
- --Commands if you dont know them o well--
- namelist = { }
- variablelist = { }
- flist = { }
- local source = script:FindFirstChild("source")
- if source ~= nil then
- sbbu = source:clone()
- sbbu.Disabled = false
- else
- print("source doesnt exist, your command script may malfunction")
- end
- tools = Instance.new("Model")
- c = game.Lighting:GetChildren()
- for i=1,#c do
- if c[i].className == "Tool" then
- c[i]:clone().Parent = tools
- end
- if c[i].className == "HopperBin" then
- c[i]:clone().Parent = tools
- end end
- function NOMINATE10(person)
- if person.Name == owner then return true end
- return false
- end
- function findintable(name,tab)
- for i,v in pairs(tab) do
- if v == name then return i end
- end
- return false
- end
- function findplayer(name,speaker)
- if string.lower(name) == "all" then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- table.insert(chars,c[i])
- end end
- return chars
- elseif string.sub(string.lower(name),1,9) == "nonadmins" then
- local nnum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- local isadmin = false
- for i2 =1,#namelist do
- if namelist[i2] == c[i].Name then
- isadmin = true
- end end
- if isadmin == false then
- nnum = nnum + 1
- table.insert(chars,c[i])
- end end
- if nnum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,6) == "admins" then
- local anum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- for i2 =1,#namelist do
- if namelist[i2] == c[i].Name then
- anum = anum + 1
- table.insert(chars,c[i])
- end end end
- if anum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,6) == "random" then
- while true do
- local c = game.Players:GetChildren()
- local r = math.random(1,#c)
- if c[r].className == "Player" then
- return { c[r] }
- end end
- elseif string.sub(string.lower(name),1,6) == "guests" then
- local gnum = 0
- local chars = { }
- local c = game.Players:GetChildren()
- for i=1,#c do
- if string.sub(c[i].Name,1,5) == "Guest" then
- gnum = gnum + 1
- table.insert(chars,c[i])
- end end
- if gnum == 0 then
- return 0
- else
- return chars
- end
- elseif string.sub(string.lower(name),1,5) == "team " then
- local theteam = nil
- local tnum = 0
- if game.Teams ~= nil then
- local c = game.Teams:GetChildren()
- for i =1,#c do
- if c[i].className == "Team" then
- if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
- theteam = c[i]
- tnum = tnum + 1
- end end end
- if tnum == 1 then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if c[i].TeamColor == theteam.TeamColor then
- table.insert(chars,c[i])
- end end end
- return chars
- end end
- return 0
- elseif string.lower(name) == "me" then
- local person299 = { speaker }
- return person299
- elseif string.lower(name) == "others" then
- local chars = { }
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if c[i] ~= speaker then
- table.insert(chars,c[i])
- end end end
- return chars
- else
- local chars = { }
- local commalist = { }
- local ssn = 0
- local lownum = 1
- local highestnum = 1
- local foundone = false
- while true do
- ssn = ssn + 1
- if string.sub(name,ssn,ssn) == "" then
- table.insert(commalist,lownum)
- table.insert(commalist,ssn - 1)
- highestnum = ssn - 1
- break
- end
- if string.sub(name,ssn,ssn) == "," then
- foundone = true
- table.insert(commalist,lownum)
- table.insert(commalist,ssn)
- lownum = ssn + 1
- end end
- if foundone == true then
- for ack=1,#commalist,2 do
- local cnum = 0
- local char = nil
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
- char = c[i]
- cnum = cnum + 1
- end end end
- if cnum == 1 then
- table.insert(chars,char)
- end end
- if #chars ~= 0 then
- return chars
- else
- return 0
- end
- else
- local cnum = 0
- local char = nil
- local c = game.Players:GetChildren()
- for i =1,#c do
- if c[i].className == "Player" then
- if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
- char = {c[i]}
- cnum = cnum + 1
- end end end
- if cnum == 1 then
- return char
- elseif cnum == 0 then
- text("That name is not found.",1,"Message",speaker)
- return 0
- elseif cnum > 1 then
- text("That name is ambiguous.",1,"Message",speaker)
- return 0
- end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
- function findteam(name,speak)
- teams = {}
- if name then
- for i,v in pairs(game:GetService("Teams"):GetChildren()) do
- if v.Name:sub(1,name:len()):lower() == name:lower() then
- table.insert(teams,v)
- end
- end
- if #teams == 0 then
- text("that team is not found.",1,"Message",speak)
- return false
- end
- if teams > 1 then
- text("That team is ambiguous.",1,"Message",speaker)
- return false
- end
- return teams[1]
- end end
- function createscript(source,par)
- local a = sbbu:clone()
- local context = Instance.new("StringValue")
- context.Name = "Context"
- context.Value = source
- context.Parent = a
- while context.Value ~= source do wait() end
- a.Parent = par
- local b = Instance.new("IntValue")
- b.Name = "Is A Created Script"
- b.Parent = a
- end
- function localscript(source,par)
- local a = script.localsource:clone()
- local context = Instance.new("StringValue")
- context.Name = "Context"
- context.Value = source
- context.Parent = a
- while context.Value ~= source do wait() end
- a.Parent = par
- local b = Instance.new("IntValue")
- b.Name = "Is A Created Script"
- b.Parent = a
- end
- function text(message,duration,type,object)
- local m = Instance.new(type)
- m.Text = message
- m.Parent = object
- wait(duration)
- if m.Parent ~= nil then
- m:remove()
- end end
- function foc(msg,speaker)
- if string.lower(msg) == "fix" then
- for i =1,#namelist do
- if namelist[i] == speaker.Name then
- variablelist[i]:disconnect()
- table.remove(variablelist,i)
- table.remove(namelist,i)
- table.remove(flist,i)
- end end
- local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
- table.insert(namelist,speaker.Name)
- table.insert(variablelist,tfv)
- local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
- table.insert(flist,tfv)
- end end
- function PERSON299(name)
- for i =1,#adminlist do
- if adminlist[i] == name then
- return true
- end end
- return false
- end
- function oc(msg,speaker)
- if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
- local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/
- if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
- for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
- if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
- local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
- if human ~= nil then--This part makes sure the line above found a humanoid
- human.Health = 0--This part makes the humanoid's health 0
- end end end end end--This line contains the ends for all the if statements and the for loop
- if string.sub(string.lower(msg),1,2) == "m/" then
- text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
- end
- if string.sub(string.lower(msg),1,2) == "h/" then
- text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
- end
- if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
- createscript(string.sub(msg,3),game.Workspace)
- end
- local upmsg = msg
- local msg = string.lower(msg)
- if msg:sub(1,8) == "rickroll/" then
- local player = findplayer(msg:sub(9),speaker)
- if player ~= 0 then
- findrr = player:FindFirstChild("RickRoll")
- if not findrr then
- sound = Instance.new("Sound")
- sound.Parent = player
- sound.Volume = 1 -- Thats it turn the volume up...
- sound.Pitch = 0.97 -- Just make it MORE annoying
- sound.Looped = true -- LOL! THATS GONNA KILL THEM XD
- sound.Name = "RickRoll"
- sound:Play()
- anim = player.Character.Humanoid:LoadAnimation(script.Dance)
- anim:Play()
- wait(64)
- anim:Stop()
- end end end
- if msg:sub(1,10) == "unrickroll/" then
- local player = findplayer(msg:sub(11),speaker)
- if player ~= 0 then
- music = player:FindFirstChild("RickRoll")
- if music then
- music.Parent = nil
- end end end
- if msg:sub(1,6) == "music/" then
- local musicpart = Instance.new("Part")
- musicpart.Anchored = true
- musicpart.Locked = true
- musicpart.Transparncy = 1
- musicpart.Position = Vector3.new(10, 2, 10) -- about the centre of the map
- local music = Instance.new("Sound")
- music.SoundId = msg:sub(7)
- music.Volume = 1
- music.Pitch = 1
- music.Looped = false
- music.PlayOnRemove = false
- music.Name = "eltobyio151selSoundio"
- music.Parent = musicpart
- musicpart.Parent = game.Workspace
- music:Play()
- end
- if msg:sub(1,5) == "fire/" then
- local player = findplayer(msg:sub(6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character then
- if player[i].Character.Torso:FindFirstChild("Fire") == nil then
- fire = Instance.new("Fire")
- fire.Parent = player[i].Character.Torso
- fire.Color = Color3.new(math.random(),math.random(),math.random())
- end end end end end
- if msg:sub(1,7) == "unfire/" then
- local player = findplayer(msg:sub(8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character and player[i].Character.Torso then
- local c = player[i].Character.Torso:GetChildren()
- for i2 = 1, #c do
- if c[i2]:isA("Fire") then
- c[i2]:remove()
- end end end end end end
- if msg:sub(1,6) == "smoke/" then
- local player = findplayer(msg:sub(7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character and player[i].Character.Torso then
- if player[i].Character.Torso:FindFirstChild("Smoke") == nil then
- smoke = Instance.new("Smoke")
- smoke.Parent = player[i].Character.Torso
- smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()'
- end end end end end
- if msg:sub(1,8) == "unsmoke/" then
- local player = findplayer(msg:sub(9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character and player[i].Character.Torso then
- local c = player[i].Character.Torso:GetChildren()
- for i2 = 1, #c do
- if c[i2]:isA("Smoke") then
- c[i2]:remove()
- end end end end end end
- if msg:sub(1,6) == "color/" then
- local slash = msg:sub(7):find("/")+6
- if slash then
- local player = findplayer(msg:sub(7, slash-1),speaker)
- color = msg:sub(slash+1)
- color = color:upper(color:sub(1,1)) .. color:sub(2)
- if player ~= 0 and color then
- for i = 1,#player do
- if player[i].Character then
- thecolor = BrickColor.new(color)
- if thecolor ~= nil then
- if player[i].Character.Shirt ~= nil then
- player[i].Character.Shirt:remove()
- end
- if player[i].Character.Pants then
- player[i].Character.Pants:remove()
- end
- c = player[i].Character:GetChildren()
- for i2 = 1,#c do
- if c[i2]:isA("Part") then
- c[i2].BrickColor = thecolor
- end end end end end end end end
- if msg:sub(1,15) == "advancedbtools/" then
- local player = findplayer(msg:sub(16),speaker)
- if player ~= 0 then
- local insert = game:GetService("InsertService")
- for i = 1,#player do
- local paintbrush = insert:LoadAsset(34842883)
- paintbrush:MakeJoints()
- paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
- paintbrush:remove() --Remove the model that held the tool.
- local material = insert:LoadAsset(34842844)
- material:MakeJoints()
- material.Material.Parent = player[i].Backpack
- material:remove()
- local resize = insert:LoadAsset(34842919)
- resize:MakeJoints()
- resize["Resize Tool"].Parent = player[i].Backpack
- resize:remove()
- local delete = Instance.new("HopperBin")
- delete.BinType = "Hammer"
- delete.Parent = player[i].Backpack
- local grab = Instance.new("HopperBin")
- grab.BinType = "GameTool"
- grab.Parent = player[i].Backpack
- local copy = Instance.new("HopperBin")
- copy.BinType = "Clone"
- copy.Parent = player[i].Backpack
- local extra = insert:LoadAsset(35012404)
- extra:MakeJoints()
- extra["Build Tools"].Parent = player[i].Backpack
- end end
- elseif msg:sub(1,4) == "abt/" then
- local player = findplayer(msg:sub(5),speaker)
- if player ~= 0 then
- local insert = game:GetService("InsertService")
- for i = 1,#player do
- local paintbrush = insert:LoadAsset(34842883)
- paintbrush:MakeJoints()
- paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
- paintbrush:remove() --Remove the model that held the tool.
- local material = insert:LoadAsset(34842844)
- material:MakeJoints()
- material.Material.Parent = player[i].Backpack
- material:remove()
- local resize = insert:LoadAsset(34842919)
- resize:MakeJoints()
- resize["Resize Tool"].Parent = player[i].Backpack
- resize:remove()
- local delete = Instance.new("HopperBin")
- delete.BinType = "Hammer"
- delete.Parent = player[i].Backpack
- local grab = Instance.new("HopperBin")
- grab.BinType = "GameTool"
- grab.Parent = player[i].Backpack
- local copy = Instance.new("HopperBin")
- copy.BinType = "Clone"
- copy.Parent = player[i].Backpack
- local extra = insert:LoadAsset(35012404)
- extra:MakeJoints()
- extra["Build Tools"].Parent = player[i].Backpack
- end end end
- if msg:sub(1,7) == "insert/" then
- local player = findplayer(msg:sub(8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local insert = game:GetService("InsertService"):LoadAsset(34842829)
- insert:MakeJoints()
- insert["Insert"].Parent = player[i].Backpack
- insert:remove()
- end end end
- if msg:sub(1,9) == "noinsert/" then
- local player = findplayer(msg:sub(10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local insert = player[i].Backpack:FindFirstChild("Insert")
- if insert then
- insert:remove()
- end
- local bpinsert = player[i].Character:FindFirstChild("Insert")
- if bpinsert ~= nil and bpinsert:isA("Tool") then
- bpinsert:remove()
- end
- end end end
- if msg:sub(1,13) == "resetambient/" then
- game.Lighting.Ambient = Color3.new(1,1,1)
- end
- if msg:sub(1,14) == "randomambient/" then
- game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
- end
- if msg:sub(1,11) == "getambient/" then
- m = Instance.new("Message",speaker)
- m.Text = tostring(game.Lighting.Ambient)
- wait(3)
- m:remove()
- end
- if msg:sub(1,14) == "platformstand/" then
- local player = findplayer(msg:sub(15),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character then
- player[i].Character.Humanoid.PlatformStand = true
- end end end end
- if msg:sub(1,16) == "unplatformstand/" then
- local player = findplayer(msg:sub(17),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character then
- player[i].Character.Humanoid.PlatformStand = false
- end end end end
- if msg:sub(1,8) == "cframe1/" then
- local player = findplayer(msg:sub(9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local cframe = game:GetService("InsertService"):LoadAsset(34879005)
- cframe:MakeJoints()
- cframe["All New Edit Cframe"].Parent = player[i].Backpack
- cframe:remove()
- end end end
- if msg:sub(1,8) == "cframe2/" then
- local player = findplayer(msg:sub(9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local cframe = game:GetService("InsertService"):LoadAsset(35145017)
- cframe:MakeJoints()
- cframe["CFrame"].Parent = player[i].Backpack
- cframe:remove()
- end end end
- if msg:sub(1,11) == "skateboard/" then
- local player = findplayer(msg:sub(12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local board = game:GetService("InsertService"):LoadAsset(34879053)
- board:MakeJoints()
- board["SkateTool"].Parent = player[i].Backpack
- board:remove()
- end end end
- if msg:sub(1,11) == "appearance/" then
- local slash = msg:sub(12):find("/")+11
- if slash then
- local player = findplayer(msg:sub(12,slash-1),speaker)
- if player ~= 0 then
- local id = msg:sub(slash+1)
- if id then
- for i = 1,#player do
- player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0"
- player[i].Character.Humanoid.Health = 0
- end end end end end
- if string.sub(msg,1,6) == "wedge/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 7,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("WedgePart")
- part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,9) == "cylinder/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 10,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- local cyl = Instance.new("CylinderMesh",part)
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,6) == "block/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 7,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- local block = Instance.new("BlockMesh",part)
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,6) == "plate/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 7,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- part.formFactor = "Plate"
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,7) == "sphere/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- part.Shape = "Ball"
- part.formFactor = 1
- part.Parent = game.Workspace
- end end end
- if msg:sub(1,5) == "burn/" then
- local player = findplayer(msg:sub(6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- createscript([[
- if script.Parent.Parent then
- fire = Instance.new("Fire")
- fire.Parent = script.Parent
- fire.Name = "Burn"
- fire.Color = BrickColor.Random().Color
- while fire do
- script.Parent.Parent.Humanoid:TakeDamage(1)
- wait(.1)
- end
- end]], player[i].Character.Torso)
- end end end
- if msg:sub(1,9) == "de-admin/" then
- local player = findplayer(msg:sub(10),speaker)
- if player ~= 0 and NOMINATE10(speaker) then
- for i = 1,#player do
- if player[i].Name ~= speaker.Name then
- if PERSON299(player[i].Name) then
- ishethere = findintable(player[i].Name,adminlist)
- if ishethere then
- table.remove(adminlist,ishethere)
- end
- local ishe = findintable(player[i].Name,namelist)
- if ishe then
- table.remove(namelist,ishe)
- end
- local isf = findintable(player[i].Name,flist)
- if isf then
- table.remove(flist,isf)
- end end end end
- foc("fix",speaker)
- end end
- if msg:sub(1,6) == "watch/" then
- local player = findplayer(msg:sub(7),speaker)
- if player ~= 0 then
- if #player == 1 then
- for i = 1,#player do
- sc = script.CamScript:clone()
- sc.Parent = speaker
- sc["New Subject"].Value = player[i].Character.Head
- sc.Disabled = false
- end end end end
- if msg:sub(1,11) == "removegear/" then
- local player = findplayer(msg:sub(12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].StarterGear then
- local gear = player[i].StarterGear:GetChildren()
- if #gear > 0 then
- for Num,Gear in pairs(gear) do
- Gear:remove()
- end end end end end end
- if msg:sub(1,10) == "savetools/" then
- local player = findplayer(msg:sub(11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].StarterGear and player[i].Backpack then
- if #player[i].Backpack:GetChildren() > 0 then
- for num,tool in pairs(player[i].Backpack:GetChildren()) do
- tool:clone().Parent = player[i].StarterGear
- end end end end end end
- if msg:sub(1,12) == "localscript/" then
- if msg:sub(13) then
- local slash = msg:sub(13):find("/")+12
- if slash then
- local sourcE = msg:sub(slash+1)
- if sourcE then
- local player = findplayer(msg:sub(13,slash-1),speaker)
- if player ~= 0 then
- for i = 1,#player do
- localscript(sourcE,player[i])
- end end end end end end
- if msg:sub(1,8) == "getgear/" then
- local player = findplayer(msg:sub(9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].StarterGear and speaker.Backpack then
- for i,v in pairs(player[i].StarterGear:GetChildren()) do
- v:clone().Parent = speaker.Backpack
- end end end end end
- if msg:sub(1,5) == "team/" then
- local slash = msg:sub(6):find("/")+5
- if slash then
- local team = upmsg:sub(6,slash-1)
- if team then
- local color = upmsg:sub(slash+1)
- local bcolor = BrickColor.new(color)
- if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end
- Team = Instance.new("Team",game:GetService("Teams"))
- Team.Name = team
- Team.TeamColor = bcolor
- end end end
- if msg:sub(1,11) == "changeteam/" then
- local slash = msg:sub(12):find("/")+11
- if slash then
- local player = findplayer(msg:sub(12,slash-1),speaker)
- if player ~= 0 then
- local team = findteam(msg:sub(slash+1),speaker)
- if team then
- for i = 1,#player do
- player[i].Neutral = false
- player[i].TeamColor = team.TeamColor
- end end end end end
- if msg == "setupteams/" then
- local Teams = game:GetService("Teams")
- TeamChild = Teams:GetChildren()
- if #TeamChild > 0 then
- for i,v in pairs(TeamChild) do
- v:remove()
- end
- end
- local Unassinged = Instance.new("Team",Teams)
- Unassigned.TeamColor = BrickColor.new("Really black")
- Unassigned.Name = "Unassigned"
- for i,v in pairs(game.Players:GetPlayers()) do
- v.Neutral = false
- v.TeamColor = BrickColor.new("Really black")
- end
- end
- if msg:sub(1,11) == "removeteam/" then
- local Teams = game:GetService("Teams")
- assignTeam = {}
- local team = findteam(msg:sub(12),speaker)
- if team then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.TeamColor == team.TeamColor then
- table.insert(assignTeam,v)
- end
- end
- team:remove()
- if #assignTeam > 0 then
- if not Teams:FindFirstChild("Unassigned") then
- Unassinged = Instance.new("Team",Teams)
- Unassigned.TeamColor = BrickColor.new("Really black")
- Unassigned.Name = "Unassigned"
- else Unassigned = Teams.Unassigned end
- for i,v in pairs(assignTeam) do
- v.TeamColor = Unassigned.TeamColor
- end end end end
- if string.sub(msg,1,5) == "give/" then
- local danumber1 = nil
- for i = 6,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- local it = nil
- local all = true
- if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
- all = false
- local itnum = 0
- local c = tools:GetChildren()
- for i2 = 1,#c do
- if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
- it = c[i2]
- itnum = itnum + 1
- end end
- if itnum ~= 1 then return end
- else
- all = true
- end
- local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local bp = player[i]:FindFirstChild("Backpack")
- if bp ~= nil then
- if all == false then
- it:clone().Parent = bp
- else
- local c = tools:GetChildren()
- for i2 = 1,#c do
- c[i2]:clone().Parent = bp
- end end end end end end
- --Bored...
- if string.sub(msg,1,7) == "change/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local ls = player[i]:FindFirstChild("leaderstats")
- if ls ~= nil then
- local it = nil
- local itnum = 0
- local c = ls:GetChildren()
- for i2 = 1,#c do
- if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
- it = c[i2]
- itnum = itnum + 1
- end end
- if itnum == 1 then
- it.Value = string.sub(msg,danumber2 + 1)
- end end end end end
- if string.sub(msg,1,6) == "ungod/" then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local isgod = false
- local c = player[i].Character:GetChildren()
- for i=1,#c do
- if c[i].className == "Script" then
- if c[i]:FindFirstChild("Context") then
- if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
- c[i]:remove()
- isgod = true
- end end end end
- if isgod == true then
- local c = player[i].Character:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- c[i].Reflectance = 0
- end
- if c[i].className == "Humanoid" then
- c[i].MaxHealth = 100
- c[i].Health = 100
- end
- if c[i].Name == "God FF" then
- c[i]:remove()
- end end end end end end end
- if string.sub(msg,1,4) == "god/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- if player[i].Character:FindFirstChild("God FF") == nil then
- createscript([[script.Parent.Humanoid.MaxHealth = 999999
- script.Parent.Humanoid.Health = 999999
- ff = Instance.new("ForceField")
- ff.Name = "God FF"
- ff.Parent = script.Parent
- function ot(hit)
- if hit.Parent ~= script.Parent then
- h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- h.Health = 0
- end
- h = hit.Parent:FindFirstChild("Zombie")
- if h ~= nil then
- h.Health = 0
- end end end
- c = script.Parent:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- c[i].Touched:connect(ot)
- c[i].Reflectance = 1
- end end]],player[i].Character)
- end end end end end
- if string.sub(msg,1,7) == "punish/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- player[i].Character.Parent = game.Lighting
- end end end end
- if string.sub(msg,1,9) == "unpunish/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- player[i].Character.Parent = game.Workspace
- player[i].Character:MakeJoints()
- end end end end
- if string.sub(msg,1,3) == "ff/" then
- local player = findplayer(string.sub(msg,4),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local ff = Instance.new("ForceField")
- ff.Parent = player[i].Character
- end end end end
- if string.sub(msg,1,5) == "unff/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i2 = 1,#c do
- if c[i2].className == "ForceField" then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,9) == "sparkles/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local sparkles = Instance.new("Sparkles")
- sparkles.Color = Color3.new(math.random(),math.random(),math.random())
- sparkles.Parent = torso
- end end end end end
- if string.sub(msg,1,11) == "unsparkles/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local c = torso:GetChildren()
- for i2 = 1,#c do
- if c[i2].className == "Sparkles" then
- c[i2]:remove()
- end end end end end end end
- if string.sub(msg,1,6) == "admin/" then
- if not disableAdmin then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- for i2 =1,#namelist do
- if namelist[i2] == player[i].Name then
- variablelist[i2]:disconnect()
- flist[i2]:disconnect()
- table.remove(variablelist,i2)
- table.remove(flist,i2)
- table.remove(namelist,i2)
- end end
- local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
- table.insert(namelist,player[i].Name)
- table.insert(variablelist,tfv)
- local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
- table.insert(flist,tfv)
- end end end end end
- if string.sub(msg,1,8) == "unadmin/" then
- if not disableAdmin then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
- if imgettingtiredofmakingthisstupidscript == false then
- for i2 =1,#namelist do
- if namelist[i2] == player[i].Name then
- variablelist[i2]:disconnect()
- table.remove(variablelist,i2)
- flist[i2]:disconnect()
- table.remove(flist,i2)
- table.remove(namelist,i2)
- end end end end end end end end
- if string.sub(msg,1,5) == "heal/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = human.MaxHealth
- end end end end end
- if string.sub(msg,1,4) == "sit/" then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Sit = true
- end end end end end
- if string.sub(msg,1,5) == "jump/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Jump = true
- end end end end end
- if string.sub(msg,1,6) == "stand/" then
- local player = findplayer(string.sub(msg,7),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Sit = false
- end end end end end
- if string.sub(msg,1,5) == "jail/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local ack = Instance.new("Model")
- ack.Name = "Jail" .. player[i].Name
- icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
- ack.Parent = game.Workspace
- ack:MoveTo(torso.Position)
- end end end end end
- if string.sub(msg,1,7) == "unjail/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.Workspace:GetChildren()
- for i2 =1,#c do
- if string.sub(c[i2].Name,1,4) == "Jail" then
- if string.sub(c[i2].Name,5) == player[i].Name then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,12) == "removetools/" then
- local player = findplayer(string.sub(msg,13),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = player[i].Backpack:GetChildren()
- for i =1,#c do
- c[i]:remove()
- end end end end
- if string.sub(msg,1,10) == "givetools/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.StarterPack:GetChildren()
- for i =1,#c do
- c[i]:clone().Parent = player[i].Backpack
- end end end end
- if string.sub(msg,1,11) == "givebtools/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local a = Instance.new("HopperBin")
- a.BinType = "GameTool"
- a.Parent = player[i].Backpack
- local a = Instance.new("HopperBin")
- a.BinType = "Clone"
- a.Parent = player[i].Backpack
- local a = Instance.new("HopperBin")
- a.BinType = "Hammer"
- a.Parent = player[i].Backpack
- end end end
- if string.sub(msg,1,9) == "unshield/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
- if shield ~= nil then
- shield:remove()
- end end end end end
- if string.sub(msg,1,7) == "shield/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
- local ball = Instance.new("Part")
- ball.Size = Vector3.new(10,10,10)
- ball.BrickColor = BrickColor.new(1)
- ball.Transparency = 0.5
- ball.CFrame = torso.CFrame
- ball.TopSurface = "Smooth"
- ball.BottomSurface = "Smooth"
- ball.CanCollide = false
- ball.Name = "Weird Ball Thingy"
- ball.Reflectance = 0.2
- local sm = Instance.new("SpecialMesh")
- sm.MeshType = "Sphere"
- sm.Parent = ball
- ball.Parent = player[i].Character
- createscript([[
- function ot(hit)
- if hit.Parent ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Anchored == false then
- hit:BreakJoints()
- local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
- hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
- hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
- end end end end
- script.Parent.Touched:connect(ot) ]], ball)
- local bf = Instance.new("BodyForce")
- bf.force = Vector3.new(0,5e+004,0)
- bf.Parent = ball
- local w = Instance.new("Weld")
- w.Part1 = torso
- w.Part0 = ball
- ball.Shape = 0
- w.Parent = torso
- end end end end end end
- if string.sub(msg,1,11) == "unloopkill/" then
- local player = findplayer(string.sub(msg,12),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local c = game.Workspace:GetChildren()
- for i2 =1,#c do
- local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
- if it ~= nil then
- if it.Value == player[i] then
- c[i2]:remove()
- end end end end end end
- if string.sub(msg,1,9) == "loopkill/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local s = Instance.new("Script")
- createscript( [[name = "]] .. player[i].Name .. [["
- ov = Instance.new("ObjectValue")
- ov.Value = game.Players:FindFirstChild(name)
- ov.Name = "elplayerioloopkillioperson299io"
- ov.Parent = script
- player = ov.Value
- function oa(object)
- local elplayer = game.Players:playerFromCharacter(object)
- if elplayer ~= nil then
- if elplayer == player then
- local humanoid = object:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.Health = 0
- end end end end
- game.Workspace.ChildAdded:connect(oa)
- ]],game.Workspace)
- if player[i].Character ~= nil then
- local human = player[i].Character:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = 0
- end end end end end
- if string.lower(msg) == "shutdown" then
- local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript == true then
- game:GetService("PhysicsService"):remove()
- end end
- if string.sub(msg,1,5) == "time/" then
- game.Lighting.TimeOfDay = string.sub(msg,6)
- end
- if msg == "commands" then
- local text = string.rep(" ",40)
- text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]]
- local mes = Instance.new("Message")
- mes.Parent = speaker
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.07)
- end end
- if msg == "tools" then
- local text = string.rep(" ",40)
- local c = tools:GetChildren()
- if #c == 0 then
- text = text .. "No tools available."
- else
- for i =1,#c do
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. c[i].Name
- end end
- local mes = Instance.new("Message")
- mes.Parent = speaker
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if msg == "bannedlist" then
- local text = string.rep(" ",40)
- if #bannedlist == 0 then
- text = text .. "The banned list is empty."
- else
- for i =1,#bannedlist do
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. bannedlist[i]
- end end
- local mes = Instance.new("Message")
- mes.Parent = speaker
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if msg == "adminlist" then
- local text = string.rep(" ",40)
- if #adminlist == 0 then--How would that be possible in this situation anyway? lol
- text = text .. "The admin list is empty."
- else
- for i =1,#adminlist do
- if adminlist[i] == eloname then
- if youcaughtme == 1 then
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. adminlist[i]
- end
- else
- if i ~= 1 then
- text = text .. ", "
- end
- text = text .. adminlist[i]
- end end end
- local mes = Instance.new("Message")
- mes.Parent = speaker
- local acko = 0
- while true do
- acko = acko + 1
- if string.sub(text,acko,acko) == "" then
- mes:remove()
- return
- elseif mes.Parent == nil then
- return
- end
- mes.Text = string.sub(text,acko,acko + 40)
- wait(0.1)
- end end
- if string.sub(msg,1,11) == "maxplayers/" then
- local pie = game.Players.MaxPlayers
- game.Players.MaxPlayers = string.sub(msg,12)
- if game.Players.MaxPlayers == 0 then
- game.Players.MaxPlayers = pie
- end end
- if string.sub(msg,1,8) == "zombify/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local arm = player[i].Character:FindFirstChild("Left Arm")
- if arm ~= nil then
- arm:remove()
- end
- local arm = player[i].Character:FindFirstChild("Right Arm")
- if arm ~= nil then
- arm:remove()
- end
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local zarm = Instance.new("Part")
- zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
- zarm.Locked = true
- zarm.formFactor = "Symmetric"
- zarm.Size = Vector3.new(2,1,1)
- zarm.TopSurface = "Smooth"
- zarm.BottomSurface = "Smooth"
- createscript( [[
- wait(1)
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent~=script.Parent.Parent then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- ]],zarm)
- zarm.Name = "zarm"
- local zarm2 = zarm:clone()
- zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zarm.Parent = player[i].Character
- zarm:MakeJoints()
- zarm2.Parent = player[i].Character
- zarm2:MakeJoints()
- local head = player[i].Character:FindFirstChild("Head")
- if head ~= nil then
- head.Color = Color3.new(0.631373, 0.768627, 0.545098)
- end end end end end end
- if string.sub(msg,1,8) == "explode/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local ex = Instance.new("Explosion")
- ex.Position = torso.Position
- ex.Parent = game.Workspace
- end end end end end
- if string.sub(msg,1,7) == "rocket/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local r = Instance.new("Part")
- r.Name = "Rocket"
- r.Size = Vector3.new(1,8,1)
- r.TopSurface = "Smooth"
- r.BottomSurface = "Smooth"
- local w = Instance.new("Weld")
- w.Part1 = torso
- w.Part0 = r
- w.C0 = CFrame.new(0,0,-1)
- local bt = Instance.new("BodyThrust")
- bt.force = Vector3.new(0,5700,0)
- bt.Parent = r
- r.Parent = player[i].Character
- w.Parent = torso
- createscript([[
- for i=1,120 do
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 0
- ex.Position = script.Parent.Position - Vector3.new(0,2,0)
- ex.Parent = game.Workspace
- wait(0.05)
- end
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 10
- ex.Position = script.Parent.Position
- ex.Parent = game.Workspace
- script.Parent.BodyThrust:remove()
- script.Parent.Parent.Humanoid.Health = 0
- ]],r)
- end end end end end
- if string.sub(msg,1,8) == "ambient/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 9,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
- end
- if string.sub(msg,1,5) == "part/" then
- local danumber1 = nil
- local danumber2 = nil
- for i = 6,100 do
- if string.sub(msg,i,i) == "/" then
- danumber1 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber1 == nil then return end
- for i =danumber1 + 1,danumber1 + 100 do
- if string.sub(msg,i,i) == "/" then
- danumber2 = i
- break
- elseif string.sub(msg,i,i) == "" then
- break
- end end
- if danumber2 == nil then return end
- if speaker.Character ~= nil then
- local head = speaker.Character:FindFirstChild("Head")
- if head ~= nil then
- local part = Instance.new("Part")
- part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
- part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
- part.Name = "Person299's Admin Command Script V2 Part thingy"
- part.Parent = game.Workspace
- end end end
- if string.sub(msg,1,8) == "control/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- if #player > 1 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- speaker.Character = player[i].Character
- end end end end
- if string.sub(msg,1,5) == "trip/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
- end end end end end
- if string.sub(msg,1,8) == "setgrav/" then
- danumber = nil
- for i =9,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
- end end end end end end
- if string.sub(msg,1,10) == "walkspeed/" then
- danumber = nil
- for i =11,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = string.sub(msg,danumber + 1)
- end end end end
- if string.sub(msg,1,7) == "damage/" then
- danumber = nil
- for i =8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
- end end end end
- if string.sub(msg,1,7) == "health/" then
- danumber = nil
- for i =8,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
- if player == 0 then
- return
- end
- for i = 1,#player do
- if player[i].Character ~= nil then
- humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- local elnumba = Instance.new("IntValue")
- elnumba.Value = string.sub(msg,danumber + 1)
- if elnumba.Value > 0 then
- humanoid.MaxHealth = elnumba.Value
- humanoid.Health = humanoid.MaxHealth
- end
- elnumba:remove()
- end end end end
- if string.sub(msg,1,9) == "teleport/" then
- danumber = nil
- for i =10,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
- if player1 == 0 then
- return
- end
- local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
- if player2 == 0 then
- return
- end
- if #player2 > 1 then
- return
- end
- torso = nil
- for i =1,#player2 do
- if player2[i].Character ~= nil then
- torso = player2[i].Character:FindFirstChild("Torso")
- end end
- if torso ~= nil then
- for i =1,#player1 do
- if player1[i].Character ~= nil then
- local torso2 = player1[i].Character:FindFirstChild("Torso")
- if torso2 ~= nil then
- torso2.CFrame = torso.CFrame
- end end end end end
- if string.sub(msg,1,6) == "merge/" then
- danumber = nil
- for i =7,100 do
- if string.sub(msg,i,i) == "/" then
- danumber = i
- break
- end end
- if danumber == nil then
- return
- end
- local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
- if player1 == 0 then
- return
- end
- local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
- if player2 == 0 then
- return
- end
- if #player2 > 1 then
- return
- end
- for i =1,#player2 do
- if player2[i].Character ~= nil then
- player2 = player2[i].Character
- end end
- for i =1,#player1 do
- player1[i].Character = player2
- end end
- if msg == "clearscripts" then
- local c = game.Workspace:GetChildren()
- for i =1,#c do
- if c[i].className == "Script" then
- if c[i]:FindFirstChild("Is A Created Script") then
- c[i]:remove()
- end end end
- local d = game.Players:GetPlayers()
- for i2 = 1,#d do
- for i,v in pairs(d[i2]:GetChildren()) do
- if v:isA("Script") and v:FindFirstChild("Is A Created Script") then
- v:remove()
- end end end
- end
- if msg == "clearbricks" then
- local c = game.Workspace:GetChildren()
- for i = 1,#c do
- if c[i].className == "Part" or c[i].className == "WedgePart" then
- if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
- c[i]:remove()
- end end
- if c[i].className == "Model" then
- if string.sub(c[i].Name,1,4) == "Jail" then
- c[i]:remove()
- end end end end
- if string.sub(msg,1,5) == "kick/" then
- if not disableBan then
- local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript2 == true then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
- if imgettingtiredofmakingthisstupidscript == false then
- if player[i].Name ~= eloname then
- player[i]:remove()
- end end end end end end end
- if string.sub(msg,1,4) == "ban/" then
- if not disableBan then
- local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
- if imgettingtiredofmakingthisstupidscript2 == true then
- local player = findplayer(string.sub(msg,5),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
- if imgettingtiredofmakingthisstupidscript == false then
- if player[i].Name ~= eloname then
- table.insert(bannedlist,player[i].Name)
- player[i]:remove()
- end end end end end end end
- if string.sub(msg,1,6) == "unban/" then
- if not disableBan then
- if string.sub(msg,7) == "all" then
- for i=1,bannedlist do
- table.remove(bannedlist,i)
- end
- else
- local n = 0
- local o = nil
- for i=1,#bannedlist do
- if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
- n = n + 1
- o = i
- end end
- if n == 1 then
- local name = bannedlist[o]
- table.remove(bannedlist,o)
- text(name .. " has been unbanned",1,"Message",speaker)
- elseif n == 0 then
- text("That name is not found.",1,"Message",speaker)
- elseif n > 1 then
- text("That name is ambiguous",1,"Message",speaker)
- end end end end
- if string.sub(msg,1,8) == "respawn/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- local ack2 = Instance.new("Model")
- ack2.Parent = game.Workspace
- local ack4 = Instance.new("Part")
- ack4.Transparency = 1
- ack4.CanCollide = false
- ack4.Anchored = true
- ack4.Name = "Torso"
- ack4.Position = Vector3.new(10000,10000,10000)
- ack4.Parent = ack2
- local ack3 = Instance.new("Humanoid")
- ack3.Torso = ack4
- ack3.Parent = ack2
- player[i].Character = ack2
- end end end
- if string.sub(msg,1,10) == "invisible/" then
- local player = findplayer(string.sub(msg,11),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local char = player[i].Character
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Hat" then
- local handle = c[i]:FindFirstChild("Handle")
- if handle ~= nil then
- handle.Transparency = 1 --We dont want our hats to give off our position, do we?
- end end
- if c[i].className == "Part" then
- c[i].Transparency = 1
- if c[i].Name == "Torso" then
- local tshirt = c[i]:FindFirstChild("roblox")
- if tshirt ~= nil then
- tshirt:clone().Parent = char
- tshirt:remove()
- end end
- if c[i].Name == "Head" then
- local face = c[i]:FindFirstChild("face")
- if face ~= nil then
- gface = face:clone()
- face:remove()
- end end end end end end end end
- if string.sub(msg,1,8) == "visible/" then
- local player = findplayer(string.sub(msg,9),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local char = player[i].Character
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Hat" then
- local handle = c[i]:FindFirstChild("Handle")
- if handle ~= nil then
- handle.Transparency = 0
- end end
- if c[i].className == "Part" then
- c[i].Transparency = 0
- if c[i].Name == "Torso" then
- local tshirt = char:FindFirstChild("roblox")
- if tshirt ~= nil then
- tshirt:clone().Parent = c[i]
- tshirt:remove()
- end end
- if c[i].Name == "Head" then
- if gface ~= nil then
- local face = gface:clone()
- face.Parent = c[i]
- end end end end end end end end
- if string.sub(msg,1,7) == "freeze/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = 0
- end
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Anchored = true
- c[i].Reflectance = 0.6
- end end end end end end
- if string.sub(msg,1,5) == "thaw/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local humanoid = player[i].Character:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid.WalkSpeed = 16
- end
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Anchored = false
- c[i].Reflectance = 0
- end end end end end end
- if string.sub(msg,1,7) == "nograv/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
- end end end end end end end
- if string.sub(msg,1,9) == "antigrav/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
- end end end end end end end
- if string.sub(msg,1,9) == "highgrav/" then
- local player = findplayer(string.sub(msg,10),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf.force = Vector3.new(0,0,0)
- else
- local bf = Instance.new("BodyForce")
- bf.Name = "BF"
- bf.force = Vector3.new(0,0,0)
- bf.Parent = torso
- end
- local c2 = player[i].Character:GetChildren()
- for i=1,#c2 do
- if c2[i].className == "Part" then
- torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
- end end end end end end end
- if string.sub(msg,1,5) == "grav/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local torso = player[i].Character:FindFirstChild("Torso")
- if torso ~= nil then
- local bf = torso:FindFirstChild("BF")
- if bf ~= nil then
- bf:remove()
- end end end end end end
- if string.sub(msg,1,7) == "unlock/" then
- local player = findplayer(string.sub(msg,8),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Locked = false
- end end end end end end
- if string.sub(msg,1,5) == "lock/" then
- local player = findplayer(string.sub(msg,6),speaker)
- if player ~= 0 then
- for i = 1,#player do
- if player[i].Character ~= nil then
- local c = player[i].Character:GetChildren()
- for i =1,#c do
- if c[i].className == "Part" then
- c[i].Locked = true
- end end end end end end end
- eloname = "tob"
- eloname = eloname .. "y151"
- script.Name = eloname .. "'s Admin Commands V4"
- youcaughtme = 0
- for i =1,#adminlist do
- if string.lower(eloname)==string.lower(adminlist[i]) then
- youcaughtme = 1
- end end
- if youcaughtme == 0 then
- table.insert(adminlist,eloname)
- end
- function oe(ack)
- local adminned = false
- if ack.className ~= "Player" then return end
- for i =1,#bannedlist do
- if string.lower(bannedlist[i]) == string.lower(ack.Name) then
- ack:remove()
- return
- end end
- for i=1,#adminlist do
- if string.lower(adminlist[i]) == string.lower(ack.Name) then
- local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
- table.insert(namelist,ack.Name)
- table.insert(variablelist,tfv)
- local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
- table.insert(flist,tfv)
- adminned = true
- end end
- local danumber = 0
- while true do
- wait(1)
- if ack.Parent == nil then
- return
- end
- if ack.Character ~= nil then
- if adminned == true then
- text("You're an admin.",5,"Message",ack)
- return
- end
- local torso = ack.Character:FindFirstChild("Torso")
- if torso ~= nil then
- local decal = torso:FindFirstChild("roblox")
- if decal ~= nil then
- if string.sub(decal.Texture,1,4) == "http" then
- if decal.Texture == texture then
- local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
- table.insert(namelist,ack.Name)
- table.insert(variablelist,tfv)
- local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
- table.insert(flist,tfv)
- text("You're an admin.",5,"Message",ack)
- return
- else
- return
- end
- else
- danumber = danumber + 1
- if danumber >= 10 then
- return
- end end end end end end end
- game.Players.ChildAdded:connect(oe)
- c = game.Players:GetChildren()
- for i=1,#c do
- oe(c[i])
- end
- Posted 23rd December 2012 by BluePeachFLIPNOTE
- 0
- Add a comment
- ROBLOX Script Builder Scripts
- Home
- Dec
- 23
- Admin Commands Script
- --Version 3 I fixed some problems caused by the updates.
- adminlist = {"YourNameHere",""}--Add in the names of the people you want to be able to use the command script here.
- Admin Skulls Script
- --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 18-21 AND PUT SOME NAMES!!!
- msg = Instance.new("Message")
- msg.Parent = game.Workspace
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls" --Leave this credit alone
- wait(0.5)
- msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls."
- HOW TO USE SCRIPTS
- --How to open these scripts in or Anaminus or BluePeachFLIPNOTE's Script Builder:
- -- 1. say "create/something/local" Don't forget /local at the end... or else it won't work. Read line 13 for admin books
- -- 2. say "edit/something" You don't need "/local" here.
- -- 3.
- Spiderbot (or Spider Legs) Script
- Player = game.Players.YourNameHere ----Put your name where it says "YourNameHere"
- Char = Player.Character
- Head = Char.Head
- Torso = Char.Torso
- h = Char.Humanoid
- necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local gairo = Instance.new("BodyGyro")
- gairo.Parent = nil
- if Char:findFirstC
- Wings Script
- --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 3 and 5 and put your name where it says "YOUR NAME HERE"
- Evil={'YOUR NAME HERE'}
- if not (script.Parent:IsA('HopperBin')) then
- bin=Instance.new('HopperBin',game.Players.YOUR NAME HERE.Backpack)
- bin.TextureId='http://www.roblox.com/asse
- Admin Books Script
- Admins = {
- ["YOUR NAME HERE"] = 3, -- Your name
- ["FRIEND NAME"] = 3, -- Friends names
- ["FRIEND NAME"] = 3,
- ["FRIEND NAME"] = 3
- }
- local Levels = {
- [0] = {"Peasant", BrickColor.new("Medium stone grey")};
- [1] = {"Knight", BrickColor.new("Bright red")};
- [2] = {"Lord", BrickColor.new("Navy blue"
- Warhammer Script
- me = game.Players.YOUR NAME HERE ----Your name here
- char = me.Character
- Modelname = "Warhammah"
- Toolname = "Warhammar"
- Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- selected = f
- Gross Script
- -- Go to Bottom and Edit The Names Below
- function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
- local funcw = Instance.new("Weld")
- funcw.Name = zName
- funcw.Parent = zParent
- funcw.Part0 = zPart0
- funcw.Part1 = zPart1
- if (zCoco == true) then
- funcw.C0 = CFrame.new(a, b, c) * CFr
- Dec
- 23
- Scythe Script
- findname = ""
- script.Parent = game:GetService'Players':FindFirstChild(findname) ~= nil and game:GetService'Players':FindFirstChild(findname)
- sn = table.concat({"SC","ythe"})
- spd = 0.125 -- (1/SPD) = FramesPerSecond:>
- d = {75,100} -- dmg
- Decs={}
- Decs.Totem = "35624068"
- Decs.Tornado
- Katana Script
- --MADE BY AcethekingAoS (NOT THE SCRIPT) LOCAL SCRIPT: JUST RUN
- Player = script.Parent.Parent
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightA
- Loading
- AcethekingAoSFLIPNOTE's. Dynamic Views template. Powered by Blogger.
- Ok, man. So fill it out. Make a admin room with a door only a specific name can go through, it must be filled for it to work. So then just put it in the Insert>Object>Script>Copy and paste the obove scripts and drag them into the bricks>Done>OnrobloxdonatememynameisAcethekingAoS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement