Cant get this playerAdded function to fire properly?
game.ReplicatedStorage.events.updatePrompts.OnClientEvent:Connect(function(storeOwner, prompt)
prompt.ActionText = "Donate"
prompt.Enabled = true
if game.Players.LocalPlayer.Name ~= storeOwner.Name then return end
prompt.ActionText = "Edit"
end)
game.Players.PlayerAdded:Connect(function()
for _, v in workspace.stores:GetChildren() do
print(v.Name)
if v:GetAttribute("Claimed") then
local prompt = v.game:WaitForChild("ProximityPrompt")
prompt.ActionText = "Donate"
prompt.Enabled = true
return
end
end
end)```