Hello, and thank you for checking in on this very simple question
I just returned from a very long coding break and I cant remember anything.
Instead of going back to my more complicated game i’m starting another, more simple one.
I want to register when a player joins to fire a command.
All I can remember is that it has to do with something along the lines of
local player = game.Players.LocalPlayer
print(player.Name .. ' Has joined the game!')
But if it’s a Server or “normal” script you can do.
game.Players.PlayerAdded:Connect(function(player)
print(player.Name .. ' Has joined the game!')
end)
I recommend watching tutorials/reading the docs and doing research, this is very easy to do and you can easily find the answer to this just by googling it.
I wish you luck in the future with your scripting adventures.