Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The Money Stat Is not Updating?

Asked by 4 years ago
Edited 4 years ago

I Updated The Code

script.Parent.Touched:connect(function(hit)

    local findhum = hit.Parent:FindFirstChild("Humanoid")

    if findhum then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)

player.leaderstats.Coins.Value = player.leaderstats.Coins.Value +  player.leaderstats.Strength.Value
player.leaderstats.Strength.Value = 0

end
end)

i cant seem to find any way around this problem

0
What are you trying to archive? XviperIink 428 — 4y
0
a sell pad UnforgivenJr3087 26 — 4y
0
I assume this is a Server Script (normal script) as LocalScripts doesn't work in the Workspace, which I assume is where this script is located, and then my answer is, ServerScripts can't change or even see what is inside a player's PlayerGui. Spjureeedd 385 — 4y
0
the serverscript can see the player data i can alter it but it wont update the values inside the script so it will never change UnforgivenJr3087 26 — 4y

Answer this question