|
| 25 Jun 2013 10:05 AM |
| I want to make the water go up and down like a beach, is it done by positioning such as x.Position = Vector3.new(x,x,,x)? I just want to make it like a shore. Make the brick go up and down. How would I do that? |
|
|
| Report Abuse |
|
|
| |
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 25 Jun 2013 10:09 AM |
while true do for i = 1, 3, 0.1 do -- move code end for i = 3, 1, -0.1 do -- move code end end
figure it out
"What's sad is we're goofing around and we've gotten further than when we were trying" - WatchfulEzio |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Jun 2013 10:55 AM |
@sbk28
This is scripting helpers. The point is to help, not tell somebody to figure it out. The OP obviously tried to figure it out, and that's why he/she is here. Anyway, you were on the right track:
If 'x' is the variable you set to your part:
while wait() do
for i = 1, 30 do x.Position = x.Position + Vector3.new(0,0.1,0) wait() end
wait(4)
for i = 1, 30 do x.Position = x.Position - Vector3.new(0,0.1,0) wait() end
end
And I actually might use CFrame for this so that if a player touches the water it doesn't pop on top of them:
while wait() do
for i = 1, 30 do x.CFrame = x.CFrame * CFrame.new(0,0.1,0) wait() end
wait(3)
for i = 1, 30 do x.CFrame = x.CFrame * CFrame.new(0,-0.1,0) wait() end
end
|
|
|
| Report Abuse |
|
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 25 Jun 2013 10:56 AM |
look
we don't provide the scripts for you
you could literally add 2-4 lines of code there and it could work
basic coding knowledge
if you want someone to script FOR you go to LMaD or FM
"What's sad is we're goofing around and we've gotten further than when we were trying" - WatchfulEzio |
|
|
| Report Abuse |
|
|