Advertisement
Prokri43

Test1

Sep 5th, 2023 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.84 KB | None | 0 0
  1.  
  2.  
  3. local Players = game:GetService("Players")
  4. local RunService = game:GetService("RunService")
  5. local slock = false
  6. local antijail2 = true
  7. tpAdminPadEnabled = true
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. local ResetPads = game.Workspace.SecureParts.ResetPads.ClickDetector
  16.  
  17. local function DestroyJail(part)
  18. if part:IsA("Model") and part.Name == game.Players.LocalPlayer.Name.."_ADONISJAIL" then
  19. game:GetService("Players"):Chat(":free me")
  20. end
  21. end
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. local function Perm()
  30. if ResetPads.MaxActivationDistance == 0 then
  31.  
  32. local OriginalPosition = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  33. wait(0.3)
  34.  
  35. local v = 13.6
  36. for i = 1, 9, 1 do
  37. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v, 28.3, 106.4)
  38. v = v - 4
  39. wait(0.01)
  40. end
  41.  
  42. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(OriginalPosition)
  43. end
  44. end
  45.  
  46.  
  47. function runCmd(cmd)
  48. Players:Chat(cmd)
  49. end
  50.  
  51. local function RemoveFromTable(fromTable, toRemove)
  52. local result = fromTable
  53. for i, object in ipairs(result) do
  54. if object == toRemove then
  55. table.remove(result, i)
  56. end
  57. end
  58. return result
  59. end
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. local function PlayerDied()
  67. local Position = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  68. if Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  69.  
  70. Players:Chat(":re")
  71. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Vector3.new(Position)
  72. end
  73. end
  74.  
  75.  
  76.  
  77.  
  78.  
  79. local x = 13.6
  80. local pos = Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  81. wait(0.3)
  82. for i = 1, 9, 1 do
  83.  
  84. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x, 28.3, 106.4)
  85. x = x - 4
  86. wait(0.01)
  87. end
  88. Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  89. Players:WaitForChild("Void_plaz1"):WaitForChild("Backpack")
  90. local RemoteEvent = coroutine.create(function()
  91. while true do
  92. if not Players.LocalPlayer.Backpack:FindFirstChild("Folder") then
  93. Players:Chat(":F3x")
  94. Players.LocalPlayer.Backpack:WaitForChild("Folder")
  95. SyncEvent = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
  96.  
  97. end
  98. wait()
  99. end
  100. end)
  101. coroutine.resume(RemoteEvent)
  102.  
  103.  
  104.  
  105. local function GetParts(group)
  106. local partsList = {}
  107.  
  108. for i, part in ipairs(group) do
  109. if part.Archivable then
  110. partsList[i] = part
  111.  
  112.  
  113.  
  114.  
  115. end
  116. end
  117. return partsList
  118. end
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. local function FindPlayer(abbreviation)
  127. if abbreviation:lower() == "me" then
  128. return Players.LocalPlayer.Name
  129. elseif abbreviation:lower() == "others" then
  130. local others = ""
  131. for _, player in ipairs(Players:GetChildren()) do
  132. if player ~= Players.LocalPlayer then
  133. if others == "" then
  134. others = player.Name
  135. else
  136. others = others .. "," .. player.Name
  137. end
  138. end
  139. end
  140. return others
  141. elseif abbreviation:lower() == "all" then
  142. local all = ""
  143. for _, player in ipairs(Players:GetChildren()) do
  144. if all == "" then
  145. all = player.Name
  146. else
  147. all = all .. "," .. player.Name
  148. end
  149. end
  150. return all
  151. elseif abbreviation:lower() == "random" then
  152. local randomPlayer = (RemoveFromTable(Players:GetChildren(), Players.LocalPlayer))[math.random(#(Players:GetChildren()) - 1)]
  153. return randomPlayer.Name
  154. else
  155. for _, player in ipairs(Players:GetChildren()) do
  156. if (player.Name):sub(1, #abbreviation):lower() == abbreviation:lower() then
  157. return player.Name
  158. elseif (player.DisplayName):sub(1, #abbreviation):lower() == abbreviation:lower() then
  159. return player.Name
  160. end
  161. end
  162. end
  163. end
  164.  
  165. local Prefix = "$"
  166. local PlayerCommands = {
  167.  
  168. statue = function(playerTarget)
  169. print(playerTarget)
  170. local toUngroup = playerTarget:split(",")
  171. print(#toUngroup)
  172. for i, thing in ipairs(toUngroup) do
  173. toUngroup[i] = workspace:FindFirstChild(thing)
  174. print(thing)
  175. end
  176. SyncEvent:InvokeServer("Ungroup", toUngroup)
  177. end,
  178.  
  179.  
  180.  
  181. fkick = function(playerTarget)
  182. Players:Chat(":loadb nkickbase | :free " .. playerTarget .. " | :re " .. playerTarget .. " | :wait 5 | :tp " .. playerTarget .. " wp-namekickbase| :runc talk2 | :runc talk2")
  183. wait(1)
  184. for i=1, 5, 1 do
  185. Players:Chat(":talk others,-" .. playerTarget .." .")
  186. wait()
  187. end
  188. wait(5)
  189. Players:Chat(":unloadb nkickbase")
  190. end,
  191.  
  192. mute = function(playerTarget)
  193. if playerTarget == Players.LocalPlayer.Name then
  194. Players:Chat(":npm me You can't mute yourself.")
  195. else
  196. local command = ":r6 " .. playerTarget
  197. RunService:BindToRenderStep(playerTarget .. ":mute", 1, function()
  198. Players:Chat(command)
  199. wait(0.00000000001)
  200. end)
  201. end
  202. end,
  203.  
  204. unmute = function(playerTarget)
  205. if playerTarget == Players.LocalPlayer.Name then
  206. Players:Chat(":npm me You can't unmute yourself.")
  207. else
  208. RunService:UnbindFromRenderStep(playerTarget .. ":mute")
  209. end
  210. end,
  211.  
  212. skick = function(playerTarget)
  213. Players:Chat(":Re "..playerTarget.." | :loadb skick | :free " .. playerTarget .. " | :fview " .. playerTarget .. " me | :setgrav " .. playerTarget .. " 1000 | :speed " .. playerTarget .. " 0 | :invisible " .. playerTarget)
  214. local playerRespawned
  215. playerRespawned = workspace.ChildRemoved:Connect(function(model)
  216. if model.Name == playerTarget then
  217. local toGroup = {
  218. [1] = workspace:WaitForChild(playerTarget),
  219. [2] = workspace:WaitForChild("SkateboardPlatform")
  220. }
  221. SyncEvent:InvokeServer("CreateGroup", "Model", workspace, toGroup)
  222. repeat
  223. wait()
  224. until not workspace:FindFirstChild(playerTarget)
  225. Players:Chat(":tp " .. playerTarget .. " wp-skick")
  226. for i=1, 5, 1 do
  227. if not Players:FindFirstChild(playerTarget) then
  228. break
  229. end
  230. Players:Chat(":jump " .. playerTarget)
  231. wait(0.1)
  232. if not Players:FindFirstChild(playerTarget) then
  233. break
  234. end
  235. Players:Chat(":jump " .. playerTarget)
  236. wait(0.1)
  237. if not Players:FindFirstChild(playerTarget) then
  238. break
  239. end
  240. Players:Chat(":sit " .. playerTarget)
  241. wait(0.1)
  242. end
  243. end
  244. playerRespawned:Disconnect()
  245. end)
  246. wait(5)
  247. Players:Chat(":unloadb skick")
  248. end,
  249.  
  250.  
  251.  
  252. crash = function(playerTarget)
  253. local player = game.Players:FindFirstChild(playerTarget)
  254. game.Players:Chat(":fviewcam "..playerTarget.." crash |:fov "..playerTarget.." 0 | :chatnotify all "..playerTarget.." Has been crashed!")
  255. repeat
  256. wait()
  257. until not game.Players:FindFirstChild(playerTarget)
  258. runCmd(":unloadb ballsz")
  259. end,
  260.  
  261. ban = function(playerTarget)
  262. if playerTarget == Players.LocalPlayer.Name then
  263. Players:Chat(":npm me You can't ban yourself.")
  264. else
  265. local bannedplrs = {}
  266. local playerId = game.Players:FindFirstChild(playerTarget).UserId
  267. table.insert(bannedplrs, playerId)
  268. game.Players:Chat(":npm "..playerTarget.." You have been banned!")
  269. game.Players:Chat(":loadb nkickbase | :tp "..playerTarget.." wp-namekickbase | :runc talk2 | :fov "..playerTarget.." 80")
  270. game.Players.PlayerAdded:Connect(function(player)
  271. if table.find(bannedplrs, player.UserId) then
  272. game.Players:Chat(":npm "..playerTarget.." Your Banned from this server!")
  273. game.Players:Chat(":loadb nkickbase | :wait 5 | :tp "..playerTarget.." wp-namekickbase | :runc talk2 | :fov "..playerTarget.." 80")
  274. end
  275.  
  276. end)
  277. end
  278. end
  279.  
  280.  
  281.  
  282.  
  283.  
  284. }
  285.  
  286. local NormalCommands = {
  287. delparts = function()
  288. local partsToClear = {}
  289. for i, part in ipairs(workspace:GetDescendants()) do
  290. if pcall(function() return part["Locked"] end) then -- if locked is a property of part
  291. if not part.Locked then
  292. table.insert(partsToClear, (#partsToClear + 1), part)
  293. print(part)
  294. end
  295. else
  296. 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
  297. table.insert(partsToClear, (#partsToClear + 1), part)
  298. print(part)
  299. end
  300. end
  301. end
  302. Players:Chat(":hpm me " .. #partsToClear .. " parts were cleared.")
  303. SyncEvent:InvokeServer("Remove", partsToClear)
  304. end,
  305. blockrpads = function()
  306. SyncEvent:InvokeServer("CreatePart", "Normal", CFrame.new(23, 25, 106), workspace)
  307. for _, part in pairs(workspace:GetChildren()) do
  308. if pcall(function() return part.Position end) then
  309. if part.CFrame == CFrame.new(23, 25, 106) then
  310. SyncEvent:InvokeServer("SetName", {part}, "ResetPadsBlock")
  311. end
  312. end
  313. end
  314. SyncEvent:InvokeServer("SyncResize", {{
  315. ["Part"] = workspace:FindFirstChild("ResetPadsBlock"),
  316. ["CFrame"] = CFrame.new(23, 25, 106),
  317. ["Size"] = Vector3.new(4.1, 0.6, 4.1)
  318. }})
  319. SyncEvent:InvokeServer("SyncMaterial", {{
  320. ["Part"] = workspace:FindFirstChild("ResetPadsBlock"),
  321. ["Transparency"] = 1
  322. }})
  323. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, true)
  324. blockedResetPads = true
  325. local resetPadsLocking = coroutine.create(function()
  326. while blockedResetPads do
  327. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, true)
  328. end
  329. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("ResetPadsBlock")}, false)
  330. end)
  331. coroutine.resume(resetPadsLocking)
  332. Players:Chat(":npm me The reset pads is blocked.")
  333. end,
  334.  
  335. unblockrpads = function()
  336. Players:Chat(":npm me Please wait until the reset pads is blocked.")
  337. blockedResetPads = false
  338. repeat
  339. wait()
  340. until not workspace:FindFirstChild("ResetPadsBlock").Locked
  341. SyncEvent:InvokeServer("Remove", {workspace:FindFirstChild("ResetPadsBlock")})
  342. Players:Chat(":npm me The reset pads is unblocked.")
  343. end,
  344.  
  345. blockadmin = function()
  346. SyncEvent:InvokeServer("CreatePart", "Normal", CFrame.new(23, 25, 106), workspace)
  347. for _, part in pairs(workspace:GetChildren()) do
  348. if pcall(function() return part.Position end) then
  349. if part.CFrame == CFrame.new(23, 25, 106) then
  350. SyncEvent:InvokeServer("SetName", {part}, "AdminBlock")
  351. end
  352. end
  353. end
  354. SyncEvent:InvokeServer("SyncResize", {{
  355. ["Part"] = workspace:FindFirstChild("AdminBlock"),
  356. ["CFrame"] = CFrame.new(-1.8, 25.05, 106.74),
  357. ["Size"] = Vector3.new(37, 4, 6)
  358. }})
  359. SyncEvent:InvokeServer("SyncMaterial", {{
  360. ["Part"] = workspace:FindFirstChild("AdminBlock"),
  361. ["Transparency"] = 0.6,
  362. ["Material"] = Enum.Material.Glass
  363. }})
  364. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, true)
  365. blockedAdmin = true
  366. local adminLocking = coroutine.create(function()
  367. while blockedAdmin do
  368. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, true)
  369. end
  370. SyncEvent:InvokeServer("SetLocked", {workspace:FindFirstChild("AdminBlock")}, false)
  371. end)
  372. coroutine.resume(adminLocking)
  373. Players:Chat(":npm me The admin pads are blocked.")
  374. end,
  375.  
  376. unblockadmin = function()
  377. Players:Chat(":npm me Please wait until the admin pads are unblocked...")
  378. blockedAdmin = false
  379. repeat
  380. wait()
  381. until not workspace:FindFirstChild("AdminBlock").Locked
  382. SyncEvent:InvokeServer("Remove", {workspace:FindFirstChild("AdminBlock")})
  383. Players:Chat(":npm me The admin pads are unblocked.")
  384. end,
  385.  
  386.  
  387. rj = function()
  388. runCmd("!rejoin")
  389. end,
  390.  
  391. slock = function()
  392. if slock == true then
  393. slock = false
  394. local WhiteListedPlayers = {
  395. "BrayanNGG4547",
  396. "Karen2638787800",
  397. "0lxad",
  398. "xuia0",
  399. "rolo_cool123"
  400. }
  401. game:GetService("Players"):Chat(":loadb l3 | :npm me Slock is on!")
  402.  
  403.  
  404. local function CheckWhiteList(Player)
  405. for i, whitelisted in pairs(WhiteListedPlayers) do
  406. if Player.Name ~= whitelisted then
  407. game:GetService("Players"):Chat(":npm "..Player.Name.." This server is slocked by HC_APOLLO | :tp "..Player.Name.." wp-crash | :fov "..Player.Name.." 0")
  408.  
  409.  
  410.  
  411. end
  412. end
  413. end
  414.  
  415.  
  416.  
  417. game.Players.PlayerAdded:Connect(function(Player)
  418. CheckWhiteList(Player)
  419. end)
  420.  
  421.  
  422. else
  423. game:GetService("Players"):Chat(":unloadb crash1 | :npm me Slock is off!")
  424. slock = true
  425. end
  426.  
  427.  
  428. end,
  429.  
  430. antijail = function()
  431. if antijail2 == true then
  432. antijail2 = false
  433. runCmd(":npm me Anti-jail has been enabled!")
  434. workspace.ChildAdded:Connect(DestroyJail)
  435. end
  436. end,
  437.  
  438. perm = function()
  439. ResetPads.Changed:Connect(Perm)
  440. end,
  441. house = function()
  442. Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 25.3, 82.992)
  443. end,
  444.  
  445. antipunish = function()
  446. Players:Chat(":npm me Anti-punish is on!")
  447. workspace.ChildRemoved:Connect(function(Model)
  448. if Model.Name == Players.LocalPlayer.Name then
  449. Players:Chat(":unpunish me")
  450. end
  451. end)
  452.  
  453. end,
  454.  
  455. shutdown = function()
  456. runCmd(":m The server shutdown because people were being annoying! | :runc pets")
  457. end,
  458.  
  459. rspy = function()
  460. loadstring(game:HttpGet("https://pastebin.com/raw/bCghX33W", true))()
  461. end,
  462.  
  463. unlock = function()
  464. for i, part in pairs(workspace.Terrain:GetChildren()) do
  465.  
  466. if part then
  467.  
  468.  
  469. local A_1 = "Remove"
  470. local A_2 = {
  471.  
  472. [1] = part
  473.  
  474. }
  475. local Event = game:GetService("Players").Void_plaz1.Backpack.Folder.SyncAPI.ServerEndpoint
  476. Event:InvokeServer(A_1, A_2)
  477. end
  478. end
  479. end,
  480.  
  481. clean = function()
  482. Players:Chat(":free all | :re all | :chatnotifyc all 242 243 243 Server Cleaned!| :clr | :fix | :music off | :setmsg off | :clrgui all true | :f3x me")
  483.  
  484. repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("Building Tools")
  485. local Event = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
  486. Event:InvokeServer("Remove", GetParts())
  487. end,
  488.  
  489. banhammer = function()
  490. Players:Chat(":r6 | :gear me 10468797")
  491. repeat
  492. wait()
  493. until Players.LocalPlayer.Backpack:FindFirstChild("BanHammer V1.1")
  494. local banHammer = Players.LocalPlayer.Backpack:FindFirstChild("BanHammer V1.1")
  495. banHammer.Activated:Connect(function()
  496. local touchedConnection
  497. touchedConnection = banHammer.Handle.Touched:Connect(function(touchedPart)
  498. print(touchedPart.Name .. " " .. touchedPart.Parent.Name)
  499. for _, player in ipairs(Players:GetChildren()) do
  500. if touchedPart.Parent.Name == player.Name and touchedPart.Parent.Name ~= Players.LocalPlayer.Name then
  501. PlayerCommands.crash(player.Name)
  502. end
  503. end
  504. touchedConnection:Disconnect()
  505. end)
  506. end)
  507. end,
  508.  
  509. dex = function()
  510. loadstring(game:HttpGet("https://raw.githubusercontent.com/infyiff/backup/main/dex.lua"))()
  511. end,
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521. }
  522. NormalCommands.perm()
  523.  
  524. local TargetCommands = {
  525. vcrash = function(target)
  526. local playerTarget = FindPlayer(target)
  527. game.Players:Chat(":chatnotifyc all 0 255 255 Apollo started a votekick to determine whether " .. playerTarget .. " is crashed or not!")
  528. wait(0.5)
  529. 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.")
  530.  
  531. local votes = 0
  532. local yesvotes = 0
  533.  
  534. for _, player in ipairs(game.Players:GetChildren()) do
  535. local voted
  536. voted = player.Chatted:Connect(function(Message)
  537. if string.sub(Message, 1, 6) == ".vote " then
  538. if string.sub(Message, 6, 8) == " no" then
  539. votes = votes + 1
  540. game.Players:Chat(":chatnotifyc all 255 0 0 " .. player.Name .. " voted no!")
  541. voted:Disconnect()
  542. elseif string.sub(Message, 6, 9) == " yes" then
  543. votes = votes + 1
  544. yesvotes = yesvotes + 1
  545. game.Players:Chat(":chatnotifyc all 0 255 0 " .. player.Name .. " voted yes!")
  546. voted:Disconnect()
  547. end
  548. end
  549. end)
  550. end
  551.  
  552. local votingCo = coroutine.create(function()
  553. Players:Chat(":hcountdown 30")
  554. repeat
  555. wait()
  556. until votes == #(game.Players:GetChildren()) or task.wait(30)
  557. if yesvotes >= (votes/2) then
  558. wait(0.5)
  559. game.Players:Chat(":chatnotifyc all 0 255 0 The majority voted yes! " .. playerTarget .. " was crashed by Apollo!")
  560. wait(0.1)
  561. PlayerCommands.skick(playerTarget)
  562. else
  563. wait(0.5)
  564. game.Players:Chat(":chatnotifyc all 255 0 0 The majority voted no!")
  565. end
  566. end)
  567. coroutine.resume(votingCo)
  568. end,
  569. }
  570.  
  571. Players.LocalPlayer.Chatted:Connect(function(Message)
  572. if string.match(Message, Prefix) then
  573. local request = (Message:split(" ")[1]:split(Prefix)[2]):lower()
  574.  
  575. if PlayerCommands[request] then
  576.  
  577. local targetPlayer = FindPlayer(Message:split(" ")[2])
  578. if targetPlayer == nil then
  579. Players:Chat(":npm me The requested player wasn't found.")
  580. else
  581. PlayerCommands[request](targetPlayer)
  582. end
  583.  
  584. elseif NormalCommands[request] then
  585. NormalCommands[request]()
  586. elseif TargetCommands[request] then
  587. local target = Message:split(" ")[2]
  588. TargetCommands[request](target)
  589.  
  590. else
  591. Players:Chat(":npm me The command '" .. request .. "' doesn't exist.")
  592. end
  593. end
  594. end)
  595.  
  596. print("Running custom commands")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement