9/15/2023 0 Comments How to add water in roblox studioLocal didHit = raymodule.raycast(cameraPos, v. every frame, check if we are underwater RaycastParams.FilterDescendantsInstances = water Local raycastParams = RaycastParams.new() Local TINT_UNDERWATER = Color3.new(0, 0.65098, 1)įor i, v in pairs(game.Workspace:GetChildren()) do This is what it looks like in a few community-created worlds. Local raymodule = require(Modules.raymodule) Weve enabled a new look for water in ROBLOX. So one fix might be to ask all of the water blocks, "am I underwater?" And if any say yes, then change the lighting and reverb, but if ALL of them say no, then change it back. You are checking that you are underwater for each block, and if one says yes, but the next says no, you will essentially be undoing any changes that should be happening. It could be that your logic is fighting with itself. Local ray = require().raycast(.Position, v.Position, parms) For example, Brick terrain has a boxy shape and the moving grass decoration renders only on Grass terrain but not on other terrain materials.I need help debugging this code, i am trying to make an effect where the screen is tinted a blueish color and the reverb is set to bathroom whenever a camera is inside a part named "water", it works for 1 body of water in the game and the rest will not cause the effect to happen, despite it printing for every body of water in the game, im assuming the one it picks to work is the one that is loaded first, but im not sure why only that one registers, it checks for them all but only that one part actually causes it to happen while true doįor i,v in pairs(game.Workspace:GetChildren()) do In addition to the visual and physical properties that materials provide for parts, terrain materials determine features such as the terrain's shape and its decoration display. MaterialsĪ subset of the materials available for parts is available for terrain. For more precise, dynamic, or procedural terrain editing, you can also create terrain through a script. Using the Terrain Editor, you can easily generate and edit terrain either at a voxel or region level with the option of importing heightmaps and colormaps. You can set different materials to these grids to simulate natural environments. Terrain is made up of grids of voxels, which are points in the 3D space with a set material in the dimension of 4×4×4 studs. Terrain allows you to generate and sculpt detailed and realistic terrain environments, such as mountains, pools of water, or a flat desert.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |