PlayerAdded not working in script inside workspace

I’m guessing it’s because the script doesn’t load as fast as when the player is added to a new server. I’m making a model for others to use but I want to make it as simple as can be where the server script is inside Workspace. Is there any way to fix PlayerAdded?

You could try getting all the players when the script loads, and then start listening after

local function doStuff(player)
    -- do whatever
end

for _, player in ipairs(game.Players:GetPlayers) do
    doStuff(player)
end

game.Players.PlayerAdded:Connect(doStuff)