So Im making a game and wanted a developer had joined script it worked with one person but not two. Can someone explain to me what I did wrong?
local Players = Game:GetService("Players")
function PlayerAdded( newPlayer )
if newPlayer.Name == "GuardainDev, StevenzsDev" then
local msg = Instance.new("Message", Workspace)
msg.Text = "A Developer has joined the game."
wait(6)
msg:Destroy()
end
end
Players.PlayerAdded:connect(PlayerAdded)

1 comment
line 04 - I think you should try "GuardianDev","StevenzsDev" instead of "GuardainDev, StevenzsDev"