Need help with Rebirth System

So I am trying to make an rebirth system for my Game

local plr = script.Parent.Parent.Parent.Parent.Parent
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

local number_of_times_bought = plr.leaderstats.Rebirths
local current_price = 1000000000 -- start off at 100

script.Parent.MouseButton1Click:Connect(function()
	local Short = require(game.ReplicatedStorage.Short)
	local plr = script.Parent.Parent.Parent.Parent.Parent
	local Players = game:GetService("Players")
	local Player = Players.LocalPlayer

	local number_of_times_bought = plr.leaderstats.Rebirths
	local current_price = 1000000000 -- start off at 100
	
	if Player.leaderstats.Coins.Value > current_price then
		Player.leaderstats.Rebirths.Value = Player.leaderstats.Rebirths.Value + 1
		current_price = 1.1 * current_price
		Player.leaderstats.Coins.Value = 0
		Player.leaderstats.Gems.Value = 0
	end
end)
if Player.leaderstats.Coins.Value < current_price then
	print("You dont have have enough coins, You need (current_price)")	
end

The requirement to rebirth is 1b and the price would rise everytime u rebirth
This is what I have right now but it isnt working, would be great if someone knows how to fix it

Whem creating a topic you need to say the error. It’s hard to help if we don’t have a idea of the error.

The Studio dosent show any error and the game itself as well, I am just wondering why it isnt working in general thats the main thing, I dont know if the game dosent read the value entered for current_price or if there is anything else wrong with the script.

Also are you trying to do it on Server Script? If yes, you should use RemoteEvents. Values can’t be changed globale by a client

alright thank you, I will try it