Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Animations Wont Rotate With Torso Anchored? (R15)

Asked by
Nikkulaos 229 Moderation Voter
6 years ago
Edited 6 years ago

I have been wondering this for a while, because im making beams for my dbz game.

The beam itself works and all, but when i anchor the upper torso and play the animation, the animation does not move near the upper torso area. It Just stays still and looks very silly.

I tried to play the animation first and then anchor the torso, but the animation is looped which sucks.

Then i tried to anchor the HumanoidRootPart, because that always works with R6. I tried it, and it works at first, but then your camera starts moving upwards and it messes everything up badly.

I am very confused and i would like some help. I was thinking about trying to do manual animating with C0, but i was still hoping there was an easier way before i tried it.

Does anyone know of an easy way to fix it? If so, please say so.

Thanks!

(When i try anchoring the Humanoid Root Part, the players whole character just starts flying upwards. I believe this part of the script has something to do with the problem, but with R6 it never happened.)

player.Character:FindFirstChild("HumanoidRootPart").CFrame=CFrame.new(player.Character:FindFirstChild("LowerTorso").Position,Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))    

0
I just tried rotating the torso with the animation as it plays, it works right now but its not as smooth and efficient. Nikkulaos 229 — 6y
0
The only way to play animations normally with keeping the body in one spot is to anchor the HumanoidRootPart. If any other body parts get anchored, the animation will not play correctly. I'm not sure why the camera would go up, but a fix would be to set the CurrentCamera to the HumanoidRootPart or UpperTorso. Mayk728 855 — 6y
0
Ok, thanks for the reply! Nikkulaos 229 — 6y
0
I think it may have something to do with this part of the script (Sorry, forgot to put it in the post): player.Character:FindFirstChild("HumanoidRootPart").CFrame=CFrame.new(player.Character:FindFirstChild("LowerTorso").Position,Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z)) Nikkulaos 229 — 6y
View all comments (7 more)
0
What exactly are you trying to do that requires you to anchor any body part? Mayk728 855 — 6y
0
Rotate the torso towards the players camera Nikkulaos 229 — 6y
0
Im making it so that while the player charges the beam, his humanoidrootpart is anchored and the torso faces the mouse, but when i do this the players character starts flying towards the mouse Nikkulaos 229 — 6y
0
So the beam is pointing towards the mouses position, and you want the body to face the mouse's position too? Mayk728 855 — 6y
0
Yes, and it works perfectly with r6, but not r15. Nikkulaos 229 — 6y
0
Well i'm not so sure because you didn't show a script. Mayk728 855 — 6y
0
Yea, sorry. I dont wanna leak my whole script. But i posted the part of the script above that is probably the reason for the screw up. Nikkulaos 229 — 6y

Answer this question