Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BillboardGui0 = Instance.new("BillboardGui", owner.Character.Head)
- TextLabel2 = Instance.new("TextLabel", BillboardGui0)
- BillboardGui0.Size = UDim2.new(0, 200, 0, 50)
- BillboardGui0.Active = true
- BillboardGui0.ClipsDescendants = true
- BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui0.AlwaysOnTop = true
- BillboardGui0.MaxDistance = 42000000
- BillboardGui0.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel2.Size = UDim2.new(0, 200, 0, 50)
- TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BackgroundTransparency = 1
- TextLabel2.BorderColor = BrickColor.new("Really black")
- TextLabel2.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel2.BorderSizePixel = 0
- TextLabel2.Font = Enum.Font.SourceSansLight
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "0"
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextStrokeTransparency = 0
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- RemoteEvent = Instance.new("RemoteEvent", owner.PlayerGui)
- local RunService = game:GetService("RunService")
- RemoteEvent:FireClient(owner, TextLabel2)
- RemoteEvent.OnServerEvent:Connect(function(p, text)
- if text >= 50 then
- TextLabel2.TextColor3 = Color3.fromRGB(0, 255, 0)
- end
- if text < 50 then
- TextLabel2.TextColor3 = Color3.fromRGB(255, 173, 51)
- end
- if text < 30 then
- TextLabel2.TextColor3 = Color3.fromRGB(255, 0, 0)
- end
- if text > 65 then
- TextLabel2.TextColor3 = Color3.fromRGB(46, 145, 255)
- end
- TextLabel2.Text = text .." FPS"
- end)
- NLS([[
- local remt = script.Parent.RemoteEvent
- local RunService = game:GetService("RunService")
- remt.OnClientEvent:Connect(function(fps)
- RunService.RenderStepped:Connect(function()
- fps = math.floor(1 / RunService.RenderStepped:Wait())
- remt:FireServer(fps)
- end)
- end)]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement