I was making some basic and random code and nothing happend when I ran it.
local players = {} game.Players.PlayerAdded:Connect(function(player) table.insert(players, player.Name) end) for i, v in pairs(players) do if v.Name == "CodeWon" then print("Hello") end end
local players = {} game.Players.PlayerAdded:Connect(function(player) table.insert(players, player.Name) if player.Name == "CodeWon" then print("Hello") end end)
This script should work.