Advertisement
LegendzHackz

Admin Script For Mic Up

Feb 25th, 2024 (edited)
1,323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.71 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local ChatService = game:GetService("TextChatService")
  3. local HttpService = game:GetService("HttpService")
  4. local RunService = game:GetService("RunService")
  5. local Workspace = game:GetService("Workspace")
  6. local Players = game:GetService("Players")
  7. local Player = Players.LocalPlayer
  8. local PlayerGui = Player.PlayerGui
  9. local Admin = PlayerGui.Admin
  10. local PlaceId, JobId = game.PlaceId, game.JobId
  11.  
  12. local Stalls = Workspace.Stalls
  13.  
  14. _G.Configurations = {
  15.     Prefix = ".",
  16.     Whitelist = {985143698, 2745881210, 3078981620, 5454784383},
  17.     Hide = false,
  18.     LoopBring = false,
  19.     Spectate = false,
  20.     Axis = {X = 0, Y = -12, X = 0}
  21. }
  22.  
  23. function Shorten(Username)
  24.     local PlayerList = {}
  25.     for _, CPlayer in pairs(Players:GetPlayers()) do
  26.         if CPlayer.Name:lower():sub(1, #Username) == Username:lower() or CPlayer.DisplayName:lower():sub(1, #Username) == Username:lower() then
  27.             table.insert(PlayerList, CPlayer)
  28.         end
  29.     end
  30.     return PlayerList
  31. end
  32.  
  33. function Say(Message)
  34.     ChatService.TextChannels.RBXGeneral:SendAsync(Message)
  35. end
  36.  
  37. function Hop()
  38.     pcall(function()
  39.         local Servers = {}
  40.         for _, v in ipairs(HttpService:JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
  41.             if type(v) == "table" and v.maxPlayers > v.playing and v.Id ~= JobId then
  42.                 Servers[#Servers + 1] = v.id
  43.             end
  44.         end
  45.         if #Servers > 0 then
  46.             TeleportService:TeleportToPlaceInstance(PlaceId, Servers[math.random(1, #Servers)])
  47.         else
  48.             print("Server not found.")
  49.         end
  50.     end)
  51. end
  52.  
  53. function FindPlayer(Target)
  54.     pcall(function()
  55.         local FoundMyTargetC = false
  56.  
  57.         for _, v in ipairs(Players:GetPlayers()) do
  58.             if v.Name == Target then
  59.                 FoundMyTargetC = true
  60.                 General:SendAsync("Server Found!")
  61.                 break
  62.             end
  63.         end
  64.    
  65.         if not FoundMyTargetC then
  66.             Hop()
  67.         end
  68.     end)
  69. end
  70.  
  71. function View(Target)
  72.     _G.Configurations.Spectate = true
  73.    
  74.     while _G.Configurations.Spectate do task.wait()
  75.         pcall(function()
  76.             if _G.Configurations.Spectate then
  77.                 Workspace.CurrentCamera.CameraSubject = Target.Character.Humanoid
  78.             end
  79.  
  80.             local Viewing = Players.ChildRemoved:Connect(function(Child)
  81.                 pcall(function()
  82.                     if Child.Name == Target.Name then
  83.                         _G.Configurations.Spectate = false
  84.                         Workspace.CurrentCamera.CameraSubject = Player.Character.Humanoid
  85.                     end
  86.  
  87.                     Viewing:Disconnect()
  88.                 end)
  89.             end)
  90.         end)
  91.     end
  92. end
  93.  
  94. function UnView()
  95.     pcall(function()
  96.         _G.Configurations.Spectate = false
  97.         Workspace.CurrentCamera.CameraSubject = Player.Character.Humanoid
  98.     end)
  99. end
  100.  
  101. for _, v in next, Admin:GetChildren() do
  102.     if v.Name ~= "TextLabel" then
  103.         v.Visible = true
  104.     end
  105. end
  106.  
  107. ChatService.MessageReceived:Connect(function(Message)
  108.     for _, FoundPlayer in next, Players:GetPlayers() do
  109.         if FoundPlayer ~= Player and table.find(_G.Configurations.Whitelist, FoundPlayer.UserId) then
  110.             if Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "disconnect" then
  111.                 Player:Kick("You have been disconnected.")
  112.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "bring" then
  113.                 Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame
  114.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "reset" then
  115.                 Player.Character:BreakJoints()
  116.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "rejoin" then
  117.                 TeleportService:TeleportToPlaceInstance(PlaceId, JobId, Player)
  118.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "hide" then
  119.                 _G.Configurations.Hide = true
  120.                 _G.Configurations.LoopBring = false
  121.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "unhide" then
  122.                 _G.Configurations.Hide = false
  123.                 Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  124.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "loopbring" then
  125.                 _G.Configurations.LoopBring = true
  126.                 _G.Configurations.Hide = false
  127.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "unloopbring" then
  128.                 _G.Configurations.LoopBring = false
  129.                 Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  130.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "hop" or Message.Text == _G.Configurations.Prefix .. "serverhop" then
  131.                 Hop()
  132.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "findplayer" then
  133.                 FindPlayer("ChrisEsMiPapi")
  134.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "spawn" then
  135.                 _G.Configurations.LoopBring = false
  136.                 _G.Configurations.Hide = false
  137.  
  138.                 Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  139.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "unspawn" then
  140.                 Player.Character.HumanoidRootPart.CFrame = CFrame.new(25, 7.5, 86)
  141.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "jump" then
  142.                 Player.Character.Humanoid:ChangeState("Jumping")
  143.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "view" then
  144.                 View(FoundPlayer)
  145.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "unview" then
  146.                 UnView()
  147.             elseif Message.TextSource.UserId == FoundPlayer.UserId and Message.Text == _G.Configurations.Prefix .. "bypassvc" or Message.Text == _G.Configurations.Prefix .. "bypassvoicechat" then
  148.                 Say("Loading.")
  149.                 task.wait(.1)
  150.                 Say("Loading..")
  151.                 task.wait(.1)
  152.                 Say("Loading...")
  153.                 task.wait(.1)
  154.                 Say("Wait 1 Second(s) to bypass Voice Chat.")
  155.                 task.wait(1)
  156.                 Say("Roblox VoiceChat has been successfully bypassed.")
  157.             end
  158.         end
  159.     end
  160. end)
  161.  
  162. while task.wait() do
  163.     pcall(function()
  164.         if _G.Configurations.Hide then
  165.             for _, FoundPlayer in next, Players:GetPlayers() do
  166.                 if FoundPlayer ~= Player and table.find(_G.Configurations.Whitelist, FoundPlayer.UserId) then
  167.                     Player.Character.HumanoidRootPart.Velocity = Vector3.new()
  168.                     Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(_G.Configurations.Axis.X, _G.Configurations.Axis.Y, _G.Configurations.Axis.Z)
  169.                 end
  170.             end
  171.         elseif _G.Configurations.LoopBring then
  172.             for _, FoundPlayer in next, Players:GetPlayers() do
  173.                 if FoundPlayer ~= Player and table.find(_G.Configurations.Whitelist, FoundPlayer.UserId) then
  174.                     Player.Character.HumanoidRootPart.Velocity = Vector3.new()
  175.                     Player.Character.HumanoidRootPart.CFrame = FoundPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0)
  176.                 end
  177.             end
  178.         end
  179.     end)
  180.     pcall(function()
  181.         for Iter = 1, 5 do
  182.             Stalls["Stall" .. Iter].ProxPart.ProximityPrompt.Enabled = true
  183.             Stalls["Stall" .. Iter].ProxPart.ProximityPrompt.HoldDuration = 0
  184.             Stalls["Stall" .. Iter].ProxPart.ProximityPrompt.RequiresLineOfSight = false
  185.             Stalls["Stall" .. Iter].ProxPart.ProximityPrompt.MaxActivationDistance = 25
  186.         end
  187.     end)
  188. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement