script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Medium.Text == "Turned on" then
game.Lighting.Flood.BodyVelocity.Velocity = Vector3.new(0,0.95,0)
elseif script.Parent.Parent.Fast.Text == "Turned on" then
game.Lighting.Flood.BodyVelocity.Velocity = Vector3.new(0,2,0)
elseif script.Parent.Parent.Slow.Text == "Turned on" then
game.Lighting.Flood.BodyVelocity.Velocity = Vector3.new(0,0.45,0)
end
wait(1)
if script.Parent.Text == "Disabled" then
script.Parent.Text = "Enabled"
script.Parent.Style = "RobloxRoundDefaultButton"
game.Lighting.Flood:Clone().Parent = game.Workspace
else
script.Parent.Text = "Disabled"
script.Parent.Style = "RobloxRoundButton"
game.Workspace.Flood:Destroy()
end
end)
I made this script, but the problem is when i click on the button in the surface gui its copying flood into workspace like for 1 second and then it somehow deletes.
Script is not a local and places inside surfacegui.

2 comments
Is Flood.Anchored = false? If it is, it's probably falling off the map. Anchor Flood and it should not be destroyed.
It worked. But I need this part to raise, is there a way?