Advertisement
DarionBoy

PIng/FPS roblox

Jun 13th, 2018
90,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. --Made gy N3xul
  2. local runDummyScript = function(f,scri)
  3. local oldenv = getfenv(f)
  4. local newenv = setmetatable({}, {
  5. __index = function(_, k)
  6. if k:lower() == 'script' then
  7. return scri
  8. else
  9. return oldenv[k]
  10. end
  11. end
  12. })
  13. setfenv(f, newenv)
  14. ypcall(function() f() end)
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. mas.Name = "CompiledModel"
  19. o1 = Instance.new("ScreenGui")
  20. o2 = Instance.new("Frame")
  21. o3 = Instance.new("TextButton")
  22. o4 = Instance.new("TextButton")
  23. o5 = Instance.new("LocalScript")
  24. o6 = Instance.new("LocalScript")
  25. o1.Name = "RateGui"
  26. o1.Parent = mas
  27. o2.Parent = o1
  28. o2.Position = UDim2.new(0.89999997615814,0,0.92500001192093,0)
  29. o2.Size = UDim2.new(0.10000000149012,0,0.075000002980232,0)
  30. o2.Position = UDim2.new(0.89999997615814,0,0.92500001192093,0)
  31. o2.BackgroundColor3 = Color3.new(0, 0, 0)
  32. o2.BackgroundTransparency = 1
  33. o3.Name = "PingLabel"
  34. o3.Parent = o2
  35. o3.Size = UDim2.new(1,0,0.5,0)
  36. o3.Text = "Ping: "
  37. o3.BackgroundColor3 = Color3.new(0, 0, 0)
  38. o3.BackgroundTransparency = 1
  39. o3.BorderSizePixel = 0
  40. o3.ZIndex = 2
  41. o3.Font = Enum.Font.SourceSans
  42. o3.FontSize = Enum.FontSize.Size14
  43. o3.TextColor3 = Color3.new(1, 1, 1)
  44. o4.Name = "FPSLabel"
  45. o4.Parent = o2
  46. o4.Position = UDim2.new(0,0,0.5,0)
  47. o4.Size = UDim2.new(1,0,0.5,0)
  48. o4.Text = "FPS: "
  49. o4.Position = UDim2.new(0,0,0.5,0)
  50. o4.BackgroundColor3 = Color3.new(0, 0, 0)
  51. o4.BackgroundTransparency = 1
  52. o4.BorderSizePixel = 0
  53. o4.ZIndex = 2
  54. o4.Font = Enum.Font.SourceSans
  55. o4.FontSize = Enum.FontSize.Size14
  56. o4.TextColor3 = Color3.new(1, 1, 1)
  57. o5.Name = "PingScript"
  58. o5.Parent = o2
  59. table.insert(cors,coroutine.create(function()
  60. wait()
  61. runDummyScript(function()
  62. local Frame = script.Parent
  63. local PingLabel = Frame:WaitForChild('PingLabel')
  64. while wait(1) do
  65. local Ping = 300-((1/wait())*10)
  66. if Ping < 1 then
  67. Ping = 1
  68. end
  69. PingLabel.Text = 'Ping: '..math.floor(Ping)
  70. wait(9)
  71. end
  72.  
  73. -- Made by 4ef.
  74. end,o5)
  75. end))
  76. o6.Name = "FPSScript"
  77. o6.Parent = o2
  78. table.insert(cors,coroutine.create(function()
  79. wait()
  80. runDummyScript(function()
  81. local Frame = script.Parent
  82. local FPSLabel = Frame:WaitForChild('FPSLabel')
  83. while wait(1) do
  84. local FPS = game:GetService("Workspace"):GetRealPhysicsFPS()
  85. FPSLabel.Text = 'FPS: '..math.floor(FPS)
  86. end
  87.  
  88. -- Made by 4ef.
  89. end,o6)
  90. end))
  91. mas.Parent = workspace
  92. mas:MakeJoints()
  93. local mas1 = mas:GetChildren()
  94. for i=1,#mas1 do
  95. mas1[i].Parent = game:GetService("Players").LocalPlayer.PlayerGui
  96. ypcall(function() mas1[i]:MakeJoints() end)
  97. end
  98. mas:Destroy()
  99. for i=1,#cors do
  100. coroutine.resume(cors[i])
  101. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement