How to make a flood round

I am trying to make a game basically that has a round where there is a flood, I just need to know how I can make this work, I have already made it so the water rises and it can take away health, but how can I make it so that it can also destroy items? Thanks for reading, I don’t need this script just need to know how it will work.

You can use the :Destroy() function

function onTouch(part)
  part:Destroy()
end
1 Like

Thanks! That really helped, I also want some of the parts to fall though, how can I make that?

I just learned of this, so sorry if I messed up somewhere, but you can use CollectionService to add tags, like for this case, ignoring certain objects.

local CS = game:GetService("CollectionService")
local part = script.Parent

CS:AddTag(workspace.Baseplate, "Ignore")

function onTouch(part)
	if not CS:HasTag(part, "Ignore") then
		part:Destroy()
	end
end

part.Touched:Connect(onTouch)
3 Likes

Maybe once the water touches the object you want to fall you can make the game unanchor the parts.

1 Like

Omg thanks Trey it worked! Your a life saver!

2 Likes