of     1   

Superfryx
#141300717Wednesday, July 23, 2014 7:46 PM GMT

I am making a game, and I need to type in a command so I can move some parts into a model. I want to move all parts named WoodWall in a model named Map, to a model in Map called WoodWallModel ----Where all the parts are---- Map=game.Workspace All the wood walls=Map WoodWallModel=Map ~local Superfryx=game.Workspace.Awesomeness
smiley599
#141301299Wednesday, July 23, 2014 7:52 PM GMT

player added chatted if message is something clone to workspace
Superfryx
#141302728Wednesday, July 23, 2014 8:07 PM GMT

I ment the command line in studio. ~local Superfryx=game.Workspace.Awesomeness
Superfryx
#141302810Wednesday, July 23, 2014 8:08 PM GMT

meant* ~local Superfryx=game.Workspace.Awesomeness
Inspectial
#141302900Wednesday, July 23, 2014 8:09 PM GMT

for _,v in pairs(workspace:GetChildren()) do if v.Name == "WoodWall" then v.Parent = workspace.ModelName end end
128GB
#141302972Wednesday, July 23, 2014 8:10 PM GMT

Map=game.Workspace All the wood walls=Map WoodWallModel=Map for _, v in pairs (Workspace.Map:GetChildren()) do if v.Name == "WoodWall" then v.Parent = Workspace.Map.WoodWallModel end end
KEVEKEV77
#141302975Wednesday, July 23, 2014 8:10 PM GMT

function _G.Move(part, model) part.Parent = model; end so in command bar, write this _G.Move(game.Workspace.THEPART, game.Workspace.THEMODEL);
128GB
#141303032Wednesday, July 23, 2014 8:11 PM GMT

Ignore the top lines I copied them into my post to remember where everything was parented and meant to remove them
KEVEKEV77
#141303248Wednesday, July 23, 2014 8:13 PM GMT

so with my function, for i,v in pairs(game.Workspace:GetChildren()) do if v.Name == "NAMEHERE" then _G.Move(game.Workspace.THEPART, WoodWallModel); end
128GB
#141303536Wednesday, July 23, 2014 8:16 PM GMT

_G.Move Unneeded _G. function is unneeded
Superfryx
#141303690Wednesday, July 23, 2014 8:18 PM GMT

Thanks guys! ~local Superfryx=game.Workspace.Awesomeness
KEVEKEV77
#141305591Wednesday, July 23, 2014 8:39 PM GMT

@128 unneeded unused definitions are unneeded
super10099
#141305988Wednesday, July 23, 2014 8:43 PM GMT

bumping dis is uneeded bumping is uneeded.
KEVEKEV77
#141366742Thursday, July 24, 2014 7:06 AM GMT

well actually, a _G is needed when using it in a command bar. So hah!
128GB
#141366809Thursday, July 24, 2014 7:07 AM GMT

No its not
KEVEKEV77
#141435536Thursday, July 24, 2014 11:11 PM GMT

try it.
cntkillme
#141435637Thursday, July 24, 2014 11:11 PM GMT

function Move(part, model) part.Parent = model; end Move(game.Workspace.THEPART, game.Workspace.THEMODEL); works fine...
KEVEKEV77
#141435853Thursday, July 24, 2014 11:13 PM GMT

weird, not for me >.<
128GB
#141435927Thursday, July 24, 2014 11:14 PM GMT

https://www.youtube.com/watch?v=-N-ZjJn2x1Y
cntkillme
#141435999Thursday, July 24, 2014 11:15 PM GMT

lol I love your videos, 5/5

    of     1