Advertisement
Eduardfabian21

FPS

Mar 14th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3. -- 3 time was edited :)
  4. -- Instances:
  5.  
  6. local FPSPingTopBar = Instance.new("ScreenGui")
  7. local TopbarContainer = Instance.new("Frame")
  8. local FPSAndPing = Instance.new("Frame")
  9. local FPS = Instance.new("ImageButton")
  10. local UICorner = Instance.new("UICorner")
  11. local TextLabel = Instance.new("TextLabel")
  12.  
  13. --Properties:
  14.  
  15. FPSPingTopBar.Name = "FPS/Ping TopBar"
  16. FPSPingTopBar.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17. FPSPingTopBar.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  18. FPSPingTopBar.ResetOnSpawn = false
  19.  
  20. TopbarContainer.Name = "TopbarContainer"
  21. TopbarContainer.Parent = FPSPingTopBar
  22. TopbarContainer.BackgroundTransparency = 1.000
  23. TopbarContainer.Size = UDim2.new(1, 0, 0, 36)
  24.  
  25. FPSAndPing.Name = "FPS And Ping"
  26. FPSAndPing.Parent = TopbarContainer
  27. FPSAndPing.BackgroundTransparency = 1.000
  28. FPSAndPing.Position = UDim2.new(0, 104, 0, 4)
  29. FPSAndPing.Size = UDim2.new(0, 80, 0, 32)
  30.  
  31. FPS.Name = "FPS"
  32. FPS.Parent = FPSAndPing
  33. FPS.Active = false
  34. FPS.BackgroundTransparency = 1.000
  35. FPS.BorderSizePixel = 0
  36. FPS.Position = UDim2.new(0.100000001, 0, -0.03125, 0)
  37. FPS.Size = UDim2.new(1.08749998, 0, 1, 0)
  38. FPS.ZIndex = 2
  39. FPS.Image = "http://www.roblox.com/asset/?id=5540166883"
  40. FPS.ImageColor3 = Color3.fromRGB(0, 0, 0)
  41. FPS.ImageTransparency = 0.500
  42. FPS.ScaleType = Enum.ScaleType.Crop
  43.  
  44. UICorner.CornerRadius = UDim.new(0.25, 0)
  45. UICorner.Parent = FPS
  46.  
  47. TextLabel.Parent = FPS
  48. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. TextLabel.BackgroundTransparency = 1.000
  50. TextLabel.Position = UDim2.new(0, 0, -0.15625, 0)
  51. TextLabel.Size = UDim2.new(0, 80, 0, 41)
  52. TextLabel.Font = Enum.Font.SourceSansBold
  53. TextLabel.Text = "60 FPS"
  54. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. TextLabel.TextScaled = true
  56. TextLabel.TextSize = 1.000
  57. TextLabel.TextWrapped = true
  58.  
  59. -- Scripts:
  60.  
  61. local function TYXEE_fake_script() -- TextLabel.FPSHandler
  62. local script = Instance.new('LocalScript', TextLabel)
  63.  
  64. local textLabel = script.Parent
  65. local Delay = false
  66. local Last = tick()
  67.  
  68. game:GetService("RunService").RenderStepped:Connect(function()
  69. local FramePerSec = math.floor(.5+(1/(tick() - Last )))
  70. if Delay == false then
  71. Delay = true
  72. textLabel.Text = FramePerSec.." FPS"
  73. wait(0.1)
  74. Delay = false
  75. end
  76. Last = tick()
  77. end)
  78. end
  79. coroutine.wrap(TYXEE_fake_script)()
  80. local function JRUZS_fake_script() -- TextLabel.Rainbower
  81. local script = Instance.new('LocalScript', TextLabel)
  82.  
  83. while wait() do
  84. script.Parent.TextColor3 = Color3.new(1,0,0)
  85. for i=1,15 do
  86. game:GetService("RunService").RenderStepped:wait()
  87. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g+(17/255),script.Parent.TextColor3.b)
  88. end
  89. for i=1,15 do
  90. game:GetService("RunService").RenderStepped:wait()
  91. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r-(17/255),script.Parent.TextColor3.g,script.Parent.TextColor3.b)
  92. end
  93. for i=1,15 do
  94. game:GetService("RunService").RenderStepped:wait()
  95. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g,script.Parent.TextColor3.b+(17/255))
  96. end
  97. for i=1,15 do
  98. game:GetService("RunService").RenderStepped:wait()
  99. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g-(17/255),script.Parent.TextColor3.b)
  100. end
  101. for i=1,15 do
  102. game:GetService("RunService").RenderStepped:wait()
  103. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r+(17/255),script.Parent.TextColor3.g,script.Parent.TextColor3.b)
  104. end
  105. for i=1,15 do
  106. game:GetService("RunService").RenderStepped:wait()
  107. script.Parent.TextColor3 = Color3.new(script.Parent.TextColor3.r,script.Parent.TextColor3.g,script.Parent.TextColor3.b-(17/255))
  108. end
  109. end
  110. end
  111. coroutine.wrap(JRUZS_fake_script)()
  112.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement