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: How would i put this script into...

Previous Thread :: Next Thread 
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
19 Jun 2012 02:50 PM
How would i put this script into this brick (and they have to be in same script):

b = Instance.new("Part",Workspace)
b.Position = Vector3.new(0,1,0)
b.Anchored = true

function onTouched(hit)
hit.Parent:breakJoints()
end

script.Parent.Touched:connect(onTouched)
Report Abuse
hintboyright is not online. hintboyright
Joined: 20 May 2009
Total Posts: 228
19 Jun 2012 02:56 PM
You can make a script clone a brick that already has that script in it.
Report Abuse
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
19 Jun 2012 03:08 PM
Like?, i didnt understand
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
19 Jun 2012 03:17 PM
I don't understand what you are trying to do, but one mistake that you have is that it is BreakJoints() not breakJoints().
The capital is important.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
19 Jun 2012 03:19 PM
Oh wait, so you want to move that script into the brick.

You could do

script.Parent = "BRICKNAMEHERE"

or you could clone the script and then set the scripts parent.
Report Abuse
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
20 Jun 2012 07:42 AM
b = Instance.new("Part",Workspace)
b.Position = Vector3.new(0,1,0)
b.Anchored = true
b.Name = "lava"

script.Parent = "lava"

function onTouched(hit)
hit.Parent:breakJoints()
end

script.Parent.Touched:connect(onTouched)

Like that???
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
20 Jun 2012 07:45 AM
b = Instance.new("Part",Workspace)
b.Position = Vector3.new(0,1,0)
b.Anchored = true

script.Parent = b

function onTouched(hit)
hit.Parent:breakJoints()
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
20 Jun 2012 07:48 AM
thx cheater
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