-- Services local Players = game:GetService("Players")

-- Function to handle player join local function onPlayerJoin(player) print(player.Name .. " has joined the game.") end

-- Connect the function to the PlayerAdded event Players.PlayerAdded:Connect(onPlayerJoin) This script would be placed in a Script (not LocalScript) and serves as a basic example of interacting with players.