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 » Scripters
Home Search
 

Re: Script Won't Work??

Previous Thread :: Next Thread 
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
08 Jan 2015 07:58 AM
It's supposed to remove the brick when you click it.


part = script.Parent
function click (other)
part:Destroy()
end
part.Selected.Mouse.Button1Down:connect(click)
Report Abuse
TeddyBauer is not online. TeddyBauer
Joined: 24 Jul 2014
Total Posts: 224
08 Jan 2015 08:00 AM
what are the "Selected" and "Mouse" Objects? Parts?
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
08 Jan 2015 08:05 AM
Er no. I found a thing on the wiki and it had selected in there but the script was put together differently so I tried to put it how I like it.
Report Abuse
TeddyBauer is not online. TeddyBauer
Joined: 24 Jul 2014
Total Posts: 224
08 Jan 2015 08:06 AM
theres an order to how things are put together in ROBLOX, because scripting needs rules to make sense.

Put a ClickDetector inside the part, and inside the ClickDetector place a script. Inside the script put this:



part=script.Parent.Parent

script.Parent.MouseClick:connect(function(pl)
part:Destroy()
end)
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
08 Jan 2015 08:17 AM
It worked thanks!
Report Abuse
TeddyBauer is not online. TeddyBauer
Joined: 24 Jul 2014
Total Posts: 224
08 Jan 2015 08:18 AM
No problem!11!1111!!!!1
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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