0

# A new gradient isn't being chosen every time I open a gui?

CodeWon 121
5 days ago

My script is supposed to chose a random gradient from a folder of ones that I made. The first time it choses a gradient but then it sticks with it the after the gui is opened again, why is this?

This choses the gradient:

local gradClone

end


This destroys it when the gui is closed:

function closePhone(player)

local playerGui = player:WaitForChild("PlayerGui")