I'm currently trying to make a transition menu, and i have the timer for when the models will come in and out.. its just when i go to the next menu the model is still there and i don't know how to get rid of the model.. any help?
while true do Characters ={"Character1", "Character2", "Character3", "Character4"} ChosenCharacter = (Characters[math.random(1,#Characters)]) game.ReplicatedStorage[ChosenCharacter]:Clone().Parent = game.Workspace wait (math.random(3,6)) game.Workspace[ChosenCharacter]:Destroy() end
Idk if i should post in the Transition Code but here it is
function OnClick() game.Workspace.Main4:Play() script.Parent.Selectable = false script.Parent.Visible = false script.Parent.Parent.a3.Visible = false script.Parent.Parent.a3.Selectable = false script.Parent.Parent.Next3.Visible = false script.Parent.Parent.Next3.Selectable = false script.Parent.Parent.Back2.Visible = false script.Parent.Parent.Back2.Selectable = false wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .9 game.Workspace.Main4.Volume = .1 game.Workspace.Main3.Volume = .9 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .8 game.Workspace.Main4.Volume = .2 game.Workspace.Main3.Volume = .8 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .7 game.Workspace.Main4.Volume = .3 game.Workspace.Main3.Volume = .7 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .6 game.Workspace.Main4.Volume = .4 game.Workspace.Main3.Volume = .6 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .5 game.Workspace.Main4.Volume = .5 game.Workspace.Main3.Volume = .5 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .4 game.Workspace.Main4.Volume = .6 game.Workspace.Main3.Volume = .4 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .3 game.Workspace.Main4.Volume = .7 game.Workspace.Main3.Volume = .3 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .2 game.Workspace.Main4.Volume = .8 game.Workspace.Main3.Volume = .2 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .1 game.Workspace.Main4.Volume = .9 game.Workspace.Main3.Volume = .1 wait(.1) game.Workspace.Main4.Volume = 1 game.Workspace.Main3.Volume = 0 game.Workspace.Main3:Stop() script.Parent.Parent.Frame.BackgroundTransparency = 0 game.Workspace.C3:Destroy() game.ReplicatedStorage.C4:Clone().Parent = game.Workspace script.Parent.Parent.a4.Visible = true script.Parent.Parent.a4.Selectable = true script.Parent.Parent.Next4.Visible = true script.Parent.Parent.Next4.Selectable = true script.Parent.Parent.Back3.Visible = true script.Parent.Parent.Back3.Selectable = true wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .1 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .2 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .3 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .4 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .5 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .6 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .7 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .8 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = .9 wait(.1) script.Parent.Parent.Frame.BackgroundTransparency = 1 end script.Parent.MouseButton1Click:connect(OnClick)
Just wondering how to get rid of so it's not there in the next area