Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Admin Commands Script
- --//Variables\\--
- local Admins = {"drums04", "Crystal5241"} --//People who you want as admins
- local maincolor = Color3.new(.1,0,1)
- local EyeSizes={
- NumberSequenceKeypoint.new(0,0.65,0),
- NumberSequenceKeypoint.new(0.5,0.7,0),
- NumberSequenceKeypoint.new(1,0,0)
- }
- local EyeTrans={
- NumberSequenceKeypoint.new(0,0,0),
- NumberSequenceKeypoint.new(0.5,0,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- local PE=Instance.new("ParticleEmitter")
- PE.LightEmission=.9
- PE.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color,BrickColor.new("Royal purple").Color)
- PE.Size=NumberSequence.new(EyeSizes)
- PE.Transparency=NumberSequence.new(EyeTrans)
- PE.Lifetime=NumberRange.new(0.35)
- PE.Rotation=NumberRange.new(0,360)
- PE.Rate=999
- PE.VelocitySpread = 10000
- PE.Acceleration = Vector3.new(0,25,0)
- PE.ZOffset = 0.5
- PE.Drag = 0
- PE.Speed = NumberRange.new(0,0,0)
- PE.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
- PE.Name = "PE"
- PE.Enabled = true
- PE.LockedToPart = true
- function fireparticles(art)
- local PARTICLES = PE:Clone()
- PARTICLES.Parent = art
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = Instance.new(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = Instance.new("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --//Events\\--
- game.Players.PlayerAdded:connect(function(Player)
- local Folder = Instance.new("Folder", Player)
- Folder.Name = "PlayerValues"
- local BanCheck = Instance.new("BoolValue", Folder)
- BanCheck.Name = "IsBanned"
- BanCheck.Value = BanList:GetAsync(Player.userId) or false --//False is default if no save for the player
- --//Checks if the player is banned or not
- if Player.PlayerValues.IsBanned.Value == true then
- Player:Kick("You're Banned") --//Reason for kick
- end
- Player.Chatted:connect(function(message)
- for i, AdminName in ipairs(Admins) do
- if Player.Name == AdminName then
- --//Commands\\--
- --//Kill Command
- if message:sub(1, 6) == "/kill " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- if TargetPlayer then
- local Character = TargetPlayer.Character
- if Character then
- Character.Humanoid.Health = 0
- end
- end
- end
- --//Heal Command
- if message:sub(1, 6) == "/heal " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- if TargetPlayer then
- local Character = TargetPlayer.Character
- if Character then
- Character.Humanoid.Health = Character.Humanoid.MaxHealth
- end
- end
- end
- --//Surge Command
- if message:sub(1, 7) == "/surge " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(8))
- if TargetPlayer then
- wait(1)
- local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
- FIST.CanCollide = true
- CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
- fireparticles(FIST)
- table.insert(FISTS,FIST)
- local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
- FIST.CanCollide = true
- CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
- fireparticles(FIST)
- table.insert(FISTS,FIST)
- local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
- FIST.CanCollide = true
- CreateWeldOrSnapOrMotor("Weld", FIST, RightLeg, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
- fireparticles(FIST)
- table.insert(FISTS,FIST)
- local FIST = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Comet", VT(1,0,1),false)
- FIST.CanCollide = true
- CreateWeldOrSnapOrMotor("Weld", FIST, LeftLeg, FIST, CF(0, -1, 0), CF(0, 0.0, 0))
- fireparticles(FIST)
- table.insert(FISTS,FIST)
- end
- end
- --//Kick Command
- if message:sub(1, 6) == "/kick " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- if TargetPlayer then
- TargetPlayer:Kick("Kicked by " .. Player.Name) --//Kick message/reason
- end
- end
- --//Tag Command
- if message:sub(1, 5) == "/tag " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(6))
- if TargetPlayer then
- CV="Royal purple"
- p = TargetPlayer
- char = p.Character
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Cartoon"
- text.TextStrokeColor3 = maincolor
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(255,255,255)
- v.Shape="Block"
- text.Text = "Omega"
- end
- --//trail command
- if message:sub(1, 7) == "/trail " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(8))
- if TargetPlayer then
- chara = TargetPlayer.Character
- Head = chara.Head
- Torso = chara.Torso
- local A1 = Instance.new("Attachment",Head)
- A1.Position = Vector3.new(0, 0.5, 0)
- local A2 = Instance.new("Attachment",Torso)
- A2.Position = Vector3.new(0, -0.5, 0)
- local Trail = Instance.new("Trail",Torso)
- Trail.LightEmission = 1
- Trail.FaceCamera = true
- Trail.Texture = "rbxassetid://"
- Trail.Attachment0 = A1
- Trail.Attachment1 = A2
- Trail.Lifetime = 2
- Trail.MinLength = 10
- Trail.Transparency = NumberSequence.new(0, 0)
- Trail.Color = ColorSequence.new(maincolor, maincolor)
- end
- --//Ban Command
- if message:sub(1, 5) == "/ban " then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(6))
- if TargetPlayer then
- local BanCheck = TargetPlayer.PlayerValues.IsBanned
- if BanCheck then
- BanCheck.Value = true
- BanList:SetAsync(TargetPlayer.userId, true)
- end
- TargetPlayer:Kick("You've been banned by " .. Player.Name) --//Reason || Message
- end
- end
- --//Unban Command
- if message:sub(1, 7) == "/unban " then --//USES ID NOT NAME
- local UserId = tonumber(message:sub(8))
- if UserId then
- BanList:SetAsync(UserId, false)
- end
- end
- break
- end
- end
- end
- end
- end
- )
- end
- )
Add Comment
Please, Sign In to add comment