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 » Scripters
Home Search
 

Re: Scripting Questions

Previous Thread :: Next Thread 
superbolt999 is not online. superbolt999
Joined: 21 Dec 2013
Total Posts: 19
10 Aug 2016 04:29 PM
Help! I am trying to make a build to survive the disaster game and mad a flood. I made a script that works but when it floods, It jumps over the houses that are built so people just need to build a pole to survive. The flood size at start is 400,1,400 and the flood is called WaterPart. Here is my script.

FloodSize = 0
while true do
FloodSize = FloodSize + .1
game.Workspace.WaterPart.Size = Vector3.New(400,FloodSize,400)
wait(.1)
end
Report Abuse
ScriptingCon is not online. ScriptingCon
Joined: 19 Dec 2011
Total Posts: 215
10 Aug 2016 04:38 PM
local FloodSize = 0

for i=FloodSize, [Insert number you want it to stop at here], 0.1 do
workspace.WaterPart.Size = Vector3.new(400, i, 400)
wait(0.1)
end


a for loop is perfect for this instead of a while loop. Since you can make it stop at a certain number you want instead of it repeatedly going up.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
10 Aug 2016 04:46 PM
^^ That's not what he needs, he wants like this:

local w = workspace.WaterPart

local c = w.CFrame
w.Size = (400, 1, 400)
w.CFrame = c

or something like that
Report Abuse
superbolt999 is not online. superbolt999
Joined: 21 Dec 2013
Total Posts: 19
10 Aug 2016 05:13 PM
No My problem is when it floods it jumps over the house that are built like when collision is on in edit mode
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
10 Aug 2016 05:16 PM
yeah mine fixes that.
Report Abuse
superbolt999 is not online. superbolt999
Joined: 21 Dec 2013
Total Posts: 19
10 Aug 2016 05:32 PM
thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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