GGametypePlayer

INFO

Dec 15th, 2022 (edited)
1,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.31 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ui = Instance.new("ScreenGui")
  7. local info = Instance.new("TextLabel")
  8.  
  9. --Properties:
  10.  
  11. ui.Name = "ui"
  12. ui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. info.Name = "info"
  16. info.Parent = ui
  17. info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  18. info.BackgroundTransparency = 1.000
  19. info.Position = UDim2.new(0, 0, 0.981707335, 0)
  20. info.Size = UDim2.new(0.122025624, 0, 0.0182926822, 0)
  21. info.Font = Enum.Font.GothamBold
  22. info.Text = "FPS:21 PING:21"
  23. info.TextColor3 = Color3.fromRGB(0, 0, 0)
  24. info.TextScaled = true
  25. info.TextSize = 14.000
  26. info.TextWrapped = true
  27. info.TextXAlignment = Enum.TextXAlignment.Left
  28. info.TextYAlignment = Enum.TextYAlignment.Bottom
  29.  
  30. -- Scripts:
  31.  
  32. local function GASMU_fake_script() -- ui.LocalScript
  33.     local script = Instance.new('LocalScript', ui)
  34.  
  35.     local RS = game:GetService("RunService")
  36.     local Players = game:GetService("Players")
  37.     local LocalPlayer = Players.LocalPlayer
  38.    
  39.     local CF = 0
  40.    
  41.    
  42.     local function OnRenderStepped()
  43.         CF = CF + 1
  44.     end
  45.    
  46.     RS.RenderStepped:Connect(OnRenderStepped)
  47.    
  48.     while true do
  49.         task.wait()
  50.         script.Parent.info.Text = "FPS:"..CF.." PING:"..LocalPlayer:GetNetworkPing()
  51.         CF = 0
  52.     end
  53. end
  54. coroutine.wrap(GASMU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment