Universal Script 📌
2.4k Views
105 Executions

Studs per second GUI

Universal Script 📌
ScriptTester
ScriptTester10K executions
1 year 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

Makes a gui that tells you how many studs per second you're going, it's small so it wont bug or annoy you

Updates

  1. Script edited: Update script

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

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")


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

local label = Instance.new("TextLabel")
label.Size = UDim2.new(0, 200, 0, 40)
label.Position = UDim2.new(0, 20, 0, 20)
label.BackgroundTransparency = 0.3
label.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.Font = Enum.Font.SourceSansBold
label.TextSize = 22
label.Text = "Speed: 0 SPS"
label.Parent = spsGui


local lastPos = hrp.Position
local lastTime = tick()

RunService.RenderStepped:Connect(function()
	if not hrp or not hrp.Parent then
		character = player.Character or player.CharacterAdded:Wait()
		hrp = character:WaitForChild("HumanoidRootPart")
		lastPos = hrp.Position
		lastTime = tick()
		return
	end

	local currentTime = tick()
	local dt = currentTime - lastTime
	local currentPos = hrp.Position


Comments

2
Log in to join the conversation. Login
Accountdeleted294948's profile picture
Accountdeleted2949481 year ago

method very oldfashioned sigma

1
notenoughjack's profile picture
notenoughjack1 year ago

ai

1

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.5k
Bumped 4 hours ago
Script hub
49.8k
12.3k
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 📌
724
209
Approved 15 hours ago
Universal Script 📌
628
2.5k
Approved 16 hours ago
Universal Script 📌
589
589
Approved 16 hours ago