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

Trying to make a gui change a leaderstat i dont know?

Asked by 6 years ago

can any one help me im trying to make a gui change a leaderstats but my code is not working: script.Parent.MouseButton1Click:connect(function(player) script.Parent.Parent.Parent.Visible = false player.Leaderstats.PokeDex = 1 end) to me it does not make sense?

1 answer

Log in to vote
0
Answered by 6 years ago

Try this, it seems the problem was you were not getting the value of “PokeDex” you were just getting the instance of it.

script.Parent.MouseButton1Click:connect(function(player) 
script.Parent.Parent.Parent.Visible = false 
player.Leaderstats.PokeDex.Value = 1 
end)
Ad

Answer this question