So I’m attempting to make this ability where the player ascends to a certain point and levitates, still being able to move but is ACTUALLY at that location, and what I noticed is when I used HipHeight, its just height so it ended up still making the player able to fall, are there any alternatives as to how I can do this?
You could use a BodyPosition to move the player into place, and just make sure it can’t produce force on the X and Z axises
If anyone needs a visual demonstration of the issue, here
Alright, Ill try that out thanks!
Wait, will the fact that its deprecated cause any issues?
you could play around with linear velocity too
It should work fine, but if it breaks in the future, you’ll have to switch to a different solution.
use hipheight with antigrav?
nice terraria font
AlignPosition | Documentation - Roblox Creator Hub should be the same as bodyposition
If the OP doesn’t want the player to snap up when walking onto a higher platform, this won’t work as intended.
Remember: There’s a Simple Spell that is known as the Levitation Charm, and its Incantation is None other than “Wingardium Leviosa”.
I’ll try this due to how BodyPosition didnt work…
The two times I’ve tried it with the following scripts seemed to output the same error…
If BodyPosition didn’t work, its possible that you:
- Didn’t set P high enough
- Set D to something large
- Incorrectly set the Position
- Didn’t set MaxForce.Y to something high enough
well BP just brought me to 0,0,0 instead
Can you show line 280 or at least the line numbers?
You have to set the position or else it defaults to 0,0,0 (Only the Y position is important as long as MaxForce’s X and Z are 0)
Updated the script and it works for the most part, only thing it doesnt let me do is move around with X and Z, and when I try to set the maxforce it just returns and error…
Mind showing the error it throws?