I’m testing stuff and I want to be able to print the velocity of another humanoid(other than the player) in order to figure out how fast it’s going.
My issue is that whenever I test run the game, the velocity of the nonplayer humanoid would be constantly changing despite there being nothing touching it and no visible movement from the humanoid. This makes it a lot harder to read the velocity and in turn, makes my job of finding the issue a lot more annoying and tedious.
example:
What I’ve tried so far:
I’ve removed elasticity to make sure it doesn’t bounce and I’ve also given network ownership to the player(who reads the velocity values). There are no animations
here’s my localscript:
-- VARIABLES AND SERVICES
local RunService = game:GetService("RunService")
local wfc = game.WaitForChild
-- testhumanoid
local testc = wfc(workspace,"testh")
local testh = wfc(testc, "HumanoidRootPart")
-- print testh velocity
RunService.Stepped:Connect(function()
print(testh.AssemblyLinearVelocity)
end)
placefile
Baseplate.rbxl (155.7 KB)
Thanks!