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: Help with welds

Previous Thread :: Next Thread 
nasirs001 is not online. nasirs001
Joined: 16 Jan 2010
Total Posts: 395
02 Feb 2015 07:35 PM
every time the weld gets destroyed the arm falls off the map. Any help is appreciated. Here's the script.

--clockwork
wait(2)
local bin = script.Parent
local Player = game.Players.LocalPlayer
local mouse = Player:GetMouse()
local c = Player.Character

enabled = true


function onButton1Down(mouse)
if not enabled then return end
local player = game.Players.LocalPlayer
if player == true then return end
print("trigger")
-- find the best cf

enabled = false
game:GetService("Chat"):Chat(c.Head, "Lariat!!!")
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
Rarm = game.Players.LocalPlayer.Character:FindFirstChild("Right Arm")
LAR=Instance.new("Part", game.Players.LocalPlayer.Character)
LAR.Size = Rarm.Size
LAR.Position = Rarm.Position
LAR.Transparency = 0.6
LAR.BrickColor = BrickColor.new("Pastel light blue")
W1=Instance.new("Weld", game.Players.LocalPlayer.Character)
W1.Part0 = game.Players.LocalPlayer.Character.Torso
W1.Part1 = Rarm
W1.C1 = CFrame.fromEulerAnglesXYZ(30, 70, 0)*CFrame.new(-1.5, -.5, 0)
W2=Instance.new("Weld", game.Players.LocalPlayer.Character)
W2.Part0 = Rarm
W2.Part1 = LAR
S1=Instance.new("Sparkles", LAR)
S1.SparkleColor = Color3.new(11, 255, 255)
function Hurt(part)
h = part.Parent:FindFirstChild("Humanoid")
h:TakeDamage(15)
end
LAR.Touched:connect(Hurt)
wait(1)
enabled = true
end

function onSelected(mouse)
print("select")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

function noSelect()
LAR:Destroy()
W1:Destroy()
W2:Destroy()
end
bin.Selected:connect(onSelected)
bin.Deselected:connect(noSelect)
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
02 Feb 2015 07:37 PM
Make two parts and weld them to the arms.
Make a torso and weld that to the parts.
Rotate parts as needed.

I think you can just weld them to the torso. Not sure. I am not thinking on it.
Report Abuse
nasirs001 is not online. nasirs001
Joined: 16 Jan 2010
Total Posts: 395
02 Feb 2015 07:41 PM
So I have to make a new torso to weld the new part too?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
02 Feb 2015 07:46 PM
Make two parts exactly like the arms. Make them transparent. Weld these new arms to your player's arms. This will let you edit the cframe of the new parts to rotate and do stuff with the arms. You need to weld the arms to a fake torso (or maybe not if it doesnt break ur joints) because the weld doesnt connect with the arms, but the fake arms. Who cares if the fake arms break.
Report Abuse
nasirs001 is not online. nasirs001
Joined: 16 Jan 2010
Total Posts: 395
02 Feb 2015 07:47 PM
ah thx I'll give it a try
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