I have a local script that changes the UI's text depending on how much currency (coins) you have but when I try test it, I get no print messages and the text doesn't change at all! The UI is inside StarterGUI and the currency folder is inside the player (same place where you would have your leaderstats folder).
The local script:
game.Players.PlayerAdded:Connect(function(plr)
local coins = plr:WaitForChild("Currency").Coins
print("a")
script.Parent.Text = coins.Value
print("a2")
coins:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = coins.Value
print("a3")
end)
end)

1 comment
Turns out all I had to do was replace game.Players.PlayerAdded:Connect(function(plr) with local plr = game.Players.LocalPlayer