Having an Issue creating my own Mantling System

This is a support category for asking questions about how to get something done on the Roblox websites or how to do something on Roblox applications such as Roblox Studio.

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want to make it more optimized and more stable, no bug, etc

  2. What is the issue?
    https://gyazo.com/282b2f7c6fcdb2fa0a8a39311cddc3c9
    this is the issue that i’m having.

  3. What solutions have you tried so far?
    I can’t find a devforum post to it so idk what’s a better solution to it.

here’s the code that i use:

local BodyVelo = Instance.new("BodyVelocity")
BodyVelo.MaxForce = Vector3.new(1,1,1)*math.huge
BodyVelo.Velocity = (HumanoidRootPart.CFrame.UpVector * 15) + (HumanoidRootPart.CFrame.LookVector * 30)
BodyVelo.Parent = HumanoidRootPart
Debris:AddItem(BodyVelo, .25)
HumanoidRootPart.Anchored = false

First of all, “BodyVelocity” is deprecated, and secondly, you could use AlignPosition instead. Although, I don’t see an issue with the video you sent.

3 Likes

thank you for the respond :slight_smile: i never knew i could use that

2 Likes

and also btw do you have any tutorials to it? its my first time using it so or i will just looked it up on roblox docs?

2 Likes

You just pass a position into it and it will move the character to that position.

2 Likes

Additionally, I would recommend raycasting downwards from their target position to get the landing position, this way they don’t float and then fall down but they actually go onto the platform they are supposed to.

1 Like

thank you so much man, this will really helpful

1 Like

so hi again im back with a problem. Do you know why this doesn’t do anything?

local at0 = Instance.new("Attachment", HumanoidRootPart)
at0.Name = "MantleAttachment"
at0.CFrame = HumanoidRootPart.CFrame
							
local AP = Instance.new("AlignPosition")
AP.ForceRelativeTo = Enum.ActuatorRelativeTo.Attachment0
AP.Attachment0 = at0
AP.MaxForce = 10000
AP.MaxVelocity = 10000
AP.Position = Vector3.new(0, 100, 0)
AP.Responsiveness = 24
AP.ApplyAtCenterOfMass = true
AP.Parent = HumanoidRootPart
Debris:AddItem(AP, 1)

Because you are setting its position to its own position. You set the position of at0 to the HumanoidRootPart’s CFrame. So it won’t move anywhere.

1 Like

but i set it to Vector3.new(0, 100, 0)
right?

It might be moving the attachment instead, I haven’t used

Enum.ActuatorRelativeTo.Attachment0

But try to see if it’s actually moving something or not.

1 Like

yow thanks i figure it out now :slight_smile:

1 Like

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