so when someone calls !pts (integrated into BAE) it gives moderator+ admin level a notification that playername is requiring assistance, when they click it, it teleports them to the user which requiring assistance BUT… when a moderator+ click it, it immediately dissapears for all admins (the notification)
heres my template
local Plugin = function(...)
local Data = {...}
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]
local pluginName = 'support'
local pluginPrefix = actionPrefix
local pluginLevel = 0
local pluginUsage = ""
local pluginDescription = "Requests assistance from a moderator."
local playerService = game:GetService('Players')
local function pluginFunction(Args)
local Player = Args[1]
remoteEvent:FireClient(Player,'Hint','Panda Delights | Support System','Succesfully requested a Moderator. You will be assisted shortly.')
for a,b in next,playerService:GetPlayers() do
local PlayerPermission = returnPermissions(b)
if PlayerPermission > 0 then
remoteEvent:FireClient(b,'Notif','Support Needed','Click to assist, '..Player.Name.."" ,{"Support", Player.Name})
end
end
end
remoteEvent.OnServerEvent:connect(function(Player,Key,...)
local Data = {...}
if Data[1] == "Notification Transfer" then
if Data[2][1] == "Support" then
Player.Character.HumanoidRootPart.CFrame = game.Players[Data[2][2]].Character.HumanoidRootPart.CFrame*CFrame.new(0, 0, -7)*CFrame.Angles(0, math.pi, 0)
end
end
end)
--- write everything to main module
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