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: Growing brick help

Previous Thread :: Next Thread 
XxSWxX is not online. XxSWxX
Joined: 03 Nov 2007
Total Posts: 1016
14 Feb 2013 05:33 PM
This script works perfectly fine, but I want it to ignore objects when it grows.
It keeps moving itself away from the object instead of fusing into it...
Help me fix this D:

B=script.Parent


while true do
B.Size =B.Size+Vector3.new (1,1,1)
wait(1)

end
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
14 Feb 2013 05:35 PM
use CFrame
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
14 Feb 2013 05:36 PM
B.Size =B.Size+Vector3.new(1,1,1)
As far as I know, there's no space.
Report Abuse
XxSWxX is not online. XxSWxX
Joined: 03 Nov 2007
Total Posts: 1016
14 Feb 2013 05:40 PM
Spaces don't matter i just need it to ignore things it toaches
Report Abuse
XxSWxX is not online. XxSWxX
Joined: 03 Nov 2007
Total Posts: 1016
14 Feb 2013 06:22 PM
I dont know how to Cframe very well. what am i sopposed to put down?

B.Size =B.Size+Cframe.new (1,1,1) -- this diddnt work when i tried...
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
14 Feb 2013 06:36 PM
CFrame doesn't do size, it does position.

for i = 1,5 do
B.Size = B.Size + Vector3.new(i,i,i)
wait(1)
end

[[ Usering ]]
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
14 Feb 2013 06:37 PM
Try this, I used a for loop but forgot you wanted a while loop

B=script.Parent

i = 0

while true do
i = i + 1
B.Size =B.Size+Vector3.new (i)
wait(1)
end

[[ Usering ]]
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
14 Feb 2013 06:37 PM
local B = script.Parent
local CFrame = CFrame.new(B.Position.X,B.Position.Y,B.Position.Z)
while wait(1) do
B.Size = B.Size + Vector3.new(1,1,1)
B.CFrame = CFrame
end

-bigdaddy92, Professional Web Developer & Master Scripter
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