|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
| |
|
| |
|