You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i want to make so the script records the player’s movements and makes it into an animation (will add vr) -
What is the issue? Include screenshots / videos if possible!
the arms and legs animations are not oriented correctly (I CANT SEND MY VIDEO FOR SOME REASON BUT ITS LIKE THE LEGS ROTATE LEFT AND RIGHT INSTEAD OF FORWARD AND BACK (Same with arms and torso and head)) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
adding offsets and stuff
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
here’s a part of the script made to record player’s actions
repeat
wait()
frame += 1
local KeyFrame = Instance.new("Keyframe",animation)
local HumanoidRootPartanim = Instance.new("Pose",KeyFrame)
local Torsoanim = Instance.new("Pose",HumanoidRootPartanim)
local LeftArmanim = Instance.new("Pose",Torsoanim)
local RightArmanim = Instance.new("Pose",Torsoanim)
local HeadAnim = Instance.new("Pose",Torsoanim)
KeyFrame.Time = framesToSeconds(frame)
KeyFrame.Name = "Keyframe".. frame
HumanoidRootPartanim.Name = HumRootPart.Name
LeftArmanim.Name = LArm.Name
RightArmanim.Name = RArm.Name
Torsoanim.Name = Torso.Name
HeadAnim.Name = Head.Name
HumanoidRootPartanim.CFrame = HumRootPart.CFrame
Torsoanim.CFrame = Torso.CFrame:ToObjectSpace(HumRootPart.CFrame)
HeadAnim.CFrame = Head.CFrame:ToObjectSpace(Torso.CFrame)
LeftArmanim.CFrame = LArm.CFrame:ToObjectSpace(Torso.CFrame)
RightArmanim.CFrame = RArm.CFrame:ToObjectSpace(Torso.CFrame)
until not recording
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.