Problems with CordinateFrame and Position please help ??
Asked by
6 years ago Edited 6 years ago
Hi, I'm making an axe to cut Trees, but I have a problem and I try to do it when CordinateFrame.Y is equal to Tree.Position.Y and it has an animation and when it is CordinateFrame.X another Animation i try to do that but could not.
01 | function AxesModule:Animate(MouseHit) |
02 | local CordinationCframe = Camera.CoordinateFrame |
04 | local LastAnim, Track = nil , nil |
06 | local CutAnimationPos = CordinationCframe.Y < = self.Wood_Target.Size.X and "AxeSwing1" or CordinationCframe.X < = self.Wood_Target.Size.Y and "AxeSwing2" |
08 | Track = _G.PlayAnimation(Humanoid, CuttingAnimations [ CutAnimationPos ] , . 1 , 1 / self.Axe_Configs.SwingCooldown, true ) |
Please help me with this i need this part of script urgent. thanks