Hello, so I am making a disaster game. I want to make a gui that shows the disasters. To do this I was planning to connect it to the number generator that generates the disasters and make it change text accordingly, but it seems to not work. Any help? Minigamevalue is the number generated. So far only have the two disasters.
function disasterUpdate()
if minigamevalue == 1 then
disaster.Text = "Lava"
elseif minigamevalue == 2 then
disaster.Text = "Flash Flood"
end
end
disasterUpdate()
minigamevalue.Changed:Connect(disasterUpdate)

2 comments
You forgot to add ".Value". It should be
minigamevalue.Value. I don't know what your entire script looks like so I am going to guess that your variable looks somewhat like this.local minigamevalue = Minigame.ValueIf it does, remove '.Value' and add it only to the name of the variable.Oh wow thank you so much