I know many people have wanted this for a long time and they couldn’t do it without buying a script, but i’m going to show you how to make a StickyMessage quick and easy by only editing the Basic Admin Module.
All we will be using is the Basic Admin Client, and we will make a plugin for the actual stickymessage command.
Inserting Basic Admin Essentials
Firstly, you will need to enter in the Basic Admin Essentials V2 from toolbox. Ungroup the model, delete the thumbnail camera, and put the script in ServerScriptService. It should look something like this -
Go into the script, and enter this in on line 40
['Loader ID'] = script.MainModule,
Then you need to grab the MainModule. If you don’t have the model already, go to https://create.roblox.com/store/asset/563619835/BAE-20-Module and get the model. Then, go to the command bar, and enter this code to insert the model into the game -
Ungroup the model and look for Basic Admin Client under the main module.
Open it up.
Editing the Script
Once you’re inside, navigate to line 1724. Copy all the code from 1724 to 1770 paste it one line under 1770. Then go to line 1771 and change
elseif Type == "Hint" then
to
elseif Type == "StickyMessage" then
Delete lines 1805 to 1817 and you should have it look like this -
Navigate to line 2605. You should see -
elseif Starter == "Hint" then
if not consoleOpen then
Display('Hint',{Data[1],Data[2]})
end
Copy that, and paste one line under 2608. On line 2609, change
elseif Starter == "Hint" then
if not consoleOpen then
Display('Hint',{Data[1],Data[2]})
end
to
elseif Starter == "StickyMessage" then
if not consoleOpen then
Display('StickyMessage',{Data[1],Data[2]})
end
You should see this now -
Creating The Command
In explorer, go to plugins, and open Example Plugin
Delete all the code, and enter this -
--[[
____
/\ _`\ __
\ \ \L\ \ __ ____/\_\ ___
\ \ _ <' /'__`\ /',__\/\ \ /'___\
\ \ \L\ \/\ \L\.\_/\__, `\ \ \/\ \__/
\ \____/\ \__/.\_\/\____/\ \_\ \____\
\/___/ \/__/\/_/\/___/ \/_/\/____/
Admin Essentials v2
Plugin Documentation
*coming soon^tm
If you have any questions regarding Plugins, contact TheFurryFish.
--]]
local Plugin = function(...)
local Data = {...}
-- Included Functions and Info --
local remoteEvent = Data[1][1]
local remoteFunction = Data[1][2]
local returnPermissions = Data[1][3]
local Commands = Data[1][4]
local Prefix = Data[1][5]
local actionPrefix = Data[1][6]
local returnPlayers = Data[1][7]
local cleanData = Data[1][8] -- cleanData(Sender,Receiver,Data)
-- Practical example, for a gui specifically for a player, from another player
-- cleanData(Sender,Receiver,"hi") -- You need receiver because it's being sent to everyone
-- Or for a broadcast (something everyone sees, from one person, to nobody specific)
-- cleanData(Sender,nil,"hi") -- Receiver is nil because it is a broadcast
-- Plugin Configuration --
local pluginName = 'stickymessage'
local pluginPrefix = Prefix
local pluginLevel = 1
local pluginUsage = "<Message>" -- leave blank if the command has no arguments
local pluginDescription = "Enter Desc Here."
-- Example Plugin Function --
local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
local Player = Args[1]
if Args[3] then
local combinedArgs = ""
for a,b in pairs(Args) do
if a > 2 then
combinedArgs = combinedArgs..b..' '
end
end
remoteEvent:FireAllClients('StickyMessage','StickyMessage by '..tostring(Player),tostring(combinedArgs))
end
end
-- Return Everything to the MainModule --
local descToReturn
if pluginUsage ~= "" then
descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
else
descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription
end
return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}
end
return Plugin
Thanks For Reading! Please tell me if I have any bugs, or if you have any questions!
If you would like to view the game I made that has the stickymessage plugin, here it is - basic admin stickymessage - Roblox
- Yes
- For future
- No
0 voters