Hello!
Im making a sinking ship game and i want a room to stay dry when all of the ship goes down and i dont know how to do that, Can somebody help me?
So like i said before i want the room in the screenshot below to not fill with water when the ship sinks.
i’ve tryed looking on the devForums but i couldnt find anything
If you are able to help Thank you!
mc7oof
(oof)
#2
You can make the interior of the ship a part then fill it with Air.
Workspace.Terrain:FillBlock(Workspace.ShipInterior.CFrame, Workspace.ShipInterior.Size, Enum.Material.Air)
Then fill the space above the ship with water as it sinks.
Workspace.Terrain:FillBlock(Workspace.ShipInterior.CFrame, Workspace.ShipInterior.Size, Enum.Material.Water)
Use RunService:Stepped.
The challenge will be that Terrain fills in chunks of 4 studs and is not a smooth box.
system
(system)
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.