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: Please help.

Previous Thread :: Next Thread 
austy3 is not online. austy3
Joined: 16 Feb 2011
Total Posts: 66
03 Jul 2014 07:21 PM
I am trying to make a game and i need a script that will delete a block if it is like not welding to anything and you can push around. Please help.
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
03 Jul 2014 07:27 PM
Can you try rephrasing it / add more details? I can't understand exactly what you're asking...
Report Abuse
austy3 is not online. austy3
Joined: 16 Feb 2011
Total Posts: 66
03 Jul 2014 07:30 PM
Like if a block gets blown up from a timebomb the block will get deleted but can still regan.
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jul 2014 07:49 PM
Sooo....

function findparts(model)
for i, v in pairs(model:children()) do
if v:IsA"BasePart" and #v:GetConnectedParts()==0 and not v.Anchored then v:Destroy()
elseif #v:children()>0 then
findparts(v)
end
end
end


findparts(workspace)
Report Abuse
austy3 is not online. austy3
Joined: 16 Feb 2011
Total Posts: 66
03 Jul 2014 07:53 PM
did not work
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jul 2014 07:56 PM
throw that frikin thing in a while loop.
Report Abuse
purplescheer9 is not online. purplescheer9
Joined: 16 Jan 2011
Total Posts: 3852
03 Jul 2014 07:59 PM
I wonder if he knows how.

~I like trees
Report Abuse
austy3 is not online. austy3
Joined: 16 Feb 2011
Total Posts: 66
03 Jul 2014 08:03 PM
err
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jul 2014 08:07 PM
if you dont know what a while loop is im no longer helping
Report Abuse
austy3 is not online. austy3
Joined: 16 Feb 2011
Total Posts: 66
03 Jul 2014 08:12 PM
I know what a while loop is but i just don't know what to do like

while something
do then your script here
Report Abuse
RandomMaun is not online. RandomMaun
Joined: 19 Mar 2012
Total Posts: 264
03 Jul 2014 08:14 PM
while true do
-Insert rest here-
wait(#)
end
You're welcome
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