|
| 07 Oct 2016 07:55 PM |
This question is also on ScriptingHelpers if you prefer that interface:
scriptinghelpers. org/ questions/ 36139/
So, a few months ago I made a gun system so I could make FE guns and sell them, like usual. Then I decided to make a dedicated gun system for my dev team. It's the same exact setup for all the welds and everything, just how the system reads animation data. That's the only difference. Yet, for some reason, it acts in an entirely different way.
The method is simply something that changes a tool's grip from the right hand to the left hand, that way you can move the right hand freely without moving the tool, but when you move the left hand, the tool moves.
Here's the method in action [LINK IS AVAILABLE IN SCRIPTINGHELPERS] (Focus on the part of the reload animation where he chambers the rifle)
Here's the method in complete insanity [LINK IS AVAILABLE IN SCRIPTINGHELPERS]
Here's the code snippet in BOTH SYSTEMS
local LeftGrip = false
function SwitchHands() local Grip = RArm:FindFirstChild("RightGrip") if LeftGrip == false then Grip.Part1 = nil LeftGrip = Weld(LArm, Handle) else LeftGrip:Destroy() LeftGrip = false Grip.Part1 = Handle end end
What the heck is going on here? I'm so confused! |
|
|
| Report Abuse |
|
| |