Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances:
- local TrackerList = Instance.new("ScreenGui")
- local List = Instance.new("TextLabel")
- --Properties:
- TrackerList.Name = "TrackerList"
- TrackerList.Parent = owner.PlayerGui
- TrackerList.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- List.Name = "List"
- List.Parent = TrackerList
- List.BackgroundColor3 = Color3.new(1, 1, 1)
- List.Position = UDim2.new(0.5, 0, 0, 0)
- List.Size = UDim2.new(0.02, 0, 0.02, 0)
- List.Font = Enum.Font.SourceSans
- List.TextColor3 = Color3.new(0, 0, 0)
- List.TextSize = 20
- List.TextWrapped = true
- List.TextXAlignment = Enum.TextXAlignment.Left
- List.TextYAlignment = Enum.TextYAlignment.Top
- local RunService = game:GetService("RunService")
- local ticks = 0
- local maxticks = 63
- local maxticksPer = 100 / maxticks
- RunService.Heartbeat:Connect(function()
- ticks = ticks + 1
- end)
- while true do
- wait(1)
- List.Text = string.format(math.floor(maxticksPer * ticks)) .. "%"
- ticks = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment