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]
-- Plugin Configuration --
local pluginName = 'help'
local pluginPrefix = actionPrefix
local pluginLevel = 0
local pluginUsage = ""
local pluginDescription = "Call for an admin's support."
-- Example Plugin Function --
local function pluginFunction(Args)
local Player = Args[1]
for _, Admin in ipairs(game.Players:GetPlayers()) do
if returnPermissions(Admin) >= 1 then
-- Send notification to admins
remoteEvent:FireClient(Admin, "Notif", "Help Requested", "Click to teleport", Player.Name)
-- Teleport admin to the player requesting help
Admin.Character:MoveTo(Player.Character.HumanoidRootPart.Position)
end
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
This is my script. If someone says !help, it teleports the admin without actually them clicking on it, and it also gives the notification of “Click to teleport” or something along the lines of that. How could I make it so if they click on it, it teleports to them and makes the notification disappear for all people? Thanks!