Universal Script 📌
42 Views
429 Executions

SPS Speedometer

Universal Script 📌
literallytim
literallytimFirst script
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

puts a speedometer ui on the bottom right of screen

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "Speedometer"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 80)
frame.Position = UDim2.new(1, -210, 1, -90)
frame.AnchorPoint = Vector2.new(1, 1)
frame.BackgroundColor3 = Color3.fromRGB(10, 10, 15)
frame.BackgroundTransparency = 0.3
frame.BorderSizePixel = 0
frame.Parent = screenGui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = frame

local stroke = Instance.new("UIStroke")
stroke.Color = Color3.fromRGB(0, 255, 150)
stroke.Thickness = 1.5
stroke.Transparency = 0.4
stroke.Parent = frame

local currentLabel = Instance.new("TextLabel")
currentLabel.Size = UDim2.new(1, 0, 0.6, 0)
currentLabel.BackgroundTransparency = 1
currentLabel.TextColor3 = Color3.fromRGB(0, 255, 150)
currentLabel.TextScaled = true
currentLabel.Font = Enum.Font.GothamBold
currentLabel.Text = "0 SPS"
currentLabel.Parent = frame

local peakLabel = Instance.new("TextLabel")
peakLabel.Size = UDim2.new(1, 0, 0.4, 0)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!