So I’m working on a combat system and I’m stuck on unsheathe because the motor6d current angle keeps changing when I don’t want it to change. Source code :
local CharacterConfigs = Character.Configs;
local WeaponConfigs = CharacterConfigs.WeaponConfigs
local WeaponOffset = WeaponConfigs.WeaponOffset
local CombatData = WeaponData.CombatData;
local UnsheathedMotorData = CombatData.MotorData.Unsheathed;
WeaponOffset.Part0 = Character[UnsheathedMotorData.Part]
WeaponOffset.C0 = UnsheathedMotorData.C0WeaponOffset
WeaponOffset.C1 = UnsheathedMotorData.C1WeaponOffset
WeaponOffset.CurrentAngle = 0
Some reason it happens when I play an animation with it.
Uploading: 2024-05-28 13-07-08.mp4…