Basic Admin Essentials Join Notification

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

Any help will be great!

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
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.