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?
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)