Universal Script 📌
37.0k Views
288 Executions

Speedometer kmph and mph

Universal Script 📌
bhullarsukhman244
bhullarsukhman244First script
2 years 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

This is an speedometer made by me it supports kmph/mph

Updates

  1. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

-- UI Setup
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
local speedLabel = Instance.new("TextLabel", screenGui)
local uiGradient = Instance.new("UIGradient", speedLabel)
local uiCorner = Instance.new("UICorner", speedLabel)
local uiStroke = Instance.new("UIStroke", speedLabel)

speedLabel.Size = UDim2.new(0, 300, 0, 70)
speedLabel.Position = UDim2.new(0.5, -150, 0, 50)
speedLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
speedLabel.TextColor3 = Color3.new(1, 1, 1)
speedLabel.Font = Enum.Font.GothamBold
speedLabel.TextSize = 30
speedLabel.Text = "Speed: 0 km/h | 0 mph"
speedLabel.Active = true
speedLabel.Draggable = true

-- UI Enhancements
uiGradient.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 255, 150)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 180, 255))
}
uiGradient.Rotation = 45

uiCorner.CornerRadius = UDim.new(0, 15)

uiStroke.Thickness = 2
uiStroke.Color = Color3.fromRGB(255, 255, 255)

-- Speed Calculation with Faster Decay
local lastPosition = character.HumanoidRootPart.Position
local speedHistory = {}
local historySize = 5 -- Reduced history size for quicker response

local function averageSpeed()
    local total = 0
    for _, speed in ipairs(speedHistory) do


Comments

3
Log in to join the conversation. Login
zins's profile picture
zins2 years ago(edited)

@vxsty LMFAO FR

1
vxsty's profile picture
vxstyVerified
Verified Badge
Verified User
Hall of Fame2 years ago(edited)

"made by me" are you sure its not chatgpt

1
Fe_things's profile picture
Fe_things2 years ago(edited)

what is this script for?

1

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.7k
Bumped 4 hours ago
Script hub
49.8k
12.4k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
737
221
Approved 16 hours ago
Universal Script 📌
642
2.7k
Approved 16 hours ago