Hello Devforum,
I’ve been trying to make a terrain regeneration script that regenerates a block of terrain after a game’s round has ended. I have tried using various conditions that are met when a round ends (Enabled, Visible, etc.) on various objects (Blurs, TextLabels) for the script to detect in order to commence the regeneration but to no avail. The script just doesn’t seem to detect that the condition(s) have been met. How can I make this work?
local terrainBlock = script.Parent
local function regenTerrain()
warn("Intermission started")
game.Workspace.Terrain:FillBlock(terrainBlock.CFrame, terrainBlock.Size, Enum.Material.Glacier)
terrainBlock.Transparency = 1
terrainBlock.CanCollide = false
terrainBlock.Parent = game.ServerStorage
end
while true do
if game.Lighting.Blur.Enabled == true then
terrainBlock.Parent = game.Workspace
wait()
regenTerrain()
end
wait()
end
(p.s. i am not a programmer)
Some attachments (3rd image is the “terrainBlock” in question):
Thanks!