Universal Script 📌
2.3k Views
86 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

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
Universal Script 📌
6.0k
17.8k
Bumped 1 hour ago
Key System
Universal Script 📌
529.0k
336.7k
Bumped 2 hours ago
Script hub
2.5k
2.2k
Bumped 3 hours ago
Key System
Universal Script 📌
326
29
Approved 4 hours ago
Script hub
2.8M
661.6k
Bumped 5 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
380
28
Approved 6 hours ago