Hello! I am making a game in which random events happen so to let the player know the event that is happening at the moment I added a Text Label and next to the events script I added that when an event is selected it update the Text Label but when I execute the code, this text just doesn’t appear.
BTW: My code is in a ServerScriptService script.
Here is the code:
--Event selector--
while wait(10) do
local RandomNumber = math.random(2, 3)
print(RandomNumber)
if RandomNumber == 1 then
TallSizeEvent()
EventUi.SelectedEventLabel.Text = "Someone is taller"
elseif RandomNumber == 2 then
FatSizeEvent()
EventUi.SelectedEventLabel.Text = "Someone is fat"
elseif RandomNumber == 3 then
SmallSizeEvent()
EventUi.SelectedEventLabel.Text = "Someone is smaller"
end
end
Any idea how to solve this?
Thanks in advance.