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: this doesn't move my arm =(

Previous Thread :: Next Thread 
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 06:40 PM
local p = game.Players.LocalPlayer
local m = p:GetMouse()

function weld(a,b)
local weld = Instance.new("ManualWeld")
weld.Part0 = a
weld.Part1 = b
weld.C0 = CFrame.new()
weld.C1 = b.CFrame:inverse() * a.CFrame
weld.Parent = a
return weld
end

repeat wait() until p.Character

local arm = p.Character["Right Arm"]:Clone()
arm.Parent = p.Character
arm.Name = "Fake Right Arm"
arm.CFrame = arm.CFrame * CFrame.Angles(0,math.pi,0)

weld(arm,p.Character["Right Arm"])


output:
none
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 06:51 PM
help?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Feb 2015 06:52 PM
I can move my right arm *Sun glasses*

You need 2 learn 2 motor6d manipulate.

Go into play solo and open up explorer. Look at animate.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:12 PM
I'm not using animations...

I'm eventually going to turn this into a script where it points to your mouse
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:17 PM
bump...
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
15 Feb 2015 07:19 PM
dont repost
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:28 PM
this isn't a repost
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
15 Feb 2015 07:32 PM
Why is this being done from a LocalScript?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:32 PM
cuz it is now halp
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:33 PM
dia, cuz im using the mouse
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
15 Feb 2015 07:41 PM
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:wait()
local rightArm = character:WaitForChild("Right Arm")
local fakeArm = rightArm:clone()
fakeArm.Parent = character
fakeArm.Name = "Fake Right Arm"
local weld = Instance.new("Weld", fakeArm)
weld.Part0 = fakeArm
weld.Part1 = rightArm
weld.C0 = CFrame.new()
weld.C1 = CFrame.new()

Works perfect, except the fake arm is yellow if the character doesn't load instantly. This is because before your avatar appearance loads, your character is dressed like character.rbxm, the default character model. It happens to have a yellow arm.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:42 PM
r u kidding me

mine works with welding, too

but i want it to move the arm omfgggggg
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
15 Feb 2015 07:45 PM
Oh, so you'd like the arm to always point at the mouse's Vector3? Hmm, that's actually similar to the problem I'm working on for my own script. Hang on?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:47 PM
ya man

but it'd be good to like fix the problem of the fake arm not moving first
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:47 PM
i'm sounding rude, lol. i'm sorry
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
15 Feb 2015 07:50 PM
torso.CFrame = CFrame.new(torso.Position,torso.Position + (Vector3.new(mousePosition.X,torso.Position.Y,mousePosition.Z)-torso.Position).unit)

Scraped this up. Hmm...
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
15 Feb 2015 07:55 PM
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:wait()
local torso = character:WaitForChild("Torso")
local rightArm = character:WaitForChild("Right Arm")
local fakeArm = rightArm:clone()
fakeArm.Parent = character
fakeArm.Name = "Fake Right Arm"
local weld = Instance.new("Weld", fakeArm)
weld.Part0 = fakeArm
weld.Part1 = rightArm
weld.C0 = CFrame.new()
weld.C1 = CFrame.new()
while wait() do
local mousePosition = mouse.Hit
torso.CFrame = CFrame.new(torso.Position,torso.Position + (Vector3.new(mousePosition.X,torso.Position.Y,mousePosition.Z)-torso.Position).unit)
end

You can probably mold this into something useful. If there's anything wrong, please go into as much detail as possible about what may be wrong. I'll hear you out. Also, this rotates the entire torso so you may want to change that.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 07:57 PM
feel free to use my weld function :o
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 08:02 PM
also i don't get why you're using all dat. explain?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
15 Feb 2015 08:05 PM
also...

that just moves you towards a direction? wtf
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