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

Could someone help me with this sword being upside down?

Asked by 8 years ago

Ok, so I have this sword. If you need to see the code, it is the exact same as Stickmasterluke's tutorial on YouTube.

I have found absolutely nothing on here, the forums, YouTube, the wiki, or the internet in general.

When the player clicks, the sword does the normal slash (arm rotates down, the sword comes with it). However, when the player lunges (sticks the sword out in front of them), the sword flips, upside down. Then it returns to its normal positioning in the hand when the "lunge" completes.

I am not well versed with Grip, so if I need to learn that, I will.

Here is the positioning for the Handle (where the player grabs) and the sword in its "lunge state":

Tool.GripForward = Vector3.new(0,0,1)
Tool.GripRight = Vector3.new(0,-1,0)
Tool.GripUp = Vector3.new(-1,0,0)

[Handle's Position] 11.382, 0.461, -5.441

[Handle's Rotation (This is the rotation that has the sword face correctly in its "normal/idle state")] -90, 0, 0

Here is the positioning for the sword in its "normal/idle state":

Tool.GripForward = Vector3.new(-1,0,0)
Tool.GripRight = Vector3.new(0,1,0)
Tool.GripUp = Vector3.new(0,0,1)    
0
I actually fixed it by setting all the "lunge state" values to 0. No idea why that fixed it. Julian_Orteil 48 — 8y

Answer this question