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 » Scripting Helpers
Home Search
 

Need help w/ tool

Previous Thread :: Next Thread 
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
07 Jul 2014 02:22 PM
This only moves two parts into a model and breaks the rest, and only two parts are cloned onto my back.. It's supposed to create a back sword.. All variables are already defined. Output:


12:19:46.665 - Handle is not a valid member of Model
12:19:46.665 - Script 'Players.Player1.Backpack.Epic Part 2', Line 59
12:19:46.666 - Stack End





Tool.Unequipped:connect(function()
for t, c in pairs(Tool:GetChildren()) do
c:Clone().Parent = C;
c.Anchored = true;
end
local Tbl2 = {1,2,3,4,5,6,7,8,9}
for pt2, m2 in pairs(C:GetChildren()) do
for j, l in pairs(Tbl2) do
if m2.Name == "Part"..tostring(l) then
Weld2(C.Handle, m2) local M = Instance.new("Model", C);
M.Name = "Back Sword";
m2.Parent = M C.Handle.Parent = M;
local MG = M:GetChildren();
for i = 1, #MG do
Weld(C.Torso, MG[i], 0,0,0,0,0,-2);
MG[i].Anchored = false;
end
end
end
end
end)
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
07 Jul 2014 02:23 PM
Welds break when cloning or reparenting.
Report Abuse
Conmiro is not online. Conmiro
Joined: 13 Oct 2008
Total Posts: 3393
07 Jul 2014 02:25 PM
model:MakeJoints()
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
07 Jul 2014 02:31 PM
I get the same issue. It's at the part where I put

"Weld2(C.Handle, m2)"

It keeps saying it's not a valid ember of model (my char)
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
07 Jul 2014 02:37 PM
bmp
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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