Advertisement
Prokri43

Leon's astrover

Jul 25th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.71 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local slock = false
  4.  
  5.  
  6.  
  7. local function PlayerDied()
  8. local Position = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  9. if Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  10.  
  11. Players:Chat(":reset")
  12. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Vector3.new(Position)
  13. end
  14. end
  15.  
  16.  
  17.  
  18. if Players.LocalPlayer == nil then
  19. repeat wait() until Players.LocalPlayer ~= nil
  20. wait(2)
  21. end
  22.  
  23.  
  24. local function GetPlayerList()
  25. local playerList = {}
  26. for i, player in ipairs(Players:GetChildren()) do
  27. playerList[i] = player.Name
  28. end
  29. return playerList
  30. end
  31.  
  32. local function GetParts()
  33. local partsList = {}
  34. for i, part in ipairs(workspace:GetChildren()) do
  35. if part.Archivable then
  36. partsList[i] = part
  37. end
  38. end
  39. return partsList
  40. end
  41.  
  42.  
  43.  
  44. local function FindPlayer(abbreviation)
  45. if abbreviation:lower() == "me" then
  46. return Players.LocalPlayer.Name
  47. else
  48.  
  49. for _, player in ipairs(Players:GetChildren()) do
  50. if (player.Name):sub(1, #abbreviation):lower() == abbreviation:lower() then
  51. return player.Name
  52. end
  53. end
  54. end
  55. end
  56.  
  57. local Prefix = "."
  58. local Prefix2 = Prefix
  59. local Commands = {
  60.  
  61. kick = function(playerTarget)
  62. if playerTarget == Players.LocalPlayer.Name then
  63. Players:Chat(":npm me You can't kick yourself.")
  64. else
  65. local command = ":runc kick1 | :free " .. playerTarget .. " | :re " .. playerTarget .. " | :bring " .. playerTarget .. " | :runc kick2"
  66. Players:Chat(command)
  67. wait(3)
  68. if playerTarget ~= nil then
  69. game.Players:Chat(":talk me Failed! Try again")
  70. end
  71. end
  72. end,
  73.  
  74. mute = function(playerTarget)
  75. if playerTarget == Players.LocalPlayer.Name then
  76. Players:Chat(":npm me You can't mute yourself.")
  77. else
  78. local command = ":r6 " .. playerTarget
  79. RunService:BindToRenderStep(playerTarget .. ":mute", 1, function()
  80. Players:Chat(command)
  81. wait(0.00000000001)
  82. end)
  83. end
  84. end,
  85.  
  86. unmute = function(playerTarget)
  87. if playerTarget == Players.LocalPlayer.Name then
  88. Players:Chat(":npm me You can't unmute yourself.")
  89. else
  90. RunService:UnbindFromRenderStep(playerTarget .. ":mute")
  91. end
  92. end,
  93. skick = function(playerTarget)
  94. Players:Chat(":loadb skick | :f3x")
  95. repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("Building Tools")
  96. workspace:WaitForChild("SkateboardPlatform")
  97. local toGroup = {[1] = workspace:FindFirstChild(playerTarget), [2] = workspace.SkateboardPlatform}
  98. local Event = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
  99. Event:InvokeServer("CreateGroup", "Model", workspace, toGroup)
  100. Players:Chat(":speed " .. playerTarget .. " 0 | :tp " .. playerTarget .. " wp-skick | :wait 0.5 | :sit " .. playerTarget .. " | :wait 0.1 |:jump " .. playerTarget .. " | :wait 0.1 | :jump " .. playerTarget .. " | :sit " .. playerTarget .. " | :wait 0.1 |:jump " .. playerTarget .. " | :wait 0.1 | :jump " .. playerTarget .. " | :sit " .. playerTarget .. " | :wait 0.1 |:jump " .. playerTarget .. " | :wait 0.1 | :jump " .. playerTarget .. " | :sit " .. playerTarget .. " | :wait 0.1 |:jump " .. playerTarget .. " | :wait 0.1 | :jump " .. playerTarget .. "")
  101. wait(3)
  102. Players:Chat(":wait 3 | :unloadb skick")
  103. if playerTarget ~= nil then
  104. game.Players:Chat(":talk me Failed! Try again")
  105. end
  106. end
  107.  
  108.  
  109.  
  110. }
  111.  
  112. Players.LocalPlayer.Chatted:Connect(function(Message)
  113. if string.match(Message, Prefix) then
  114. local request = Message:split(" ")[1]:split(Prefix)[2]
  115. local target = FindPlayer(Message:split(" ")[2])
  116. if target == nil then
  117. Players:Chat(":npm me The requested player wasn't found.")
  118. else
  119. if Commands[request] then
  120. Commands[request](target)
  121. else
  122. Players:Chat(":npm me The command '" .. request .. "' doesn't exist.")
  123. end
  124. end
  125. end
  126. end)
  127.  
  128. local function DestroyJail(part)
  129. if part:IsA("Model") and part.Name == "p4cif1edx_ADONISJAIL" then
  130. game:GetService("Players"):Chat(":free me")
  131. end
  132. end
  133.  
  134. local ResetPads = game.Workspace.SecureParts.ResetPads.ClickDetector
  135.  
  136. function Perm()
  137. if ResetPads.MaxActivationDistance == 0 and tpAdminPadEnabled == true then
  138. local OriginalPosition = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  139. wait(0.3)
  140.  
  141. local v = 13.6
  142. for i = 1, 9, 1 do
  143. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v, 28.3, 106.4)
  144. v = v - 4
  145. wait(0.01)
  146. end
  147.  
  148. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(OriginalPosition)
  149. end
  150. end
  151.  
  152. if tpAdminPadEnabled == true then
  153. tpAdminPadEnabled = false
  154.  
  155. else
  156. tpAdminPadEnabled = true
  157.  
  158.  
  159.  
  160. end
  161.  
  162.  
  163. local antiJail = true
  164. Players.LocalPlayer.Chatted:Connect(function(Message)
  165. ---CLRPARTS COMMAND---
  166. if Message == Prefix2.."delparts" then
  167. game.Players:Chat(":f3x")
  168. repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("Building Tools")
  169. local Event = Players.LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
  170. Event:InvokeServer("Remove", GetParts())
  171.  
  172.  
  173. elseif Message == Prefix2.."rj" then
  174. local command = "!rejoin"
  175. game:GetService("Players"):Chat(command)
  176.  
  177. elseif Message == Prefix2.."slock" then
  178. if slock == true then
  179. slock = false
  180. local WhiteListedPlayers = {
  181. "BrayanNGG4547",
  182. "Karen2638787800",
  183. "0lxad",
  184. "xuia0",
  185. "rolo_cool123"
  186. }
  187. game:GetService("Players"):Chat(":loadb l3 | :npm me Slock is on!")
  188.  
  189.  
  190. local function CheckWhiteList(Player)
  191. for i, whitelisted in pairs(WhiteListedPlayers) do
  192. if Player.Name ~= whitelisted then
  193. game:GetService("Players"):Chat(":npm "..Player.Name.." This server is slocked by Apollo | :tp "..Player.Name.." wp-crash | :fov "..Player.Name.." 0")
  194.  
  195.  
  196.  
  197. end
  198. end
  199. end
  200.  
  201.  
  202.  
  203. game.Players.PlayerAdded:Connect(function(Player)
  204. CheckWhiteList(Player)
  205. end)
  206.  
  207.  
  208. else
  209. game:GetService("Players"):Chat(":unloadb l3 | :npm me Slock is off!")
  210. slock = true
  211. end
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. elseif Message == Prefix2.."antijail" then
  221.  
  222. if antiJail == true then
  223. antiJail = false
  224. game:GetService("Players"):Chat(":npm me Anti-jail has been enabled!")
  225. workspace.ChildAdded:Connect(DestroyJail)
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232. end
  233. elseif Message == Prefix2.."house" then
  234. Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 25.3, 82.992)
  235.  
  236. elseif Message == Prefix2.."perm" then
  237. ResetPads.Changed:Connect(Perm)
  238.  
  239. elseif Message == Prefix2.."antipunish" then
  240. Players:Chat(":npm me Anti-punish is on!")
  241. workspace.ChildRemoved:Connect(function(Model)
  242. if Model.Name == Players.LocalPlayer.Name then
  243. Players:Chat(":unpunish me")
  244. end
  245. end)
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253. elseif Message == Prefix2.."antikill" then
  254. Players:Chat(":npm me Anti-kill is on!")
  255. while true do
  256.  
  257.  
  258. Players.LocalPlayer.Character.Humanoid.Died:Connect(PlayerDied)
  259.  
  260.  
  261. wait(2)
  262.  
  263. end
  264. return
  265.  
  266.  
  267. elseif Message == Prefix2.."shutdown" then
  268.  
  269. Players:Chat(":m The server shutdown because people were abusing! | :loadb euth")
  270.  
  271. elseif Message == Prefix2.."rspy" then
  272. loadstring(game:HttpGet("https://raw.githubusercontent.com/78n/SimpleSpy/main/SimpleSpySource.lua"))()
  273.  
  274.  
  275. elseif Message == Prefix2.."lock" then
  276.  
  277.  
  278. for i, player in pairs(game.Players:GetChildren()) do
  279. local A_1 = "Remove"
  280. local A_2 = {
  281.  
  282. [1] = player.Character
  283. }
  284. local Event = game:GetService("Players").p4cif1edx.Backpack.Folder.SyncAPI.ServerEndpoint
  285. Event:InvokeServer(A_1, A_2)
  286. workspace.ChildAdded:Connect(function(model)
  287. if model.Name == player.Name then
  288. local A_1 = "Remove"
  289. local A_2 = {
  290.  
  291. [1] = player.Character
  292. }
  293. local Event = game:GetService("Players").i.Backpack.Folder.SyncAPI.ServerEndpoint
  294. Event:InvokeServer(A_1, A_2)
  295. end
  296.  
  297. end)
  298. end
  299.  
  300. elseif Message == Prefix2.."padreset" then
  301.  
  302.  
  303. local A_1 = "Remove"
  304. local A_2 = {
  305.  
  306. [1] = workspace.Terrain.Part
  307. }
  308. local Event = game:GetService("Players").p4cif1edx.Backpack.Folder.SyncAPI.ServerEndpoint
  309. Event:InvokeServer(A_1, A_2)
  310.  
  311. elseif Message == Prefix2.."lockpad" then
  312. local BlockPath = workspace.Terrain
  313. local Event = game:GetService("Players").LocalPlayer.Backpack.Folder.SyncAPI.ServerEndpoint
  314.  
  315. Event:InvokeServer("CreatePart", "Normal", CFrame.new(23, 25, 106), BlockPath)
  316.  
  317. local resizeArgs = {
  318. [1] = {
  319. ["Part"] = BlockPath.Part,
  320. ["CFrame"] = CFrame.new(23, 25, 106),
  321. ["Size"] = Vector3.new(4.1, 0.7, 4.1)
  322. },
  323. }
  324. Event:InvokeServer("SyncResize", resizeArgs)
  325.  
  326. local materialArgs = {
  327. [1] = {
  328. ["Part"] = BlockPath.Part,
  329. ["Transparency"] = 1
  330. },
  331. }
  332. Event:InvokeServer("SyncMaterial", materialArgs)
  333. end -- Command End
  334.  
  335.  
  336.  
  337.  
  338. end)
  339.  
  340.  
  341.  
  342.  
  343.  
  344. print("Running custom commands!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement