I’ve created a simple plugin, based off of this post here that allows you to toggle the visibility of terrain water!
It achieves this by setting the WaterWaveSize to NaN (0/0)!
You can get it at Water Hider - Roblox
or you can get the code directly:
local Toolbar = plugin:CreateToolbar("Water Remover")
local ToggleButton = Toolbar:CreateButton("Toggles Water Visibility", "Toggles Water Visibility", "http://www.roblox.com/asset/?id=12702994240")
local Hidden = plugin:GetSetting("Hidden"..game.PlaceId) or false
if Hidden then
local Store = Instance.new("NumberValue", game.Workspace.Terrain)
Store.Name = "OriginalWaveSize"
Store.Value = plugin:GetSetting("Original"..game.PlaceId) or workspace.Terrain.WaterWaveSize ~= 0/0 and game.Workspace.Terrain.WaterWaveSize or 0.15
workspace.Terrain.WaterWaveSize = 0/0
end
function Toggle()
Hidden = not Hidden
plugin:SetSetting("Hidden"..game.PlaceId, Hidden)
ToggleButton:SetActive(Hidden)
if Hidden then
local Store = Instance.new("NumberValue", game.Workspace.Terrain)
Store.Name = "OriginalWaveSize"
Store.Value = workspace.Terrain.WaterWaveSize
plugin:SetSetting("Original"..game.PlaceId, workspace.Terrain.WaterWaveSize)
else
if game.Workspace.Terrain:FindFirstChild("OriginalWaveSize") then
game.Workspace.Terrain.OriginalWaveSize:Destroy()
end
end
workspace.Terrain.WaterWaveSize = Hidden and 0/0 or
(workspace.Terrain:FindFirstChild("WaterWaveSize") and workspace.Terrain:FindFirstChild("WaterWaveSize").Value or .15)
end
ToggleButton:SetActive(Hidden)
ToggleButton.Click:Connect(Toggle)
local Action = plugin:CreatePluginAction("ToggleWaterPluginAction", "Toggle Water Visibilty", "Toggles the visibility of terrain water.", "http://www.roblox.com/asset/?id=12702994240")
Action.Triggered:Connect(Toggle)
It SHOULD save, however I didn’t conduct extensive testing. If you encounter any issues, feel free to let me know and I’ll fix them up first chance I get!
Updates
Update 1: Added PluginAction so you can bind the plugin to a keyboard shortcut!