I want to make a mechanic like slide hopping in the game krunker and i want to know how can i check the speed of a player.
1 Like
player.Character.Humanoid.WalkSpeed
1 Like
I didnt mean the walkspeed of the player i will base it from velocity so that wont work
You can check the humanoidRootPart.Velocity, all base parts have velocity.
3 Likes
Let me see if that will work. thanks
1 Like
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
if Humanoid.WalkSpeed < 16 then
print("WalkSpeed is smaller than 16")
end
end)
Also if you want velocity you can replace humanoid and WalkSpeed with humanoidrootpart and assemblylinearvelocity
(s)he said before, (s)he doesn’t want walkSpeed.
I was writing that time in mobile
1 Like
Thanks i tried printing the velocity value and it seems to work
1 Like