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

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.

01function AxesModule:Animate(MouseHit)
02    local CordinationCframe = Camera.CoordinateFrame
03 
04    local LastAnim, Track = nil, nil
05 
06    local CutAnimationPos = CordinationCframe.Y <= self.Wood_Target.Size.X and "AxeSwing1" or CordinationCframe.X <= self.Wood_Target.Size.Y and "AxeSwing2"
07 
08    Track = _G.PlayAnimation(Humanoid, CuttingAnimations[CutAnimationPos], .1, 1 /          self.Axe_Configs.SwingCooldown, true)
09 
10--  self.Animations[animationChoice]:Play(0.1, 1, 1 / self.SwingCooldown)
11end

Please help me with this i need this part of script urgent. thanks

Answer this question