Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.