i have tried to get the double cost to work in a kinds of ways but it never seems to work. This is one of the attempts:
local player= game. Players, Localplayer
local Coins= player.leaderstats:FindFirstChild("Coins")
local Rebirths = player.leaderstats:FindFirstChild( "Rebirths")
local price = script. Parent.Price.Value
local amount= script.Parent.Amount.Value
script.Parent.MouseButton1Click:Connect(function()
if Coins.Value >= price then
Coins.Value = 0
Rebirths.Value += amount
price = price * 2
end
end)

2 comments
game. Players, Localplayer should be game.Players.LocalPlayer, this "." means that you are trying to access property of something, in your case "LocalPlayer" property of "Players", also your script only changes Rebirths value locally only on your computer, no-one else will see this, see RemoteEvents to solve your issue
u7p4#6969