Hey, I have never used BAE plugins so I am struggling. I want the player to be greeted with a notification when they join a game, however, I have no idea how to do this.
local Plugin = function(Data)
local remoteEvent = Data[1]
local function pluginFunction()
remoteEvent:FireClient("Notification", "meiw")
end
game.Players.PlayerAdded:Connect(function()
pluginFunction()
end)
end
return Plugin
Pass the player as the first parameter in the FireClient.
local Plugin = function(Data)
local remoteEvent = Data[1]
local function pluginFunction(plr)
remoteEvent:FireClient(plr, "Notification", "meiw")
end
game.Players.PlayerAdded:Connect(pluginFunction)
end
return Plugin