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: A "Shrink Brick" script?

Previous Thread :: Next Thread 
YouWinTheInternet is not online. YouWinTheInternet
Joined: 29 May 2010
Total Posts: 2525
31 Jul 2010 07:10 PM
I'm not grwat at scripting, could some one tell me how to make a script that I could put into a brick so when another brick touches it, that brick will shrink? I don't think it's hard, but then again, I can barely script. Please respond.
Report Abuse
dallaspenguins34num2 is not online. dallaspenguins34num2
Joined: 26 Apr 2009
Total Posts: 664
31 Jul 2010 07:11 PM
function onTouched()
s=script.Parent
s.Size=s.Size + Vector3.new(0, -0.1, 0)
end
script.Parent.Touched:connect(onTouched)
Report Abuse
YouWinTheInternet is not online. YouWinTheInternet
Joined: 29 May 2010
Total Posts: 2525
31 Jul 2010 07:12 PM
Thank you!
Report Abuse
massivematt1998 is not online. massivematt1998
Joined: 04 Mar 2009
Total Posts: 1977
31 Jul 2010 07:13 PM
script.Parent.Touched:connect(function(part)
local Mesh = script.Parent["BlockMesh"]
while true do
Mesh.Scale = Vector3.new(5, 5, 5)
wait(1)
Mesh.Scale = Vector3.new(4, 4, 4)
wait(1)
Mesh.Scale = Vector3.new(3, 3, 3)
wait(1)
Mesh.Scale = Vector3.new(2, 2, 2)
wait(1)
Mesh.Scale = Vector3.new(1, 1, 1)
end
end)
Report Abuse
YouWinTheInternet is not online. YouWinTheInternet
Joined: 29 May 2010
Total Posts: 2525
31 Jul 2010 07:19 PM
neither of the scripts are working. The bricks will touch eachother and the scripted brick will just jump out of the way. I have the scripted brcik anchored, will that make a diffrence?
Report Abuse
dallaspenguins34num2 is not online. dallaspenguins34num2
Joined: 26 Apr 2009
Total Posts: 664
31 Jul 2010 07:21 PM
Is it a plate? If so, it needs to be.

~JONESY~
Report Abuse
YouWinTheInternet is not online. YouWinTheInternet
Joined: 29 May 2010
Total Posts: 2525
31 Jul 2010 07:23 PM
I made it a plate, but it's still not working.
Report Abuse
dallaspenguins34num2 is not online. dallaspenguins34num2
Joined: 26 Apr 2009
Total Posts: 664
31 Jul 2010 07:24 PM
hmn, I don't know then.

~JONESY~
Report Abuse
YouWinTheInternet is not online. YouWinTheInternet
Joined: 29 May 2010
Total Posts: 2525
31 Jul 2010 07:24 PM
D:
Report Abuse
TheDarkLego is not online. TheDarkLego
Joined: 16 Nov 2007
Total Posts: 785
31 Jul 2010 08:06 PM
Im need the same thing. Wouldn't be better with a script that makes the Brick shrink and enlarge itself automatically?
Report Abuse
dallaspenguins34num2 is not online. dallaspenguins34num2
Joined: 26 Apr 2009
Total Posts: 664
01 Aug 2010 08:36 AM
Make sure the brick is the same hight as

"for i=1 INSERTNUMBERHERE do"
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