#How to get position of feet?

1 messages · Page 1 of 1 (latest)

spark oracle
#

Hello, how do i consistently get the position of the player's feet?

I just want the y position. I tried doing this:

local playerRoot = player.Character.HumanoidRootPart
local spawnVector = Vector3.new(playerRoot.Position.x, playerRoot.Position.y - playerRoot.Size / 2, playerRoot.Position.z)
```but it doesn't work, the position is up in the air? What does work is if i subtract playerRoot.Size * 2, but why does that work? I saw the player's default height is 2, is that why? How do I get the feet position for any size then?
raw arrow
#

R6 or R15?

patent gorgeBOT
#

studio** You are now Level 2! **studio

neon sinew
#

but

#

basically

spark oracle
#

what? why would you assume that?

neon sinew
#

cause you would understand why its not the feet

spark oracle
#

the player's root is presumably the center of their body. Their size should be from the bottom to the top. So taking their root y and subtracting half their size would give the feet.

#

thats exactly how it would work in unity

neon sinew
#

no the human root player is not the whole player

#

you can look in the editor

#

run the game

#

and look at ur character

#

and find humanoidrootpart

spark oracle
#

well i already got it, i also subtract the hip height and it works

neon sinew
#

its only size 1

covert rampart
#

there's an attachment at the feet i think

#

even if there isnt you can just add it

#

lowkey i forgot but there's no way roblox dont have that right 🥀