Player falling into the floor upon changing the hip height

After some research, my question hasn’t been answered. I’m currently creating a Heel GUI where heels are welded to the player which works perfectly. I’ve recently implemented a remove button. When testing, despite the original HipHeight value being 2, it goes down to 0, the same with the OriginalJumpHeight. I’ll send my script below. Any help is appreciated. I’m sure it’s a silly mistake, I’m prone to them

	elseif Event == "RemoveHeels" then
		if Player.Character and Player.Character:FindFirstChild("LeftHeel") == nil then
			_G.MakeNotification(Player,5,"You do not have heels on") return
		end
		print(Player.Data.OriginalHipHeight.Value)
		local LeftHeel = Player.Character:WaitForChild("LeftHeel")
		local RightHeel = Player.Character:WaitForChild("RightHeel")

		if LeftHeel and RightHeel then
			LeftHeel:Destroy()
			RightHeel:Destroy()
		end

		Player.Character.Humanoid.HipHeight = Player.Data.OriginalHipHeight
		Player.Character.Humanoid.JumpHeight = Player.Data.OriginalJumpHeight
	end
2 Likes

Would it need the value?
Player.Character.Humanoid.HipHeight.Value

2 Likes

Yeah it’s a value under the player because I use it in another part of the script

2 Likes

No I’m sorry it didn’t all copy

Player.Character.Humanoid.HipHeight = Player.Data.OriginalHipHeight.Value

2 Likes

oh youve got to be kidding me, that was the problem. I made a whole topic about it

1 Like

I literally said in the beginning it’s probably a stupid mistake

1 Like

And you had it correct in the print :grin:

1 Like

I know right. i didnt even get an output which I wouldve that you would

1 Like

But you don’t set the Values in your last 2 lines.

		 Player.Character.Humanoid.HipHeight = Player.Data.OriginalHipHeight.Value
		 Player.Character.Humanoid.JumpHeight = Player.Data.OriginalJumpHeight.Value

Edit: I just saw you posted this

1 Like

stop, im actually crying. im so stupid

1 Like

Making errors isn’t stupid, it’s a learning experience. :smiley:
If you don’t learn from your mistakes then you’ve got an issue.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.