Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:service'Players'.LocalPlayer
- local fps = Instance.new('ScreenGui',player:waitForChild('PlayerGui'))
- local text = Instance.new('TextLabel',fps)
- text.BackgroundTransparency = 1
- text.Position = UDim2.new(1,0,1,0)
- text.Size = UDim2.new(0,-1,0,-16)
- text.Font = 'Code'
- text.FontSize = 'Size14'
- text.TextColor3 = Color3.new(0,1,0)
- text.TextXAlignment = 'Right'
- local rs = game:service'RunService'.RenderStepped
- while wait() do wait() wait()
- step = rs:wait()
- text.Text = 'FPS: '..tostring(math.floor((1/step)+.5))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement