I To make it run the code after "Then" If the player that joined match's one of the names it runs the code for the name.
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
if player.Name == "Hamoodiyt" then
print("the CEO joined")
elseif player.Name == "Agenerousguy" then
print("the Builder joined")
elseif player.Name == "YOBECOOLL!" then
print("the Co-CEO joined")
end
end)
To be clear. I am not a pro at this, I started Learning Lua about 2 weeks ago

2 comments
Hey Sorry but where to put this ?
I forgot to mention that, Oops! Put it in serverscriptservice (make sure its a serverscript)