-- Waits until game is loaded
local game = game
local GetService = game.GetService
if (not game.IsLoaded(game)) then
local Loaded = game.Loaded
Loaded.Wait(Loaded);
wait(1.5)
end
-- Notification library
local Notification = loadstring(game:HttpGet("https://[Log in to view URL]"))();
local Notify = Notification.Notify;
-- Custom file functions checker checker
local CustomFunctionSupport = isfile and isfolder and writefile and readfile and listfiles
local FileSupport = isfile and isfolder and writefile and readfile
-- Creates folder & files for Prefix & Plugins
if FileSupport then
if not isfolder('Fire-Admin') then
makefolder('Fire-Admin')
end
if not isfolder('Fire-Admin/Plugins') then
makefolder('Fire-Admin/Plugins')
end
if not isfile("Fire-Admin/Prefix.txt") then
writefile("Fire-Admin/Prefix.txt", ';')
else
end
end
-- [[ PREFIX AND OTHER STUFF. ]] --
local opt = {
prefix = readfile("Fire-Admin/Prefix.txt", ';'), -- If player's executor has the custom file function support it reads the prefix file to get prefix
tupleSeparator = ',', -- ;ff me,others,all | ;ff me/others/all
ui = { -- never did anything with this
},
keybinds = { -- never did anything with this
},
}
-- [[ Version ]] --
currentversion = 1.0
--[[ VARIABLES ]]--
PlaceId, JobId = game.PlaceId, game.JobId
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local TeleportService = game:GetService("TeleportService")
local RunService2 = game:FindService("RunService")
local StarterGui = game:GetService("StarterGui")
local SoundService = game:GetService("SoundService")
sethidden = sethiddenproperty or set_hidden_property or set_hidden_prop
local Player = game.Players.LocalPlayer
local IYLOADED = false -- This is used for the ;iy command that executes infinite yield commands using this admin command script (BTW)
local Humanoid = Character and Character:FindFirstChildWhichIsA("Humanoid") or false
local Character = game.Players.LocalPlayer.Character
local Clicked = true
_G.Spam = false
--[[ FOR LOOP COMMANDS ]]--
view = false
anniblockspam = false
control = false
FakeLag = false
Loopvoid = false
Loopkill = false
Loopbring = false
Loopbanish = false
Loopvoid = false
Loopcuff = false
loopgrab = false
Loopstand = false
Looptornado = false
Loopmute = false
Loopglitch = false
Watch = false
local Admin = {}
--[[ Some more variables ]]--
local localPlayer = Players.LocalPlayer
local LocalPlayer = Players.LocalPlayer
local character = localPlayer.Character
local mouse = localPlayer:GetMouse()
local camera = workspace.CurrentCamera
local camtype = camera.CameraType
local Commands, Aliases = {}, {}
player, plr, lp = localPlayer, localPlayer, localPlayer, localPlayer
localPlayer.CharacterAdded:Connect(function(c)
character = c
end)
local bringc = {}
--[[ COMMANDS ]]--
--[[ LIBRARY FUNCTIONS ]]--
lib = {}
lib.wrap = function(f)
return coroutine.wrap(f)()
end
wrap = lib.wrap
local wait = function(int)
if not int then int = 0 end
local t = tick()
repeat
RunService.Heartbeat:Wait(0)
until (tick() - t) >= int
return (tick() - t), t
end
function r15(plr)
if game.Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
return true
end
end
function getRoot(character)
local root = game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') or game.Players.LocalPlayer.Character:FindFirstChild('Torso') or game.Players.LocalPlayer.Character:FindFirstChild('UpperTorso')
return root
end
-- [[ FUNCTION TO GET A PLAYER ]] --
local getPlr = function(Name)
if Name:lower() == "random" then
return Players:GetPlayers()[math.random(#Players:GetPlayers())]
else
Name = Name:lower():gsub("%s", "")
for _, x in next, Players:GetPlayers() do
if x.Name:lower():match(Name) then
return x
elseif x.DisplayName:lower():match("^" .. Name) then
return x
end
end
end
end
-- [[ MORE VARIABLES ]] --
plr = game.Players.LocalPlayer
COREGUI = game:GetService("CoreGui")
speaker = game.Players.LocalPlayer
char = plr.Character
RunService = game:GetService("RunService")
game:GetService('RunService').Stepped:connect(function()
if anniblockspam then
game.workspace.Tools.Chest_Invisibility_Cloak.Part.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
if game.Players.LocalPlayer.Backpack:FindFirstChild("InvisibilityCloak") then
game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack.InvisibilityCloak)
end
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if (v:IsA("Tool")) then
v.Handle.Mesh:Destroy()
end
end
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if (v:IsA("Tool")) then
v.Parent = workspace
end
end
end
end)
-- [[ LIB FUNCTIONS ]] --
lib.lock = function(instance, par)
locks[instance] = true
instance.Parent = par or instance.Parent
instance.Name = "RightGrip"
end
lock = lib.lock
locks = {}
lib.find = function(t, v) -- mmmmmm
for i, e in pairs(t) do
if i == v or e == v then
return i
end
end
return nil
end
lib.parseText = function(text, watch)
local parsed = {}
if not text then return nil end
for arg in text:gmatch("[^" .. watch .. "]+") do
arg = arg:gsub("-", "%%-")
local pos = text:find(arg)
arg = arg:gsub("%%", "")
if pos then
local find = text:sub(pos - opt.prefix:len(), pos - 1)
if (find == opt.prefix and watch == opt.prefix) or watch ~= opt.prefix then
table.insert(parsed, arg)
end
else
table.insert(parsed, nil)
end
end
return parsed
end
lib.parseCommand = function(text)
wrap(function()
local commands = lib.parseText(text, opt.prefix)
for _, parsed in pairs(commands) do
local args = {}
for arg in parsed:gmatch("[^ ]+") do
table.insert(args, arg)
end
cmd.run(args)
end
end)
end
local connections = {}
lib.connect = function(name, connection) -- no :(
connections[name .. tostring(math.random(1000000, 9999999))] = connection
return connection
end
lib.disconnect = function(name)
for title, connection in pairs(connections) do
if title:find(name) == 1 then
connection:Disconnect()
end
end
end
m = math -- prepare for annoying and unnecessary tool grip math
rad = m.rad
clamp = m.clamp
sin = m.sin
tan = m.tan
cos = m.cos
--[[ PLAYER FUNCTIONS ]]--
argument = {}
argument.getPlayers = function(str)
local playerNames, players = lib.parseText(str, opt.tupleSeparator), {}
for _, arg in pairs(playerNames or {"me"}) do
arg = arg:lower()
local playerList = Players:GetPlayers()
if arg == "me" or arg == nil then
table.insert(players, localPlayer)
elseif arg == "all" then
for _, plr in pairs(playerList) do
table.insert(players, plr)
end
elseif arg == "others" then
for _, plr in pairs(playerList) do
if plr ~= localPlayer then
table.insert(players, plr)
end
end
elseif arg == "random" then
table.insert(players, playerList[math.random(1, #playerList)])
elseif arg:find("%%") == 1 then
local teamName = arg:sub(2)
for _, plr in pairs(playerList) do
if tostring(plr.Team):lower():find(teamName) == 1 then
table.insert(players, plr)
end
end
else
for _, plr in pairs(playerList) do
if plr.Name:lower():find(arg) == 1 or (plr.DisplayName and plr.DisplayName:lower():find(arg) == 1) or (tostring(plr.UserId):lower():find(arg) == 1) then
table.insert(players, plr)
end
end
end
end
return players
end
To embed this project on your website, copy the following code and paste it into your website's HTML: