Using a admin system: Adonis Admin
I set it as a server plugin, and it’s nothing to do with adonis i’m 99% sure. So why is this textlabel not changing? Here’s the code:
--!nolint UnknownGlobal
--[[
SERVER PLUGINS' NAMES MUST START WITH "Server:" OR "Server-"
CLIENT PLUGINS' NAMES MUST START WITH "Client:" OR "Client-"
Plugins have full access to the server/client tables and most variables.
You can use the MakePluginEvent to use the script instead of setting up an event.
PlayerChatted will get chats from the custom chat and nil players.
PlayerJoined will fire after the player finishes initial loading
CharacterAdded will also fire after the player is loaded, it does not use the CharacterAdded event.
service.Events.PlayerChatted(function(plr, msg)
print(msg..' from '..plr.Name..' Example Plugin')
end)
service.Events.PlayerJoined(function(p)
print(p.Name..' Joined! Example Plugin')
end)
service.Events.CharacterAdded(function(p)
server.RunCommand('name',plr.Name,'BobTest Example Plugin')
end)
--]]
local Message = game.StarterGui.Coords.Frame.Text
return function()
server.Commands.ExampleCommand = {
Prefix = server.Settings.Prefix; -- Prefix to use for command
Commands = {"emergencybroadcast"}; -- Commands
Args = {"message"}; -- Command arguments
Description = "Sets a emergency broadcast."; -- Command Description
Hidden = false; -- Is it hidden from the command list?
Fun = false; -- Is it fun?
AdminLevel = "Moderators"; -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas")
Function = function(plr,args) -- Function to run for command
Message.Text = args[1];
end
}
end
And here’s explorer: