|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 15 Feb 2015 07:32 PM |
| Why is this being done from a LocalScript? |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Feb 2015 07:33 PM |
| dia, cuz im using the mouse |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 15 Feb 2015 07:47 PM |
| i'm sounding rude, lol. i'm sorry |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 15 Feb 2015 07:57 PM |
| feel free to use my weld function :o |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2015 08:02 PM |
| also i don't get why you're using all dat. explain? |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2015 08:05 PM |
also...
that just moves you towards a direction? wtf |
|
|
| Report Abuse |
|
|