ok so I need to make it that the 2nd string of the value doesn't get the same as the first one
local Rand = Random.new(tick()) local Elements = {"Earth", "Fire", "Lightning", "Water"} Element.Value = Elements[Rand:NextInteger(1, #Elements)] .. " / " .. Elements[Rand:NextInteger(1, #Elements)]
i need to make it not to pick the same EX: Fire / Fire
local Elements = {"Earth", "Fire", "Lightning", "Water"} local Random = Random.new(tick()) local FirstElement = Elements[Random:NextInteger(1,#Elements)] local SecondElement; repeat wait() SecondElement = Elements[Random:NextInteger(1,#Elements)] until SecondElement ~= FirstElement Elements.Value = FirstElement.." / "..SecondElement