Universal Script 📌
450 Views
307 Executions

Universal Speedometer

Universal Script 📌
someguyonscriptblox
someguyonscriptblox10K executions
8 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

basically just a speedometer at the bottom of your screen that measures how fast you go in mph or kmh edit: i reworked the whole script

View Raw
-- Speedometer Script V3 (Fixed)

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

local player = Players.LocalPlayer
local character
local humanoidRootPart

local useMPH = false

local function setupCharacter(char)
	character = char
	humanoidRootPart = character:WaitForChild("HumanoidRootPart")
end

if player.Character then
	setupCharacter(player.Character)
end

player.CharacterAdded:Connect(setupCharacter)

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

local frame = Instance.new("Frame")
frame.Size = UDim2.fromOffset(170, 160)
frame.Position = UDim2.new(0.5, -85, 1, -190)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BorderSizePixel = 0
frame.Parent = screenGui

Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 16)

local speedLabel = Instance.new("TextLabel")
speedLabel.Size = UDim2.new(1, -10, 0.6, 0)
speedLabel.Position = UDim2.new(0, 5, 0.05, 0)
speedLabel.BackgroundTransparency = 1


Comments

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