of     1   

Kisaru
#8236783Tuesday, May 05, 2009 11:28 AM GMT

Is it possible to make script that makes your character or something controlled by your character swing it's arm when you swing the mouse? I'm good at scripting, just not this good as half the people on this forum.
Blaboblox
#8236831Tuesday, May 05, 2009 11:30 AM GMT

It's possible, they're sometimes called "Arm Guns", but I cannot script them though.
Kisaru
#8236842Tuesday, May 05, 2009 11:31 AM GMT

I see.
XlegoX
#8238071Tuesday, May 05, 2009 1:18 PM GMT

local gun1pos = (ship.GunPost1.CFrame * CFrame.new(0, 2, 0)).p ship.GunPost1.Weld.C1 = ((CFrame.new(gun1pos, mouse.Hit.p) - gun1pos):inverse()) * (ship.GunPost1.CFrame - ship.GunPost1.Position) That's what I used to make the welds on one of my plane's guns "point to" the mouse, like in Galleons except better.
lsuboymatt
Top 25 Poster
#8238217Tuesday, May 05, 2009 1:32 PM GMT

Wow dude ur smart (the mod)
Puppier
#33416524Tuesday, September 07, 2010 11:44 PM GMT

Mod Where? OH XLEGOX! Well I guess I bumped a year old thread...
DarkShadow6
#33440385Wednesday, September 08, 2010 5:50 PM GMT

^ FAIL. Oh well, useful code is useful.

    of     1