So I made a support system, A basic GUI, where there is 2 text label, one said “Support Required” And the other one says “N/A”, and when a player said “>Support” in chat, “N/A” will turn into “Username is requesting support”
Here is a picture of the GUI:
What I’m trying to do:
I wanted it to be linked to Basic Admin Essential. When the player does >Support, a message in the button left corner will pop up. I tried not to fork with the module (As little as possible if that makes sense) but if I have to then I will.
(Optional: But I you are really good at scripting, I wanted to make it so that when you press on the username they will be teleported to the user requesting help.)
local clientRE = game.ReplicatedStorage.ClientRemoteEvent
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == ">Support" then
clientRE:FireAllClients(plr.Name)
end
end)
end)```
Script to change the gui:
```local clientRE = game.ReplicatedStorage.ClientRemoteEvent
clientRE.OnClientEvent:Connect(function(playerWhoNeedsHelp)
script.Parent.Parent.RequireSupport.Text = playerWhoNeedsHelp.." is requesting support"
end)```
I am new to the developer forum, and this is my first post. I'm sorry if this is in the wrong section.
Thank you for helping! :smiley:
____
/\ _`\ __
\ \ \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 = 'support' -- The command name that you will say to activate the command
local pluginPrefix = ">" -- Prefix should be sex in the main basic admin thing other wise change prefix to ">" for this custom prefix
local pluginLevel = 0 -- permission level
local pluginUsage = "" -- leave blank if the command has no arguments
local pluginDescription = "Support"
-- Example Plugin Function --
local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
local Player = Args[1]
local clientRE = game.ReplicatedStorage.ClientRemoteEvent
clientRE:FireAllClients(Player.Name)
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````