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: I need help

Previous Thread :: Next Thread 
Fadeless is not online. 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 is not online. 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 is not online. AeroChase
Joined: 24 May 2013
Total Posts: 82
03 Sep 2013 02:03 AM
Don't forget you spelt Mesh wrong.
Report Abuse
wazap is not online. 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
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