My Character is hovering above the ground slightly for some reason

So, while I was testing my game, for some reason the character is always slightly above the ground, so this makes it impossible to pick up tools on the ground. And this doesn’t happen once in a while. Every time I play my game it happens.

Here’s an image of what is happening:
https://ibb.co/qnwDRgV

3 Likes

Hi there!

Are you sure there’s no hidden/invisible parts? This could also be a problem due to a union, so if there’s any unions near that, i recommend checking that :slight_smile:

1 Like

No, I don’t think there are any invisible parts. And there are no unions.

1 Like

That’s really odd. Can you provide a link to the game perhaps?

1 Like

Sure.
https://www.roblox.com/games/5885213708/Untitled-Jojo-Game?refPageId=4012f310-eaf1-4f26-97c4-87d619112c25

1 Like

Seems like somethings wrong with the animation, it could be that disturbing it, or perhaps a hitbox of some sort. Fairly sure it’s the animation, not 100 percent certain why, maybe check for any flaws in it, that’s my best advice :+1:

1 Like

ok sure. I’ve checked, it’s not an animation problem. It’s something else.

Not too sure then, sorry about that. Hopefully you’ll get the solution shortly :+1: :slight_smile:

1 Like

Hello!
I believe I may understand why that is happening. There is a property on the Humanoid called HipHeight. Try turning that into your desired amount. I wish you good luck!

2 Likes

Ok, thanks, give me a second to try that.

It should fix your issue. I went in studio and messed around with it. I am pretty sure that causes the problem.

1 Like

So, what I take is that, I could make a script, that every single time a player is added, it’ll find the character, then the humanoid then change the hipheight correct?

You could try and create a script, sure. You can adjust your own desired HipHeight via the script and when players join your game, they are able to have the correct/your desired HipHeight. I am guessing you fixed your issue, if I am not mistaken.

1 Like

Ye, I did. Thanks a lot for helping me! :smile:

No problem, but remember to mark the answer that solves the problem as the solution, so other people won’t get confused and answer what has already been answered. Have a nice day!

1 Like

Sorry for bothering you again, but my script for changing the hip height is not working.
This is what I have at the moment

game:GetService("Players").PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local hum = char:WaitForChild("Humanoid")
		
		
		hum.HipHeight = math.abs(.15)*-1
	
end)

It is alright, but I am pretty certain you have to make another post, since the categories of this post, don’t really match the content it has into it. How I would write the code is the following:

Game:GetService(“Players”).PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild(“Humanoid”)

Humanoid.HipHeight = 0
end)
end)
0 is usually the correct amount/desired amount by a lot of players. If you face any issues, you can message me in DMs rather than message me in the topic. We shouldn’t really go off-topic.

1 Like

Was your issue fixed? Let me know if it has been fixed.

Ok, I will. Give me one second to try this.