Normal script, supposed to print the player's value of coins on their GUI, but I'm not sure why it's not? No errors seem to output, but it's just stuck on Loading... Any help is appreciated, as I'm still looking into the issue.
local Player = workspace:findFirstChild("Player")
wait(4)
if workspace:findFirstChild("Player") then
Player.Coins.Changed:connect(function(Val)
script.Parent.Text = "" .. Player.Coins.Value .. " Coins"
script.Coin.Pitch = math.random(0.8,1.3)
script.Coin:Play()
end)
end

1 comment
I think I'm supposed to have some sort of IntValue that holds the value of the Coins. How would I create a value that would be inside the Player?