Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local slock = false
- local antijail2 = true
- tpAdminPadEnabled = true
- local ResetPads = game.Workspace.SecureParts.ResetPads.ClickDetector
- local function DestroyJail(part)
- if part:IsA("Model") and part.Name == game.Players.LocalPlayer.Name.."_ADONISJAIL" then
- game:GetService("Players"):Chat(":free me")
- end
- end
- local function Perm()
- if ResetPads.MaxActivationDistance == 0 then
- local OriginalPosition = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- wait(0.3)
- local v = 13.6
- for i = 1, 9, 1 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v, 28.3, 106.4)
- v = v - 4
- wait(0.01)
- end
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(OriginalPosition)
- end
- end
- function runCmd(cmd)
- Players:Chat(cmd)
- end
- local function RemoveFromTable(fromTable, toRemove)
- local result = fromTable
- for i, object in ipairs(result) do
- if object == toRemove then
- table.remove(result, i)
- end
- end
- return result
- end
- local function PlayerDied()
- local Position = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- if Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
- Players:Chat(":re")
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Vector3.new(Position)
- end
- end
- local x = 13.6
- local pos = Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- wait(0.3)
- for i = 1, 9, 1 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x, 28.3, 106.4)
- x = x - 4
- wait(0.01)
- end
- Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
- Players:WaitForChild("prokri43"):WaitForChild("Backpack")
- local RemoteEvent = coroutine.create(function()
- while true do
- if not Players.LocalPlayer.Backpack:FindFirstChild("Folder") then
- Players:Chat(":F3x")
- Players.LocalPlayer.Backpack:WaitForChild("Folder")
- SyncEvent = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
- end
- wait()
- end
- end)
- coroutine.resume(RemoteEvent)
- local function GetParts(group)
- local partsList = {}
- for i, part in ipairs(group) do
- if part.Archivable then
- partsList[i] = part
- end
- end
- return partsList
- end
- local function FindPlayer(abbreviation)
- if abbreviation:lower() == "me" then
- return Players.LocalPlayer.Name
- elseif abbreviation:lower() == "others" then
- local others = ""
- for _, player in ipairs(Players:GetChildren()) do
- if player ~= Players.LocalPlayer then
- if others == "" then
- others = player.Name
- else
- others = others .. "," .. player.Name
- end
- end
- end
- return others
- elseif abbreviation:lower() == "all" then
- local all = ""
- for _, player in ipairs(Players:GetChildren()) do
- if all == "" then
- all = player.Name
- else
- all = all .. "," .. player.Name
- end
- end
- return all
- elseif abbreviation:lower() == "random" then
- local randomPlayer = (RemoveFromTable(Players:GetChildren(), Players.LocalPlayer))[math.random(#(Players:GetChildren()) - 1)]
- return randomPlayer.Name
- else
- for _, player in ipairs(Players:GetChildren()) do
- if (player.Name):sub(1, #abbreviation):lower() == abbreviation:lower() then
- return player.Name
- elseif (player.DisplayName):sub(1, #abbreviation):lower() == abbreviation:lower() then
- return player.Name
- end
- end
- end
- end
- local Prefix = "."
- local PlayerCommands = {
- statue = function(playerTarget)
- print(playerTarget)
- local toUngroup = playerTarget:split(",")
- print(#toUngroup)
- for i, thing in ipairs(toUngroup) do
- toUngroup[i] = workspace:FindFirstChild(thing)
- print(thing)
- end
- SyncEvent:InvokeServer("Ungroup", toUngroup)
- end,
- fkick = function(playerTarget)
- Players:Chat(":loadb nkickbase | :free " .. playerTarget .. " | :re " .. playerTarget .. " | :wait 5 | :tp " .. playerTarget .. " wp-namekickbase| :runc talk2 | :runc talk2")
- wait(1)
- for i=1, 5, 1 do
- Players:Chat(":talk others,-" .. playerTarget .." .")
- wait()
- end
- wait(5)
- Players:Chat(":unloadb nkickbase")
- end,
- mute = function(playerTarget)
- if playerTarget == Players.LocalPlayer.Name then
- Players:Chat(":npm me You can't mute yourself.")
- else
- local command = ":r6 " .. playerTarget
- RunService:BindToRenderStep(playerTarget .. ":mute", 1, function()
- Players:Chat(command)
- wait(0.00000000001)
- end)
- end
- end,
- unmute = function(playerTarget)
- if playerTarget == Players.LocalPlayer.Name then
- Players:Chat(":npm me You can't unmute yourself.")
- else
- RunService:UnbindFromRenderStep(playerTarget .. ":mute")
- end
- end,
- skick = function(playerTarget)
- Players:Chat(":Re "..playerTarget.." | :loadb skick | :free " .. playerTarget .. " | :fview " .. playerTarget .. " me | :setgrav " .. playerTarget .. " 1000 | :speed " .. playerTarget .. " 0 | :invisible " .. playerTarget)
- local playerRespawned
- playerRespawned = workspace.ChildRemoved:Connect(function(model)
- if model.Name == playerTarget then
- local toGroup = {
- [1] = workspace:WaitForChild(playerTarget),
- [2] = workspace:WaitForChild("SkateboardPlatform")
- }
- SyncEvent:InvokeServer("CreateGroup", "Model", workspace, toGroup)
- repeat
- wait()
- until not workspace:FindFirstChild(playerTarget)
- Players:Chat(":tp " .. playerTarget .. " wp-skick")
- for i=1, 5, 1 do
- if not Players:FindFirstChild(playerTarget) then
- break
- end
- Players:Chat(":jump " .. playerTarget)
- wait(0.1)
- if not Players:FindFirstChild(playerTarget) then
- break
- end
- Players:Chat(":jump " .. playerTarget)
- wait(0.1)
- if not Players:FindFirstChild(playerTarget) then
- break
- end
- Players:Chat(":sit " .. playerTarget)
- wait(0.1)
- end
- end
- playerRespawned:Disconnect()
- end)
- wait(5)
- Players:Chat(":unloadb skick")
- end,
- crash = function(playerTarget)
- local player = game.Players:FindFirstChild(playerTarget)
- game.Players:Chat(":fviewcam "..playerTarget.." crash |:fov "..playerTarget.." 0 | :chatnotify all "..playerTarget.." Has been crashed!")
- repeat
- wait()
- until not game.Players:FindFirstChild(playerTarget)
- runCmd(":unloadb ballsz")
- end,
- ban = function(playerTarget)
- if playerTarget == Players.LocalPlayer.Name then
- Players:Chat(":npm me You can't ban yourself.")
- else
- local bannedplrs = {}
- local playerId = game.Players:FindFirstChild(playerTarget).UserId
- table.insert(bannedplrs, playerId)
- game.Players:Chat(":npm "..playerTarget.." You have been banned!")
- game.Players:Chat(":loadb nkickbase | :tp "..playerTarget.." wp-namekickbase | :runc talk2 | :fov "..playerTarget.." 80")
- game.Players.PlayerAdded:Connect(function(player)
- if table.find(bannedplrs, player.UserId) then
- game.Players:Chat(":npm "..playerTarget.." Your Banned from this server!")
- game.Players:Chat(":loadb nkickbase | :wait 5 | :tp "..playerTarget.." wp-namekickbase | :runc talk2 | :fov "..playerTarget.." 80")
- end
- end)
- end
- end
- }
- local NormalCommands = {
- delparts = function()
- local partsToClear = {}
- for i, part in ipairs(workspace:GetDescendants()) do
- if pcall(function() return part["Locked"] end) then -- if locked is a property of part
- if not part.Locked then
- table.insert(partsToClear, (#partsToClear + 1), part)
- print(part)
- end
- else
- if part.ClassName == "Model" and not part.Name == "SecureParts" and part.Archivable then -- if it's a model which isn't a player character nor SecureParts
- table.insert(partsToClear, (#partsToClear + 1), part)
- print(part)
- end
- end
- end
- Players:Chat(":hpm me " .. #partsToClear .. " parts were cleared.")
- SyncEvent:InvokeServer("Remove", partsToClear)
- end,
- blockrpads = function()
- SyncEvent:InvokeServer("CreatePart", "Normal", CFrame.new(23, 25, 106), workspace)
- for _, part in pairs(workspace:GetChildren()) do
- if pcall(function() return part.Position end) then
- if part.CFrame == CFrame.new(23, 25, 106) then
- SyncEvent:InvokeServer("SetName", {part}, "ResetPadsBlock")
- end
- end
- end
- SyncEvent:InvokeServer("SyncResize", {{
- ["Part"] = workspace:FindFirstChild("ResetPadsBlock"),
- ["CFrame"] = CFrame.new(23, 25, 106),
- ["Size"] = Vector3.new(4.1, 0.6, 4.1)
- }})
- SyncEvent:InvokeServer("SyncMaterial", {{
- ["Part"] = workspace:FindFirstChild("ResetPadsBlock"),
- ["Transparency"] = 1
- }})
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, true)
- blockedResetPads = true
- local resetPadsLocking = coroutine.create(function()
- while blockedResetPads do
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, true)
- end
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, false)
- end)
- coroutine.resume(resetPadsLocking)
- Players:Chat(":npm me The reset pads is blocked.")
- end,
- unblockrpads = function()
- Players:Chat(":npm me Please wait until the reset pads is blocked.")
- blockedResetPads = false
- repeat
- wait()
- until not workspace:FindFirstChild("ResetPadsBlock").Locked
- SyncEvent:InvokeServer("Remove", {workspace:FindFirstChild("ResetPadsBlock")})
- Players:Chat(":npm me The reset pads is unblocked.")
- end,
- blockadmin = function()
- SyncEvent:InvokeServer("CreatePart", "Normal", CFrame.new(23, 25, 106), workspace)
- for _, part in pairs(workspace:GetChildren()) do
- if pcall(function() return part.Position end) then
- if part.CFrame == CFrame.new(23, 25, 106) then
- SyncEvent:InvokeServer("SetName", {part}, "AdminBlock")
- end
- end
- end
- SyncEvent:InvokeServer("SyncResize", {{
- ["Part"] = workspace:FindFirstChild("AdminBlock"),
- ["CFrame"] = CFrame.new(-1.8, 25.05, 106.74),
- ["Size"] = Vector3.new(37, 4, 6)
- }})
- SyncEvent:InvokeServer("SyncMaterial", {{
- ["Part"] = workspace:FindFirstChild("AdminBlock"),
- ["Transparency"] = 0.6,
- ["Material"] = Enum.Material.Glass
- }})
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, true)
- blockedAdmin = true
- local adminLocking = coroutine.create(function()
- while blockedAdmin do
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, true)
- end
- SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, false)
- end)
- coroutine.resume(adminLocking)
- Players:Chat(":npm me The admin pads are blocked.")
- end,
- unblockadmin = function()
- Players:Chat(":npm me Please wait until the admin pads are unblocked...")
- blockedAdmin = false
- repeat
- wait()
- until not workspace:FindFirstChild("AdminBlock").Locked
- SyncEvent:InvokeServer("Remove", {workspace:FindFirstChild("AdminBlock")})
- Players:Chat(":npm me The admin pads are unblocked.")
- end,
- rj = function()
- runCmd("!rejoin")
- end,
- slock = function()
- if slock == true then
- slock = false
- local WhiteListedPlayers = {
- "BrayanNGG4547",
- "Karen2638787800",
- "0lxad",
- "xuia0",
- "rolo_cool123"
- }
- game:GetService("Players"):Chat(":loadb l3 | :npm me Slock is on!")
- local function CheckWhiteList(Player)
- for i, whitelisted in pairs(WhiteListedPlayers) do
- if Player.Name ~= whitelisted then
- game:GetService("Players"):Chat(":npm "..Player.Name.." This server is slocked by HC_APOLLO | :tp "..Player.Name.." wp-crash | :fov "..Player.Name.." 0")
- end
- end
- end
- game.Players.PlayerAdded:Connect(function(Player)
- CheckWhiteList(Player)
- end)
- else
- game:GetService("Players"):Chat(":unloadb crash1 | :npm me Slock is off!")
- slock = true
- end
- end,
- antijail = function()
- if antijail2 == true then
- antijail2 = false
- runCmd(":npm me Anti-jail has been enabled!")
- workspace.ChildAdded:Connect(DestroyJail)
- end
- end,
- perm = function()
- ResetPads.Changed:Connect(Perm)
- end,
- house = function()
- Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 25.3, 82.992)
- end,
- antipunish = function()
- Players:Chat(":npm me Anti-punish is on!")
- workspace.ChildRemoved:Connect(function(Model)
- if Model.Name == Players.LocalPlayer.Name then
- Players:Chat(":unpunish me")
- end
- end)
- end,
- shutdown = function()
- runCmd(":m The server shutdown because people were being annoying! | :runc pets")
- end,
- rspy = function()
- loadstring(game:HttpGet("https://pastebin.com/raw/bCghX33W", true))()
- end,
- unlock = function()
- for i, part in pairs(workspace.Terrain:GetChildren()) do
- if part then
- local A_1 = "Remove"
- local A_2 = {
- [1] = part
- }
- local Event = game:GetService("Players"). prokri43.Backpack.Folder.SyncAPI.ServerEndpoint
- Event:InvokeServer(A_1, A_2)
- end
- end
- end,
- clean = function()
- Players:Chat(":free all | :re all | :chatnotifyc all 242 243 243 Server Cleaned!| :clr | :fix | :music off | :setmsg off | :clrgui all true | :f3x me")
- repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("Building Tools")
- local Event = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
- Event:InvokeServer("Remove", GetParts())
- end,
- banhammer = function()
- Players:Chat(":r6 | :gear me 10468797")
- repeat
- wait()
- until Players.LocalPlayer.Backpack:FindFirstChild("BanHammer V1.1")
- local banHammer = Players.LocalPlayer.Backpack:FindFirstChild("BanHammer V1.1")
- banHammer.Activated:Connect(function()
- local touchedConnection
- touchedConnection = banHammer.Handle.Touched:Connect(function(touchedPart)
- print(touchedPart.Name .. " " .. touchedPart.Parent.Name)
- for _, player in ipairs(Players:GetChildren()) do
- if touchedPart.Parent.Name == player.Name and touchedPart.Parent.Name ~= Players.LocalPlayer.Name then
- PlayerCommands.crash(player.Name)
- end
- end
- touchedConnection:Disconnect()
- end)
- end)
- end,
- dex = function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/infyiff/backup/main/dex.lua"))()
- end,
- }
- NormalCommands.perm()
- local TargetCommands = {
- vcrash = function(target)
- local playerTarget = FindPlayer(target)
- game.Players:Chat(":chatnotifyc all 0 255 255 Apollo started a votekick to determine whether " .. playerTarget .. " is crashed or not!")
- wait(0.5)
- game.Players:Chat(":chatnotifyc all 0 255 255 Type .vote yes to votekick him or .vote no to not! You have 30 seconds to vote.")
- local votes = 0
- local yesvotes = 0
- for _, player in ipairs(game.Players:GetChildren()) do
- local voted
- voted = player.Chatted:Connect(function(Message)
- if string.sub(Message, 1, 6) == ".vote " then
- if string.sub(Message, 6, 8) == " no" then
- votes = votes + 1
- game.Players:Chat(":chatnotifyc all 255 0 0 " .. player.Name .. " voted no!")
- voted:Disconnect()
- elseif string.sub(Message, 6, 9) == " yes" then
- votes = votes + 1
- yesvotes = yesvotes + 1
- game.Players:Chat(":chatnotifyc all 0 255 0 " .. player.Name .. " voted yes!")
- voted:Disconnect()
- end
- end
- end)
- end
- local votingCo = coroutine.create(function()
- Players:Chat(":hcountdown 30")
- repeat
- wait()
- until votes == #(game.Players:GetChildren()) or task.wait(30)
- if yesvotes >= (votes/2) then
- wait(0.5)
- game.Players:Chat(":chatnotifyc all 0 255 0 The majority voted yes! " .. playerTarget .. " was crashed by Apollo!")
- wait(0.1)
- PlayerCommands.skick(playerTarget)
- else
- wait(0.5)
- game.Players:Chat(":chatnotifyc all 255 0 0 The majority voted no!")
- end
- end)
- coroutine.resume(votingCo)
- end,
- }
- Players.LocalPlayer.Chatted:Connect(function(Message)
- if string.match(Message, Prefix) then
- local request = (Message:split(" ")[1]:split(Prefix)[2]):lower()
- if PlayerCommands[request] then
- local targetPlayer = FindPlayer(Message:split(" ")[2])
- if targetPlayer == nil then
- Players:Chat(":npm me The requested player wasn't found.")
- else
- PlayerCommands[request](targetPlayer)
- end
- elseif NormalCommands[request] then
- NormalCommands[request]()
- elseif TargetCommands[request] then
- local target = Message:split(" ")[2]
- TargetCommands[request](target)
- else
- Players:Chat(":npm me The command '" .. request .. "' doesn't exist.")
- end
- end
- end)
- print("Running custom commands")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement