#Cant get this function to fire properly?

1 messages · Page 1 of 1 (latest)

chilly lotus
#

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)```
#

ok issue is with the prompts existance

#

but its there 😭

#

doesnt even error saying it sint

#

isnt

#

it jsut wont do ANYTHING with it

#

Im kinda dumb

#

didnt check the local player was the joinee

low nova
#

do it in server

chilly lotus
#

action text

#

and enabled

#

the rest is on the server dw

#

im not that dumb 😭

chilly lotus
#

ty tho 😄