I am currently working with a friend on a Victorian-themed rat-catching game, where gamers have to survive on the streets of a Victorian city doing menial jobs (such as rat-catching) in order to survive. It is not a player versus player game - it is a single player survival game. The main objective is for the player to simply survive on the streets. I have developed a leader board that essential for the game-play, consisting of the number of rats caught, the amount of money earnt, the hunger level and the thirst level of that player. I have tested the leader board and it both works and saves fine. However, due to the objective of the game, there is no need to rank multiple players in the form of a whole-game leader board. I do not want the stats of other players to be visible and hamper the viewing experience of players. I want the leader board to be permanently minimised, at the top right-hand corner of the screen.
What is the issue?
This is what I am trying to achieve: I simply want the leader board to exist in its minimised form at all stages of the game. I do not want players to be able to view the stats of each other: I only want their own stats to be present upon the screen.
I have spent several hours searching the Internet, using a range of search terms, to try and find a way of scripting the leader board to solely exist in its minimalised form. I have watched many tutorials on the scripting of the leader board. I have searched the toolbox for scripts made by other members of this community. My searches have yielded no satisfaction. I seem to be only able to find tutorials on how to remove the leader board completely. (This is something that I do not want.) Every ‘solution’ I have tried so far either has no effect or deletes the leader board completely.
If you want to view the game for yourself, to see what I am trying to achieve, you can access the game at the following link: Rat Catching Game
If you are able to help me, I would be very grateful. The city is crawling with rats and I desperately want to get rid of them. Thank you very much in anticipation, for any pointers that you can pass on.
Thank you for your prompt reply but I am sorry, Rezzorez, but that does not produce the result that I want. It destroys the leader board completely. What I want to do is to simply minimalize it permanently, so that my own private player data is still visible.
To my knowledge of the Api and Wiki, i believe there is not way to permanently minimize the LeaderstatsGui, what you could try is overlaying a invisible GUI on-top of the Leaderstats, thus in theory not allowing the player to expand the leader-stats board
Thank you for your input very much, Jaycbee05. That was the answer that I feared.
I hadn’t thought about inserting a false GUI overlay, to obstruct players, but I am not sure whether that that would work. Whenever I play a Roblox game, the leader boards appears in its expanded form, by default. If it was possible to overlay a false GUI over the leader board, it would only stop players from minimising what was already present upon the screen.
If there is no way to minimalize the leader board permanently, may I ask, is there any way of removing the excessive rows, the rows of every other player, so that it looks like this? (Leaving just two rows, the main title row and the first row of the player’s private data.)
i don’t believe there is a specific method for this, but i just got and idea that might solve your problem( including deleting rows) , if you haven’t tried already, deleting the parts of the GUI that you don’t want directly could work, but i am not sure on the effect on the GUI scripts associated with it. Alternatively you could fork the GUI script entirely, allowing you to customize it extensively, downside to this is that it will no longer update by itself. (receive updates from roblox)
It will, but it just won’t show, what I suggest to you @RiverBL0X is to use Ui List layouts , I think they can be used for that purpose,if you’re going to customize them (custom leaderboards) .
Unless you can somehow modify CoreGui scripts or find hidden scripts, this would basically be impossible. I don’t think there is a real way to even do this, so your best option would to be just stick with the leaderboard.
Thank you, Scripter_123, for your input. I wanted players to interact and socialise with each other and so I was hoping for multiple players in the game. It was just that I don’t want these players to compete with each other. Their main game objective was simply to survive on the streets and not to ‘outdo’ each other. (In addition, trying to be as realistic as possible: one person would not know, in real life, how much money another person has.)
However, when I do that (and test the game) I see that the leader board is completely destroyed. All I wanted was for players to be able to view their own private stats and not view the stats of others. Am I doing something wrong? (I am inserting the above line into a local script, in the StarterGui folder.)