ExClow3
(Okigop)
June 11, 2023, 12:11am
#1
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:
What do you want to achieve?
I want to make it more optimized and more stable, no bug, etc
What is the issue?
https://gyazo.com/282b2f7c6fcdb2fa0a8a39311cddc3c9
this is the issue that i’m having.
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
ExClow3
(Okigop)
June 11, 2023, 12:22am
#3
thank you for the respond i never knew i could use that
2 Likes
ExClow3
(Okigop)
June 11, 2023, 12:24am
#4
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
ExClow3
(Okigop)
June 11, 2023, 12:27am
#7
thank you so much man, this will really helpful
1 Like
ExClow3
(Okigop)
June 11, 2023, 12:47am
#8
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
ExClow3
(Okigop)
June 11, 2023, 6:15am
#10
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
ExClow3
(Okigop)
June 12, 2023, 5:10am
#12
snowingwings220:
tiveTo
yow thanks i figure it out now
1 Like
system
(system)
Closed
June 26, 2023, 5:11am
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.