Fadeless
|
  |
| Joined: 02 Jun 2013 |
| Total Posts: 2046 |
|
|
| 03 Sep 2013 12:05 AM |
Apparently this script resizes a brick little by little. I'm trying to use this to make animated water.
local stage = 0 function up() script.Parent.CFrame = script.Parent.CFrame + Vector3.new(.1, 0, .1) script.Parent.Mesh.Scale = script.Parent.esh.Scale = Vector3.new(.2, 0, .2) end
function down() script.Parent.CFrame = script.Parent.CFrame + Vector3.new(-.1, 0, -.1) script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(-.2, 0, -.2) end while true do for i=0,360,1 do up() wait(.1) end for i=0,360,1 do down() wait(.1) end |
|
|
| Report Abuse |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Sep 2013 01:57 AM |
CFrame and Vector3 arent compatible with one another. so.. script.Parent.CFrame = CFrame.new(script.Parent.CFrame.p + Vector3.new(whatever, whatever2, whatever3))
CFrame.p changes the CFrame into a Vector3. Hope this helps |
|
|
| Report Abuse |
|
AeroChase
|
  |
| Joined: 24 May 2013 |
| Total Posts: 82 |
|
|
| 03 Sep 2013 02:03 AM |
| Don't forget you spelt Mesh wrong. |
|
|
| Report Abuse |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Sep 2013 02:05 AM |
Also you have 2 '='s in 1 line. Change it to + >:3 |
|
|
| Report Abuse |
|