01 | local open = false |
02 | local player = game.Players.LocalPlayer |
03 |
04 | script.Parent.RebirthButton.MouseButton 1 Click:Connect( function () |
05 | if open = = false then |
06 | script.Parent.Frame.Visible = true |
07 | script.Parent.Frame.Requirements.Text = "You need " ..(player.leaderstats.Rebirths.Value+ 1 * 2500 ).. " to rebirth." |
08 | open = true |
09 | else |
10 | script.Parent.Frame.Visible = false |
11 | open = false |
12 | end |
13 | end ) |
14 |
15 | script.Parent.Frame.RebirthButton.MouseButton 1 Click:Connect( function () |
You need to remove line 22 because it is saying that it is adding 2500 to rebirths.