Advertisement
DARKMODZ

fps script

Apr 21st, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. repeat wait() until game:IsLoaded() setfpscap(120) wait(1)
  2. game.Lighting.GlobalShadows = false
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Fps = Instance.new("TextLabel")
  5. local Ping = Instance.new("TextLabel")
  6.  
  7. ScreenGui.Parent = game.CoreGui
  8. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.  
  10. Fps.Name = "Fps"
  11. Fps.Parent = ScreenGui
  12. Fps.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  13. Fps.BackgroundTransparency = 1.000
  14. Fps.Position = UDim2.new(0.786138654, 0, 0, 0)
  15. Fps.Size = UDim2.new(0, 125, 0, 25)
  16. Fps.Font = Enum.Font.SourceSans
  17. Fps.TextColor3 = Color3.fromRGB(255, 255, 255)
  18. Fps.TextScaled = true
  19. Fps.TextSize = 14.000
  20. Fps.TextWrapped = true
  21.  
  22. local script = Instance.new('LocalScript', Fps)
  23. local RunService = game:GetService("RunService")
  24. RunService.RenderStepped:Connect(function(frame)
  25. script.Parent.Text = ("FPS: "..math.round(1/frame))
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement