Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local LifeCount = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Counter = Instance.new("TextLabel")
- local LivesTitle = Instance.new("TextLabel")
- local Rebirths = Instance.new("TextLabel")
- local RebirthCount = Instance.new("TextLabel")
- local TimeCount = Instance.new("TextLabel")
- local Time = Instance.new("TextLabel")
- local Hide = Instance.new("TextButton")
- local Life = game.Players.LocalPlayer.Rebirths.Value
- local First = Life
- local Second = Life
- local RebirthValue = 0
- local Timer = 0
- -- Properties
- LifeCount.Name = "LifeCount"
- LifeCount.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = LifeCount
- Main.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.936948299, 0, 0.772833645, 0)
- Main.Size = UDim2.new(0, 100, 0, 150)
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0, 0, -0.00927408878, 0)
- Title.Size = UDim2.new(0, 100, 0, 25)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "Life Counter"
- Title.TextColor3 = Color3.new(0, 0, 0)
- Title.TextSize = 14
- Counter.Name = "Counter"
- Counter.Parent = Main
- Counter.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Counter.BorderSizePixel = 0
- Counter.Position = UDim2.new(0.439999998, 0, 0.157392576, 0)
- Counter.Size = UDim2.new(0, 56, 0, 36)
- Counter.Font = Enum.Font.SourceSans
- Counter.Text = "0"
- Counter.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- Counter.TextSize = 14
- LivesTitle.Name = "LivesTitle"
- LivesTitle.Parent = Main
- LivesTitle.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- LivesTitle.BorderSizePixel = 0
- LivesTitle.Position = UDim2.new(0, 0, 0.157392576, 0)
- LivesTitle.Size = UDim2.new(0, 44, 0, 36)
- LivesTitle.Font = Enum.Font.SourceSans
- LivesTitle.Text = "Lives"
- LivesTitle.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- LivesTitle.TextSize = 12
- Rebirths.Name = "Rebirths"
- Rebirths.Parent = Main
- Rebirths.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Rebirths.BorderSizePixel = 0
- Rebirths.Position = UDim2.new(0, 0, 0.37739259, 0)
- Rebirths.Size = UDim2.new(0, 44, 0, 36)
- Rebirths.Font = Enum.Font.SourceSans
- Rebirths.Text = "Rebirths"
- Rebirths.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- Rebirths.TextSize = 12
- RebirthCount.Name = "RebirthCount"
- RebirthCount.Parent = Main
- RebirthCount.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- RebirthCount.BorderSizePixel = 0
- RebirthCount.Position = UDim2.new(0.439999998, 0, 0.37739259, 0)
- RebirthCount.Size = UDim2.new(0, 56, 0, 36)
- RebirthCount.Font = Enum.Font.SourceSans
- RebirthCount.Text = "0"
- RebirthCount.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- RebirthCount.TextSize = 14
- TimeCount.Name = "TimeCount"
- TimeCount.Parent = Main
- TimeCount.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- TimeCount.BorderSizePixel = 0
- TimeCount.Position = UDim2.new(0.439999998, 0, 0.6173926, 0)
- TimeCount.Size = UDim2.new(0, 56, 0, 36)
- TimeCount.Font = Enum.Font.SourceSans
- TimeCount.Text = "0"
- TimeCount.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- TimeCount.TextSize = 14
- Time.Name = "Time"
- Time.Parent = Main
- Time.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Time.BorderSizePixel = 0
- Time.Position = UDim2.new(0, 0, 0.6173926, 0)
- Time.Size = UDim2.new(0, 44, 0, 36)
- Time.Font = Enum.Font.SourceSans
- Time.Text = "Time"
- Time.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- Time.TextSize = 12
- Hide.Name = "Hide"
- Hide.Parent = LifeCount
- Hide.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Hide.BorderSizePixel = 0
- Hide.Position = UDim2.new(0.937061846, 0, 0.923429549, 0)
- Hide.Size = UDim2.new(0, 100, 0, 22)
- Hide.Font = Enum.Font.SourceSans
- Hide.Text = "Close"
- Hide.TextColor3 = Color3.new(0.290196, 0.72549, 0.32549)
- Hide.TextSize = 14
- -- Scripts:
- Hide.MouseButton1Down:connect(function()
- if Main.Visible == false then
- Hide.Text = "Close"
- Main.Visible = true
- elseif Main.Visible == true then
- Hide.Text = "Open"
- Main.Visible = false
- end
- end)
- while wait(60) do
- Timer = Timer+1
- TimeCount.Text = Timer..Minutes
- end
- game.Players.LocalPlayer.leaderstats.Life.Changed:connect(function(plr)
- delay(4, function()
- local Second = game.Players.LocalPlayer.Rebirths.Value
- local CounterValue = Second-First
- RebirthValue = RebirthValue+1
- RebirthCount.Text = RebirthValue
- Counter.Text = CounterValue
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement