Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Lighting = game:GetService("Lighting")
- local BlurEffect = Lighting.Blur
- local Player = Players.LocalPlayer
- local DevProductsGUI = script.Parent.Parent.DevProducts
- local Islands = script.Parent.Parent.Islands
- local Left = script.Parent.Parent.Left
- 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
- OpenButton.MouseButton1Click:Connect(function()
- Rebirths.Frame:TweenPosition(UDim2.fromScale(0.5, 0.5), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 1)
- wait(0.25)
- BlurEffect.Enabled = true
- DevProductsGUI.Enabled = false
- Islands.Enabled = false
- Left.Enabled = false
- end)
- ExitButton.MouseButton1Click:Connect(function()
- Rebirths.Frame:TweenPosition(UDim2.fromScale(-2, -2), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 1)
- wait(0.25)
- BlurEffect.Enabled = false
- DevProductsGUI.Enabled = true
- Islands.Enabled = true
- Left.Enabled = true
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement