Question is in the title. I'm having trouble getting this code to fire each time the character spawns.
local remoteEvent = game.ReplicatedStorage.RemoteEvent
local function onCharacterAdded(character) print("1")
remoteEvent:FireClient(character)
end
Players.PlayerAdded:Connect(onCharacterAdded)
I feel like I'm most likely making a stupid mistake, but any help would be appreciated.

1 comment
Whoops! Thanks for the comment, I had an error in my answer I provided. It's been updated to meet the criteria you provided.