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
 

Re: Ungrouping?

Previous Thread :: Next Thread 
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 08:03 AM
while true do
script.Parent:Model.Ungroup()
end

Why isnt it working? Please fix it.
Report Abuse
HaileyForever is not online. HaileyForever
Joined: 01 Oct 2011
Total Posts: 1496
06 Nov 2011 08:04 AM
Wrong indexing.
script.Parent.Model:UnGroup() -- I don't even think this is a function.
You might have to use a loop.

~The Official Princess Luna of Roblox~
Report Abuse
dirk29 is not online. dirk29
Joined: 26 May 2010
Total Posts: 1142
06 Nov 2011 08:06 AM
I haven't tried to do it. But if it was a command it would be :Ungroup and you should add a wait.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 08:07 AM
function UnGroup(Model)
for i,v in pairs(Model:GetChildren()) do
v.Parent = Model.Parent
end
Model:remove()
end

UnGroup(game.Workspace.Model.Model)
Report Abuse
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 08:07 AM
So how would the script be? Or can it move all the children to workspace?
Report Abuse
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 08:08 AM
Didnt work xS
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 08:08 AM
The script is in my last post
Report Abuse
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 08:17 AM
Doesnt work xD
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 08:20 AM
It does work.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
06 Nov 2011 08:23 AM
Assuming the name of the Group is "Group" and it's parent is workspace, this would work:

for i,v in pairs(workspace.Model:GetChildren()) do
v.Parent = workspace
end
Report Abuse
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 08:26 AM
It worked!
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 08:27 AM
My one works too :P
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
06 Nov 2011 09:22 AM
Ohai presentable.
Report Abuse
Presentable is not online. Presentable
Joined: 10 Jul 2011
Total Posts: 735
06 Nov 2011 02:14 PM
:P Whatever you say and Haider Skip!
Report Abuse
mityguy is not online. mityguy
Joined: 07 Jun 2008
Total Posts: 5483
06 Nov 2011 02:32 PM
Add a wait and do

Modle:Ungroup()
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