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: Water Script

Previous Thread :: Next Thread 
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
19 Jul 2012 07:35 AM
1.Make a Brick [like water] - MATERIAL:ICE
- COLOR: Navy Blue [for winter] / Bright Blue [normal]
2.Add a script in the brick [INSERT -> OBJECT -> Script]
3.Open it and dellete all from it
4. Copy and paste this in the script:
wtin = 0.01
while true do
for i = 1,10 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,tin,0)
wait(0.01)
tin = tin * 1.2
end
wait(0.01)
for i = 1,10 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,tin,0)
wait(0.01)
tin = tin / 1.2
end
wait(0.01)
for i = 1,10 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,tin * -1,0)
wait(0.01)
tin = tin * 1.2
end
wait(0.01)
for i = 1,10 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,tin * -1,0)
wait(0.01)
tin = tin / 1.2
end
wait(0.01)
end

5.Close the script
6.Click on SCRIPT and enter PROPERTISE [under EXPLORER] and try to TICK and UNTICK the ''Disabled [ ]'' Box.
7.That's all :3
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
19 Jul 2012 07:37 AM
"tin" is undefined.
Report Abuse
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
19 Jul 2012 07:44 AM
What do you mean?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
19 Jul 2012 07:46 AM
Nowhere in the script is "tin" defined.
Report Abuse
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
19 Jul 2012 07:46 AM
''tin'' means tight.
So, ''wtin'' means Wait Tin,and this mean the time for the water moves
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
19 Jul 2012 07:48 AM
Nowhere in the Script does it say "tin = 4" or something of the sort.
Report Abuse
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
19 Jul 2012 07:54 AM
''tin = 1.20'' is the max.You ask me about wtin and tin?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
19 Jul 2012 07:55 AM
Is 'tin' Predefined by ROBLOX?
Report Abuse
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
19 Jul 2012 07:59 AM
Yes it is.
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
19 Jul 2012 09:02 AM
*palmface*

-Nick
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
19 Jul 2012 09:04 AM
I'm pretty sure OP is correct.
Report Abuse
Hardmen2 is not online. Hardmen2
Joined: 18 Aug 2009
Total Posts: 34
23 Jul 2012 05:36 AM
Ok , seems the script get broken...I upload another one [below]

repeat
wait(0.1)
for i=0, 20 do
script.Parent.Mesh.Scale=script.Parent.Mesh.Scale+Vector3.new(0, 0.05, 0)
wait(0.01)
end
wait()
for i=0, 20 do
script.Parent.Mesh.Scale=script.Parent.Mesh.Scale-Vector3.new(0, 0.05, 0)
wait(0.01)
end
until false
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
23 Jul 2012 05:48 AM
So you want to make the scale bigger and smaller?

mesh = script.Parent.Mesh

while true do
wait()
for i = 1, 20 do
mesh.Scale = mesh.Scale + Vector3.new(0, 0.05, 0)
end
for i =1, 20 do
mesh.Scale = mesh.Scale - Vector3.new(0, 0.05, 0)
end
end
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