#Weird Linear Velocity behavior
1 messages · Page 1 of 1 (latest)
i think its because the force is applied towards the humanoid root part's look vector, which is not facing forward because of the animation
i might be wrong tho idk
The code you showed don't seem to have any issue, I tried it and everything was fine
Maybe it is because of your sword not being Massless
If you could show us other parts of the code that might cause this issue, someone may figure it out.
That's great bro, no straight movements is realistic due to the sword's mass
this is the whole module for this weapon. The thing i forgot to mention is this only happen after i use the 3th skill air variable
i think this bug is also caused by skill 2 ground variable but im not really sure, there is little to no different
all part of the sword is massless
nvm all of them cause this problem, is just not that bad as the 3th skill air variant ;/
So it is the aerial attack that you show at around 00:09 that makes the velocity acts like this?
When you look at the HumanoidRootPart's Rotation and it's Motor6D, everything looks ok?
I don't see something wrong with the LinearVelocities
let me check rq
I don't think it matters but why are you parenting the velocities to an Attachment rather than the Part itself
I am curious
dont we need to parent linear velocity to an attachment?
im not familiar with velocity
I have not used LinearVelocity that much but I think it works with Parts
Atleast BodyVelocity worked that way
If you want to have a better look, select the HumanoidRootPart and run this inside your Command bar:
local function AddIndicator(Parent: BasePart)
local Box = Instance.new("SelectionBox", Parent)
Box.Adornee = Parent
Box.LineThickness = 0.05
local Cone = Instance.new("ConeHandleAdornment", Parent)
Cone.Adornee = Parent
Cone.CFrame = CFrame.new(Vector3.new(0, 0, -1.5))
end
AddIndicator(game.Selection:Get()[1])
It doesn't look like your RootPart gets a unwanted Offset
🤷
Maybe try not to use Attachments
idek what affected the hrp rotation 😭
Linear Velocity require an attachment
Oh
but i dont think thats the problem
the attachment is always in the center of the hrp
LMAOOO
im going insane
now
Your sword is Massless?
i dont even have to use any skill
Ok
yeah
Try to add att.WorldPosition = hrp.AssemblyCenterOfMass, maybe...
If it is not fixed, I have another idea
what idea do you have?
Something like this:
already tried that out
:(
I found the solution on this DevForum post from 2022:
https://devforum.roblox.com/t/linear-velocity-rotating-the-character/1758753/10
Someone had a similar issue
oml i hate roblox
anyways tysm man
i thought attachments are always at the center
💀
Np, if it breaks again, mention me here or in DM
Same