jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Jan 2014 10:38 PM |
for i = 1, 90 do a.Size = a.Size * Vector3.new(math.rad(1),math.rad(1),math.rad(1)) wait() end wait(1) for i = 1, 90 do a.Size = a.Size * Vector3.new(math.rad(-1),math.rad(-1),math.rad(-1)) wait() end end
a is defined this is not the whole script, but the size doesn't change |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 10:39 PM |
| I think radians are always positive..? |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Jan 2014 10:41 PM |
| no, because if you change this over to position, they work with negatives |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Jan 2014 10:42 PM |
.............. Multiplying a vector by a vector... o.e /i think you want to add...
btw radians can be negative |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Jan 2014 10:53 PM |
| I CHANGED IT, doesn't work |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 10:54 PM |
Are you trying to rotate it?
a.CFrame = a.CFrame*CFrame.Angles(math.rad(1),math.rad(1),math.rad(1)) |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Jan 2014 10:55 PM |
| no, i'm trying to make the brick look like its breathing by making it become bigger smoothly and get smaller smoothy |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
| |
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Jan 2014 10:59 PM |
| still doesn't work, brick is just smaller |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 11:01 PM |
Do this instead:
i = 0 b = a.Size while true do i = i+wait() a.Size = b+Vector3.new(math.sin(2/7*math.pi*i),math.sin(2/7*math.pi*i),math.sin(2/7*math.pi*i)) end |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
| |
|
|
| 03 Jan 2014 11:09 PM |
| Yes it does; I just tested it. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Jan 2014 11:11 PM |
And my suggestions should work as well Are you sure the script is even running this code and not erroring before this? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 11:25 PM |
| Yes definitely have them be Custom FormFactor |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 04 Jan 2014 12:02 AM |
| thank you but it increases and keeps increasing until it falls out the workspace, i want it to increase by 1 stud on x y and z then decrease down 1 stud. |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
|
| 04 Jan 2014 12:07 AM |
for i = 1, 90, 1 do a.Size = a.Size * Vector3.new(math.rad(1),math.rad(1),math.rad(1)) wait() end wait(1) for i = 90, 1, -1 do a.Size = a.Size * Vector3.new(math.rad(-1),math.rad(-1),math.rad(-1)) wait() end end |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
|
| 04 Jan 2014 12:09 AM |
for i = 1, 90, 1 do a.Size = Udim3.new(i,i,i) wait() end wait(1) for i = 90, 1, -1 do a.Size = Udim3.new(i,i,i) wait() end
try that |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 04 Jan 2014 12:10 AM |
| @iV, it's UDim2 and that's for GUI's. |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
|
| 04 Jan 2014 12:10 AM |
while true do for i = 1, 90, 1 do a.Size = Udim3.new(i,i,i) wait() end wait(1) for i = 90, 1, -1 do a.Size = Udim3.new(i,i,i) wait() end end
sorry lol |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
|
| 04 Jan 2014 12:11 AM |
@Azarth
I thought Udim3 was for 3D objects and Udim2 was for 2D, like GUIs. |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 04 Jan 2014 12:24 AM |
| UDim2 is used for GUI's and there is no 3rd dimension in GUI's. |
|
|
| Report Abuse |
|
|
Kratos232
|
  |
| Joined: 28 Oct 2011 |
| Total Posts: 229 |
|
|
| 04 Jan 2014 12:33 AM |
Try this.
a = script.Parent
while true do for i = 1, 10 do a.Size = a.Size + Vector3.new(.1, .1, .1) wait(0.1) end wait(1) for i = 1, 10 do a.Size = a.Size - Vector3.new(.1, .1, .1) wait(0.1) end wait(1) end |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
|
| 04 Jan 2014 12:38 AM |
while true do for i = 1, 90, 1 do a.Size = Vector3.new(i,i,i) wait() end wait(1) for i = 90, 1, -1 do a.Size = Vector3.new(i,i,i) wait() end end
This should do it then. |
|
|
| Report Abuse |
|
|
Kratos232
|
  |
| Joined: 28 Oct 2011 |
| Total Posts: 229 |
|
|
| 04 Jan 2014 12:40 AM |
@iV
No. That wouldn't work. |
|
|
| Report Abuse |
|
|
iValianT
|
  |
| Joined: 21 Aug 2010 |
| Total Posts: 58381 |
|
| |
|