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: My script won't work.

Previous Thread :: Next Thread 
RadioactiveCherryPie is not online. RadioactiveCherryPie
Joined: 19 Dec 2010
Total Posts: 44
17 Dec 2011 03:56 PM
I have a brick spawner creating bricks called "Nep".
I also have a brick that deletes the brick "Nep", but in this brick, it won't delete it.
Here is the script in it.


bin = script.Parent

function onTouched(part)
if part.Name == "Nep" then --fill in the name of the brick you want this to delete when it touches the parent of this script
part:remove(0.01)
end
end

bin.Touched:connect(onTouched)
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
17 Dec 2011 03:58 PM
bin = script.Parent

function onTouched(part)
  if part.Name == "Nep" then
    part:Destroy()
  end
end

bin.Touched:connect(onTouched)
Report Abuse
RadioactiveCherryPie is not online. RadioactiveCherryPie
Joined: 19 Dec 2010
Total Posts: 44
17 Dec 2011 04:02 PM
It didn't work, perhaps its the brick spawner?
-------------------------------------------------------------






while true do

p = Instance.new ("Part")
p.Parent = game.Workspace
p.Position = script.Parent.Position
p.Name = "Nep"
wait(3)

end

Report Abuse
RadioactiveCherryPie is not online. RadioactiveCherryPie
Joined: 19 Dec 2010
Total Posts: 44
17 Dec 2011 04:07 PM
Bump
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