ServerScript Showing GUI Help

I am making a RNG game but when the player rolls, I want to show the GUI. It does not show and that makes me quit working on a game(because I had bugs like this a long time ago on other games).

My ServerScriptService script(only part of it but if you need them all, ask me):

game.StarterGui.Game.RollingFrame.Visible = true
game.StarterGui.Game.RollingFrame.Chance.Text = "1 in "..tonumber(index[2])
game.StarterGui.Game.RollingFrame.Amount.Text = plr.Values.Base * index[2]

I don’t think the text even changes. The biggest problem is the GUI not showing. Help is appreciated!

You are editing the gui inside StarterGui not inside the player, you should do it like this:

player.PlayerGui.Game.RollingFrame.Visible = true
player.PlayerGui.Game.RollingFrame.Chance.Text = "1 in "..tonumber(index[2])
player.PlayerGui.Game.RollingFrame.Amount.Text = plr.Values.Base * index[2]
2 Likes

Thank you! It works now and the GUI appears!

1 Like