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
 

Left Hand

Previous Thread :: Next Thread 
DJSasuke1963 is not online. DJSasuke1963
Joined: 30 Nov 2012
Total Posts: 1136
10 Mar 2015 08:38 PM
I've attempted to weld this to the left hand..

script.Parent.Equipped:connect(function(mouse)
wait(1)
local plr = game.Players.LocalPlayer
local weld = Instance.new("ManualWeld", plr.Character["Left Arm"])
weld.Part0 = script.Parent.Handle
weld.Part1 = weld.Parent
weld.C1 = CFrame.new(0,0,0);
end)

I only want to weld 1 brick(handle) to the hand but for some reason..Its not working.
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
10 Mar 2015 08:47 PM
Don't use a ManualWeld - I believe that is an abstract class. Just use "Weld" instead.
Report Abuse
DJSasuke1963 is not online. DJSasuke1963
Joined: 30 Nov 2012
Total Posts: 1136
10 Mar 2015 08:50 PM
It drags my left arm to the sword instead of moving the sword to my left arm:

script.Parent.Equipped:connect(function(mouse)
wait(1)
local plr = game.Players.LocalPlayer
local weld = Instance.new("Weld", plr.Character["Left Arm"])
weld.Part0 = script.Parent.Handle
weld.Part1 = weld.Parent
weld.C1 = CFrame.new(0,0,0);
end)

Its in a tool.
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
10 Mar 2015 08:59 PM
script.Parent.Equipped:connect(function(mouse)
wait(1)
local plr = game.Players.LocalPlayer
local weld = Instance.new("Weld", plr.Character["Left Arm"])
weld.Part0 = weld.Parent
weld.Part1 = script.Parent.Handle
weld.C1 = CFrame.new(0,0,0);
end)

Its in a tool.
Report Abuse
DJSasuke1963 is not online. DJSasuke1963
Joined: 30 Nov 2012
Total Posts: 1136
11 Mar 2015 01:03 AM
It still takes my left hand and places it on the tool, is it because its a tool?
Report Abuse
DJSasuke1963 is not online. DJSasuke1963
Joined: 30 Nov 2012
Total Posts: 1136
11 Mar 2015 01:08 AM
Thank you, could you tell me-how would I weld multiple parts to the left arm? am I able to use this somehow..


local plr = game.Players.LocalPlayer
local parts = script.Parent:GetChildren()
for i = 1,#parts do
if ((parts[i].className == "Part") or (parts[i].className == "Handle") or (parts[i].className == "WedgePart") or (parts[i].className == "VehicleSeat") or (parts[i].className == "SkateboardPlatform")) then
local weld = Instance.new("Weld", plr.Character["Left Arm"])
weld.Part0 = weld.Parent
weld.Part1 = parts[i]
weld.C0 = weld.CFrame:inverse()
weld.C1 = parts[i].CFrame:inverse()
weld.Parent = weld.Parent
parts[i].Anchored = false
script.Parent.Handle.Parent = plr.Character["Left Arm"]
end
end
wait(3)
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