generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Is my computer going insane?

Previous Thread :: Next Thread 
lightpower26 is not online. lightpower26
Joined: 26 Apr 2012
Total Posts: 1046
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
HyperProduct is not online. HyperProduct
Joined: 11 Nov 2012
Total Posts: 3362
07 Oct 2016 08:15 PM
yes
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image