What do you want to achieve?
self explanatory title but, currently with my code i can only print out AssemblyLinearVelocity relative to the world.
while readoutvelocity == true do
print(script.Parent.UpperTorso.AssemblyLinearVelocity)
task.wait(1)
end
For my code to be easier, how would go about changing this to be relative to the part?
What solutions have you tried so far?
i looked on youtube and devforum but they both think im saying something else
this basically explains what i want the ‘AssemblyLinearVelocity’, or atleast a variable after conversion, to look like. the velocity doesnt change, but the variable describing the velocity changes because the part rotated.
(purple is top face and green is front face)
i also wasnt really sure if this should be in Scripting Support or Code Review since i already technically have my own code, if i got it into the wrong category, sorry, lmk
i mean like, since im trying to use this for a speedlimit system, if i was looking forward and going 50 studs a second in that direction, i wouldnt get pushed any faster, but if i looked to the right, i would start moving faster again.
sadly i would have done that but i have to have speedlimits for going backwards, left and right, and up and down too. so in one moment, i might be going too fast forward to be able to continue accelerating forward, but i should still be able to move in any other direction.
I mean, yeah it would make the vector3 change if you multiply it by the lookvector. That’s why I asked how you’re detecting front/back/left/right movement because you could just use that as a “direction” constant and from there adjust the speed
i got good news and bad news, so i’ll say it at once; it DOES WORK, but only for forwards and backwards… i still need 2 variables, one for left and right, and one for up and down, but if im not wrong, i can do this by multiplying the part.CFrame with a CFrame.Angles one, right?
sorry for the late reply by the way i had to go to sleep