Essentials is currently indev. More functions are subject to arrive, please report any bugs by either opening an issue, or by dm'ing the owner (Discord: loopy5418).
Essentials - A library that has all the functions pre-written, making your scripts 1000x easier to make :)
Essentials is a lua library made for the Roblox exploiters - it has the most useful functions pre-built into the library, making scripting a little more fun. Essentials was created in 25.07.2024 by Loopy5418, with the sole purpose of helping other scripters in the community.
To use Essentials in your scripts, insert this loadstring at the top of your script;
local ess = loadstring(game:HttpGet("https://raw.githubusercontent.com/loopy5418/essentialslib/main/src.lua",true))()
Now that you have Essentials loaded in your script, you can use the functions. Here are the current functions;
Essentials functions are already listed in the source file, in their respective places. Referring to the source file is easier.
function ess:updateMovement(speed, power)
-- USAGE: The "speed" parameter will change your character's walking speed, the
-- "power" parameter will change your character's jumping height.
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
game.Players.LocalPlayer.Character.Humanoid.JumpPower = power
end
function ess:getUsername()
-- USAGE: Run this function to return the players name.
return game.Players.LocalPlayer.Name
end
function ess:getDisplayName()
-- USAGE: Run this function to return the players display name.
return game.Players.LocalPlayer.DisplayName
end
function ess:RoundNumber(int, float)
-- USAGE: The "int" parameter is for the integer, the "float" parameter
-- is for the float. Rounds number based on the parameters.
return tonumber(string.format("%." .. (int or 0) .. "f", float))
end
function ess:getPlaceID()
-- USAGE: Run this function to return the place ID.
return game.PlaceId
end
function ess:getUserID()
-- USAGE: Run this function to return the players user ID.
return game.Players.LocalPlayer.UserId
end
function ess:getJobID()
-- USAGE: Run this function to return the job ID.
return game.JobId
end
function ess:rejoin()
-- USAGE: Run this function to make the player leave, and join the same server. Will join a new server if the old one is unavaible.
game:GetService("TeleportService"):TeleportToPlaceInstance(ess:GetPlaceID(), ess:GetJobID(), ess:GetUserID())
end
function ess:copyString(query)
-- USAGE: Run this function to copy a string to the clipboard.
setclipboard(query)
end
function ess:GetDay(type)
--[[ =====USAGE=====
GetDay("word") - Returns the current day in a full word
GetDay("short") - Returns the current day in a shortened word
GetDay("month") - Returns the current day of the month in digits
GetDay("year") - Returns the current day of the year in digits
]]--
if type == "word" then
return os.date("%A")
elseif type == "short" then
return os.date("%a")
elseif type == "month" then
return os.date("%d")
elseif type == "year" then
return os.date("%j")
end
end
function ess:GetTime(type)
--[[ =====USAGE=====
GetTime("24h") - Returns the current time using a 24 hour clock
GetTime("12h") - Returns the current time using a 12 hour clock
GetTime("minute") - Returns the current time in minutes
GetTime("half") - Returns the current time's part (AM or PM)
GetTime("second") - Returns the current time in seconds
GetTime("full") - Returns the current time in full format
GetTime("zone") - Returns the current timezone
]]--
if type == "24h" then
return os.date("%H")
elseif type == "12h" then
return os.date("%I")
elseif type == "minute" then
return os.date("%M")
elseif type == "half" then
return os.date("%p")
elseif type == "second" then
return os.date("%S")
elseif type == "full" then
return os.date("%X")
elseif type == "zone" then
return os.date("%Z")
end
end
function ess:GetMonth(type)
--[[ =====USAGE=====
GetMonth("word") - Returns the current month in a full word
GetMonth("short") - Returns the current month in a shortened word
GetMonth("digit") - Returns the current month's number
]]--
if type == "word" then
return os.date("%B")
elseif type == "short" then
return os.date("%b")
elseif type == "digit" then
return os.date("%m")
end
end
function ess:GetWeek(type)
--[[ =====USAGE=====
GetWeek("year") - Returns the current week from year
GetWeek("day") - Returns the current week day
]]--
if type == "year" then
return os.date("%W")
elseif type == "day" then
return os.date("%w")
end
end
function ess:GetYear(type)
--[[ =====USAGE=====
GetYear("digits") - Returns the last 2 digits of the current year
GetYear("full") - Returns the full year
]]--
if type == "digits" then
return os.date("%y")
elseif type == "full" then
return os.date("%Y")
end
end
Thank you for using Essentials. Keep in mind this is only an indev build, and more (hundreds) functions will be subject to come.