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 » Scripting Helpers
Home Search
 

Re: @dro1d3k4

Previous Thread :: Next Thread 
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Jul 2012 07:10 PM
Thanks for the help! This script works fine but it has a few glitches:


script.Parent.Parent.Equipped:connect(function (mouse)
mouse.Move:connect(function ()
local t = script.Parent.Parent.Parent.Torso;
t.CFrame = CFrame.new(t.Position, mouse.Hit.p);
end);
end);


And becasue of these glitches, I'm wondering how you would change it from the torso following, to the arms folowing the mouse?
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
28 Jul 2012 07:12 PM
Ever heard of PMs?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Jul 2012 07:14 PM
Yeah ha
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Jul 2012 08:25 PM
Bawmp?
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
28 Jul 2012 08:40 PM
Debating whether to help or not cause I'm not Droid...
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Jul 2012 08:53 PM
ANy help will do.
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
28 Jul 2012 10:21 PM
bAWMP
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
28 Jul 2012 10:27 PM
1. Make sure that they are in first person for this to work best.

handle.CFrame.lookVector = t.CFrame.lookVector

That will set the direction of the handle inside the tool to the direction of the torso. Make sure you define handle, though. ;)

Time to update this siggy, to this: !
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 12:39 PM
How would I put this in the script?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
29 Jul 2012 12:40 PM
WHy am I seeing a bunch of Forums named "dro1d3k4" This Morning?
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
29 Jul 2012 12:42 PM
Simple.


script.Parent.Parent.Equipped:connect(function (mouse)
mouse.Move:connect(function ()
local t = script.Parent.Parent.Parent["Left Arm"];
local t2 = script.Parent.Parent.Parent["Right Arm"];
t.CFrame = CFrame.new(t.Position, mouse.Hit.p);
t2.CFrame = CFrame.new(t2.Position, mouse.Hit.p);
end);
end);
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 12:49 PM
@robotmega

your script didn't work.
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 12:51 PM
@DX

SO it would be llike this:



script.Parent.Parent.Equipped:connect(function (mouse)
mouse.Move:connect(function ()
local t = script.Parent.Parent.Parent.Torso;
local handle = script.Parent.Parent.Handle
handle.CFrame.lookVector = t.CFrame.lookVector
t.CFrame = CFrame.new(t.Position, mouse.Hit.p);
end);
end);
Report Abuse
Thewsomeguy is not online. Thewsomeguy
Joined: 06 Aug 2011
Total Posts: 520
29 Jul 2012 12:58 PM
script.Parent.Parent.Equipped:connect(function(mouse)
mouse.Move:connect(function()
local t = script.Parent.Parent.Parent.Torso;
local handle = script.Parent.Parent.Handle
handle.CFrame.lookVector = t.CFrame.lookVector
t.CFrame = CFrame.new(t.Position, mouse.Hit.p);
end);
end);

No space after function in your anonymous functions.
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 01:02 PM
Why doesn't it work?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 02:12 PM
It doesn't work for some resaon:(
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
29 Jul 2012 02:18 PM
Try removing the third to last line, and also make sure your in First-Person mode!

Time to update this siggy, to this: !
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 02:30 PM
Wah! Still doesn't work..Llemme try outpout..
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 02:50 PM
Sigh
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 03:13 PM
No output...
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Jul 2012 03:38 PM
Then you are doing something that's messing it up.



-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 03:45 PM
Obviously
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Jul 2012 03:51 PM
Is this in a Tool or HopperBin?


-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 03:52 PM
Gun Tool inside the shooter script
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Jul 2012 07:57 PM
Bump Fordr01d
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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