local Players = game:GetService("Players") local Player = Players.LocalPlayer local Buttons = script.Parent.Parent.Left local Rebirths = script.Parent.Parent.Rebirths local OpenButton = Buttons.Frame.Rebirths local ExitButton = Rebirths.Frame.Exit local Amount = Rebirths.Frame.Amount local RebirthButton = Rebirths.Frame.Rebirth local GuiHandler = require(script.Parent.Controllers.GuiHandler) OpenButton.MouseButton1Click:Connect(function() Rebirths.Frame.Visible = true Rebirths.Frame:TweenSize(UDim2.fromScale(0.5, 0.65), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.1) wait() GuiHandler.BlurAllGuis() wait(0.01) Rebirths.Enabled = true end) ExitButton.MouseButton1Click:Connect(function() Rebirths.Frame:TweenSize(UDim2.fromScale(0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.1) wait(0.1) Rebirths.Frame.Visible = false wait() GuiHandler.UnBlurGuis() end) RebirthButton.MouseButton1Click:Connect(function() if ((Player.leaderstats.Rebirths.Value * 1000) + 500) * 1.35 <= Player.Points.Value then workspace.Remotes.RebirthPlayer:FireServer() end end) while wait(0.1) do if ((Player.leaderstats.Rebirths.Value * 1000) + 500) * 1.35 <= Player.Points.Value then Amount.Text = "You Have Enough Points To Rebirth!" else Amount.Text = "You Need "..((Player.leaderstats.Rebirths.Value * 1000) + 500) * 1.35 - Player.Points.Value.." More Points To Rebirth!" end end