forked from ipfym/personalscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWinstreakTracker.lua
More file actions
36 lines (34 loc) · 1.27 KB
/
WinstreakTracker.lua
File metadata and controls
36 lines (34 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
wait(2)
if shared.VapeExecuted then
spawn(function()
local players = game:GetService("Players")
local lplr = players.LocalPlayer
local winstreaks = Instance.new("TextLabel")
winstreaks.TextSize = 17
winstreaks.Name = "WinStreakTracker"
winstreaks.TextXAlignment = Enum.TextXAlignment.Left
winstreaks.TextYAlignment = Enum.TextYAlignment.Bottom
winstreaks.TextColor3 = Color3.new(1, 1, 1)
winstreaks.BackgroundTransparency = 1
winstreaks.Text = " "
winstreaks.Size = UDim2.new(1, 0, 1, 0)
winstreaks.Active = false
winstreaks.Font = Enum.Font.SourceSansBold
winstreaks.TextStrokeTransparency = 0
winstreaks.Parent = game.CoreGui.RobloxGui
local function update()
local str = "-- WINSTREAK TRACKER --"
for i,v in pairs(players:GetChildren()) do
if v:GetAttribute("WinStreak") and v:GetAttribute("WinStreak") > 0 and v ~= lplr then
str = str.."\n"..(v.DisplayName or v.Name).." : "..v:GetAttribute("WinStreak")
end
end
winstreaks.Text = str
end
update()
repeat
wait(3)
update()
until true == false
end)
end