Advertisement
CAT_SUS

stats.lua

Jul 21st, 2023
6,799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.78 KB | None | 0 0
  1. local UserHwid = game:GetService("RbxAnalyticsService"):GetClientId()
  2. local TimeToJoin = workspace:GetServerTimeNow()
  3. local LocalPlayer = game.Players.LocalPlayer
  4. _G.ststsaaaToggle = Enum.KeyCode.F7
  5.  
  6. local function CreateUI<STRING...>()
  7.     local ScreenGui = Instance.new("ScreenGui")
  8.     local Frame = Instance.new("Frame")
  9.     local UserName = Instance.new("TextLabel")
  10.     local UIListLayout = Instance.new("UIListLayout")
  11.     local Hwid = Instance.new("TextLabel")
  12.     local JoinTime = Instance.new("TextLabel")
  13.     local DateTime_Text = Instance.new("TextLabel")
  14.     local UserStats = Instance.new("TextLabel")
  15.  
  16.     ScreenGui.Parent = game:FindFirstChild('CoreGui') or game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18.     Frame.Parent = ScreenGui
  19.     Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  20.     Frame.BackgroundTransparency = 1.000
  21.     Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  22.     Frame.BorderSizePixel = 0
  23.     Frame.Position = UDim2.new(0.799753308, 0, 0.799932063, 0)
  24.     Frame.Size = UDim2.new(0.200000003, 0, 0.200000003, 0)
  25.  
  26.     UserName.Name = "UserName"
  27.     UserName.Parent = Frame
  28.     UserName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  29.     UserName.BackgroundTransparency = 1.000
  30.     UserName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  31.     UserName.BorderSizePixel = 0
  32.     UserName.Size = UDim2.new(1, 0, 0.100000001, 0)
  33.     UserName.Font = Enum.Font.ArialBold
  34.     UserName.Text = "User: Name"
  35.     UserName.TextColor3 = Color3.fromRGB(255, 255, 255)
  36.     UserName.TextScaled = true
  37.     UserName.TextSize = 14.000
  38.     UserName.TextWrapped = true
  39.     UserName.TextXAlignment = Enum.TextXAlignment.Left
  40.     UserName.RichText = true
  41.  
  42.     UIListLayout.Parent = Frame
  43.     UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
  44.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  45.     UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  46.     UIListLayout.Padding = UDim.new(0, 3)
  47.  
  48.     Hwid.Name = "Hwid"
  49.     Hwid.Parent = Frame
  50.     Hwid.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51.     Hwid.BackgroundTransparency = 1.000
  52.     Hwid.BorderColor3 = Color3.fromRGB(0, 0, 0)
  53.     Hwid.BorderSizePixel = 0
  54.     Hwid.Size = UDim2.new(1, 0, 0.100000001, 0)
  55.     Hwid.Font = Enum.Font.ArialBold
  56.     Hwid.Text = "HardwareId-(Roblox):"
  57.     Hwid.TextColor3 = Color3.fromRGB(255, 255, 255)
  58.     Hwid.TextScaled = true
  59.     Hwid.TextSize = 14.000
  60.     Hwid.TextWrapped = true
  61.     Hwid.TextXAlignment = Enum.TextXAlignment.Left
  62.     Hwid.RichText = true
  63.  
  64.     JoinTime.Name = "JoinTime"
  65.     JoinTime.Parent = Frame
  66.     JoinTime.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  67.     JoinTime.BackgroundTransparency = 1.000
  68.     JoinTime.BorderColor3 = Color3.fromRGB(0, 0, 0)
  69.     JoinTime.BorderSizePixel = 0
  70.     JoinTime.Size = UDim2.new(1, 0, 0.100000001, 0)
  71.     JoinTime.Font = Enum.Font.ArialBold
  72.     JoinTime.Text = "Join-Time: 0"
  73.     JoinTime.TextColor3 = Color3.fromRGB(255, 255, 255)
  74.     JoinTime.TextScaled = true
  75.     JoinTime.TextSize = 14.000
  76.     JoinTime.TextWrapped = true
  77.     JoinTime.TextXAlignment = Enum.TextXAlignment.Left
  78.     JoinTime.RichText = true
  79.  
  80.     DateTime_Text.Name = "DateTime_Text"
  81.     DateTime_Text.Parent = Frame
  82.     DateTime_Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83.     DateTime_Text.BackgroundTransparency = 1.000
  84.     DateTime_Text.BorderColor3 = Color3.fromRGB(0, 0, 0)
  85.     DateTime_Text.BorderSizePixel = 0
  86.     DateTime_Text.Size = UDim2.new(1, 0, 0.100000001, 0)
  87.     DateTime_Text.Font = Enum.Font.ArialBold
  88.     DateTime_Text.Text = "Date: 0"
  89.     DateTime_Text.TextColor3 = Color3.fromRGB(255, 255, 255)
  90.     DateTime_Text.TextScaled = true
  91.     DateTime_Text.TextSize = 14.000
  92.     DateTime_Text.TextWrapped = true
  93.     DateTime_Text.TextXAlignment = Enum.TextXAlignment.Left
  94.     DateTime_Text.RichText = true
  95.  
  96.     UserStats.Name = "UserStats"
  97.     UserStats.Parent = Frame
  98.     UserStats.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  99.     UserStats.BackgroundTransparency = 1.000
  100.     UserStats.BorderColor3 = Color3.fromRGB(0, 0, 0)
  101.     UserStats.BorderSizePixel = 0
  102.     UserStats.Size = UDim2.new(1, 0, 0.100000001, 0)
  103.     UserStats.Font = Enum.Font.ArialBold
  104.     UserStats.Text = "UserStats: Safe"
  105.     UserStats.TextColor3 = Color3.fromRGB(255, 255, 255)
  106.     UserStats.TextScaled = true
  107.     UserStats.TextSize = 14.000
  108.     UserStats.TextWrapped = true
  109.     UserStats.TextXAlignment = Enum.TextXAlignment.Left
  110.     UserStats.RichText = true
  111.    
  112.     return UserName,Hwid,JoinTime,DateTime_Text,UserStats,ScreenGui
  113. end
  114.  
  115. local function NewRichText<RICH...>(Target, color):(string?)
  116.     local c1 = math.floor(color.R * 255)
  117.     local c2 = math.floor(color.G * 255)
  118.     local c3 = math.floor(color.B * 255)
  119.     local main = tostring(c1) .. "," .. tostring(c2) .. "," .. tostring(c3)
  120.     local formattedText = '<font color="rgb(' .. main .. ')">' .. tostring(Target) .. '</font>'
  121.     return formattedText
  122. end
  123.  
  124. local UserName,Hwid,JoinTime,DateTime_Text,UserStats,ScreenGui = CreateUI()
  125.  
  126. Hwid.Text = "HardwareId-(Fake): "..tostring(NewRichText(tostring(UserHwid):lower(),Color3.fromRGB(255, 0, 4)))
  127.  
  128. local StatsUser = "Safe"
  129. local statscolor = Color3.fromRGB(26, 255, 0)
  130.  
  131. if LocalPlayer.DisplayName == LocalPlayer.Name then
  132.     UserName.Text = "User: "..tostring(NewRichText(LocalPlayer.Name,Color3.fromRGB(34, 255, 0)))
  133. else
  134.     UserName.Text = "User: "..tostring(NewRichText(LocalPlayer.Name,Color3.fromRGB(34, 255, 0)))..tostring(" | ")..tostring(NewRichText(LocalPlayer.DisplayName,Color3.fromRGB(255, 234, 0)))
  135. end
  136.  
  137. local startTime = os.clock()
  138. local totalSeconds = workspace:GetServerTimeNow()
  139.  
  140. local date = os.date("*t", totalSeconds)
  141.  
  142. local year = date.year
  143. local month = date.month
  144. local day = date.day
  145. local hour = date.hour
  146. local minute = date.min
  147. local second = date.sec
  148.  
  149. local join = string.format("%d-%02d-%02d | %02d:%02d:%02d", year, month, day, hour, minute, second)
  150.  
  151. JoinTime.Text = "Join-Time: "..tostring(join)
  152.  
  153. local function msg_Check(msg : string)
  154.     msg = msg:lower()
  155.     if msg:find(LocalPlayer.Name:lower()) or msg:find(LocalPlayer.DisplayName:lower()) then
  156.         if msg:find('report') or msg:find('hack') or msg:find('exploit') then
  157.             local main = (msg:find('report') and "Report") or (msg:find('hack') and "Have the user send you a message that you are a hack.") or (msg:find('exploit') and "Users see you are taking exploit.")
  158.             StatsUser = "Risk | "..tostring(main)
  159.             statscolor = Color3.fromRGB(255, 0, 4)
  160.         end
  161.     end
  162. end
  163.  
  164. coroutine.wrap(function()
  165.     while true do wait()
  166.         pcall(function()
  167.             local endTime = os.clock()
  168.             local executionTime = endTime - startTime
  169.  
  170.             UserStats.Text = "UserStats: "..tostring(NewRichText(StatsUser,statscolor))
  171.            
  172.             local target = tostring(math.ceil(executionTime))
  173.             DateTime_Text.Text = "Server-Time: "..tostring(NewRichText(target,Color3.fromRGB(255, 238, 0)))
  174.         end)
  175.     end
  176. end)()
  177.  
  178.  
  179. for i,v in ipairs(game:GetService('Players'):GetPlayers()) do
  180.     v.Chatted:Connect(function(only)
  181.         msg_Check(only)
  182.     end)
  183. end
  184.  
  185. game.Players.PlayerAdded:Connect(function(v)
  186.     v.Chatted:Connect(function(only)
  187.         msg_Check(only)
  188.     end)
  189. end)
  190.  
  191. return ScreenGui;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement