Function only fires for the first one to join the game

Hello, so Im having problems with whis code right here,
The problem is that the function only fires for the fist one to join the game, and not if your second to join, any clues why?
(“ORKWEREWON” is a value located in every character)

RunService.RenderStepped:Connect(function()
    local Value
    if workspace:FindFirstChild("ORKWEREWON", true) then
        Value = workspace:FindFirstChild("ORKWEREWON", true)
        if Value.Parent.Parent.Parent == workspace then
            if Value.Value == false then
                Value.Value = true
                v4(Value.Parent.Parent)
            end
        end
    end
end)

Where is the code nested, can you send a screenshot of the explorer ?

Its located in starterplayerscripts.

I dont know what you are trying to do with this script
can you like explain for what purpose you need it ?

Can you show your full script?

Its for my footsteps, i just need to make the function run everytime a new character is added

Its for my footsteps, i just need to make the function run everytime a new character is added

Its located in starterplayerscripts.

Place it in StarterCharacterScripts instead for it to run each time a new character is added or respawned.

If i place it in StarterCharacterScripts, the footsteps will only be heard on the client, not on the server.

Try adding a game.Players.PlayersAdded line above the script, this way it will affect all players that join

Yeah, the same as placing it in starterplayerscripts - both only use LocalScripts. The only difference is starterplayerscripts runs when a player joins, StarterCharacterScripts run each time a character is loaded.