F

Formix dashboard

Add a sprint system with a stamina bar — Shift to sprint, drain while running, regen when idle.

Formix2:47 PM

Done — server-authoritative sprint with a HUD stamina bar, wired through a RemoteEvent. Here’s the client input handler:

SprintClient.client.luau
Synced
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
 
local sprintEvent = ReplicatedStorage:WaitForChild("SprintEvent")
local SPRINT_KEY = Enum.KeyCode.LeftShift
 
UserInputService.InputBegan:Connect(function(input, processed)
if processed then return end
if input.KeyCode == SPRINT_KEY then
sprintEvent:FireServer(true)
end
end)
 
UserInputService.InputEnded:Connect(function(input)
if input.KeyCode == SPRINT_KEY then
sprintEvent:FireServer(false)
end
end)
  • SprintSystem.server.luauServerScriptService/Scriptsnew
  • SprintClient.client.luauStarterPlayer/StarterPlayerScriptsnew
  • StaminaBarStarterGui/HUDnew
Synced to Studio

Formix writes directly to BloxRunner — every change is versioned.