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
 

Re: Can someone help me complete my "Arm follow mouse" script?

Previous Thread :: Next Thread 
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
17 Apr 2016 03:09 AM
I need it for gun making purposes. It would be much appreciated. I'm stuck.


local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
repeat wait(0.25) until plr.Character local chr = plr.Character local ra = chr:WaitForChild("Right Arm") local la = chr:WaitForChild("Left Arm") local torso = chr:WaitForChild("Torso")
local rs = game:GetService("RunService")

local ra = torso:WaitForChild("Right Shoulder")
local originalC0 = ra.C0


while true do
ra.C0 = originalC0*CFrame.Angles(0,0,math.abs(mouse.Origin.Y))
wait()
end


Report Abuse
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
17 Apr 2016 03:19 AM
Nvm guys, with the help of learning welds, I was able to complete it :D


Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
17 Apr 2016 03:54 AM
Additional reference material for yourself//others:
--// Arms follow mouse
roblox.com/--item?id=173405827
--// Head follows mouse
roblox.com/Forum/ShowPost.aspx?PostID=184823550
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
17 Apr 2016 04:36 AM
casualist, i saw your thread and 0.0 wow. Im really bad when it comes to welding and CFrame, could you please give me a decent overview of how welding works cause I am yet to understand what the C0 and C1 refer to



#Strikin'
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
17 Apr 2016 08:02 PM
@Electro I feel this does a competent job of explaing C0 and C1 offsets
http://wiki.roblox.com/index.php?title=Joint#C0_and_C1

If you have more questions after having read through that I'll do my best to address them
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