Rebirth GUI not doubling when the player rebirths

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want the GUI to double when ever the player rebirths (The rebirth value doubles but the GUI does not)
  2. What is the issue? Include screenshots / videos if possible!
    The issue is the GUI does not double

    The max level is 5 but the UI did not update when I rebirthed.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried looking at other communities but no one helped. None of the functions I use were deprecated so I did not have to use the Developer Hub.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Server Script:

RebirthFunction.OnServerInvoke = function(player) 
		if player.leaderstats.Wins.Value >= MaxLevel  then
			MaxLevel = MaxLevel * 2
			player.leaderstats.Rebirths.Value = player.leaderstats.Rebirths.Value + 1 
			player.leaderstats.Wins.Value = 0 
			player.Character.Humanoid.JumpHeight = 0
		return true

local script:

local player = game.Players.LocalPlayer  
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RebirthFunction = ReplicatedStorage:WaitForChild("Rebirth")

local MaxLevel = 5

local OpenrebirthFrame = script.Parent:WaitForChild("RebirthOpen") 
local RebirthFrame = script.Parent:WaitForChild("RebirthFrame") 
local RebirthButton = RebirthFrame:WaitForChild("Rebirthing") 
local leaderstats = player:WaitForChild("leaderstats") 
local Rebirths = leaderstats:WaitForChild("Rebirths") 

	RebirthFrame.Visible = not RebirthFrame.Visible 

	local newMultiplier = Rebirths.Value + 2 
	RebirthFrame.Multiplier.Text = "Your new multiplier will be "..newMultiplier  .. "x" 

	local Wins = leaderstats:WaitForChild("Wins")
	local didPlayerRebirth = RebirthFunction:InvokeServer()  

	if Wins.Value >= MaxLevel then 
		didPlayerRebirth = true  

		local newMultiplier = Rebirths.Value + 2 
		RebirthFrame.Multiplier.Text = "Your new multiplier will be "..newMultiplier .. "x"

		local newCost = MaxLevel * 2 
		RebirthFrame.Cost.Text = "Cost: " .. newCost .. "Wins"

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

1 Like