How can i make velocity script?

This velocity gui is shows the players velocity.
And ı really need the place that ı have to put this script in explorer.

You could just find the magnitude of the humanoidrootpart’s velocity.

game.Workspace:FindFirstChild(“PlayerName”).HumanoidRootPart.Velocity.Magnitude

this will give you the player’s velocity. You can make the gui check the players velocity when changed and make it show on the UI

Inside the TextLabel:

if not game:IsLoaded() then
      game.Loaded:Wait()
end
local Label = script.Parent
local Character = game:GetService("Players").LocalPlayer.Character
Label.Text = tostring(Character:WaitForChild("HumanoidRootPart").Velocity)
Character.HumanoidRootPart:GetPropertyChangedSignal("Velocity"):Connect(function()
      Label.Text = tostring(Character:WaitForChild("HumanoidRootPart").Velocity)
end)