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: How do I make it so when I touch a brick it gets smaller?

Previous Thread :: Next Thread 
SlurpeguyV2 is not online. SlurpeguyV2
Joined: 27 Nov 2015
Total Posts: 5112
12 Mar 2016 10:37 PM
[ Content Deleted ]
Report Abuse
alphaboy299 is not online. alphaboy299
Joined: 15 Jun 2013
Total Posts: 1496
12 Mar 2016 10:40 PM
game.Workspace.Part.Size = Vector3.new(12.2, i, 16.2) --

How do you expect it to recognize it if dont tell it that it's a vector3 value?
Report Abuse
SlurpeguyV2 is not online. SlurpeguyV2
Joined: 27 Nov 2015
Total Posts: 5112
12 Mar 2016 10:40 PM
[ Content Deleted ]
Report Abuse
alphaboy299 is not online. alphaboy299
Joined: 15 Jun 2013
Total Posts: 1496
12 Mar 2016 10:42 PM
Well obviously,because you're reducing it's size in object space not world space.
If you want it to decrease it's size without moving it's position you have to use CFrame.
Report Abuse
Wayne_Gretzky is not online. Wayne_Gretzky
Joined: 03 Apr 2008
Total Posts: 78011
12 Mar 2016 10:42 PM
When you're doing anything involving Vector3, you need to build a Vector3 to set it to
You can do that with Vector3.new()

So in this case you would do Vector3.new(12.2, i, 16.2)

But for this you can also do part.Size = part.Size - Vector3.new(0, 0.1, 0), which would work with any size X and Z rather than just being hardcoded


And you'd also want to set the Part's FormFactor to Enum.FormFactor.Custom, or you won't see the 0.1 changes (it won't show up until every 1.2 for normal parts)
Report Abuse
SlurpeguyV2 is not online. SlurpeguyV2
Joined: 27 Nov 2015
Total Posts: 5112
12 Mar 2016 10:51 PM
[ Content Deleted ]
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Mar 2016 01:14 AM
or cframe.


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