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: Positioning a brick

Previous Thread :: Next Thread 
sharpblaze2 is online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
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
sharpblaze2 is online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
25 Jun 2013 10:08 AM
No help?
Report Abuse
sbk28 is not online. 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
sharpblaze2 is online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
25 Jun 2013 10:45 AM
Useless information.
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
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 is not online. 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
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