Hi there! I am making a small system that broadcasts accross servers when a training is being held but I am a bit stuck… I want it so basically when i set everything to "false"
it displays info = {"N/A","N/A","No Current Training."}
but when i try that it just displays false for everything
local MessageSvc = game:GetService("MessagingService")
local NoTrainingSet = {"false","false","false"}
MessageSvc:SubscribeAsync("Training",function(message)
local info = message.Data
print(info)
print(NoTrainingSet)
if info == NoTrainingSet then
info = {"N/A","N/A","No Current Training."}
print(info)
end
for _,v in pairs(game.Players:GetChildren()) do
v.PlayerGui.TransitSystem.TrainingGUI.TrainingGUI.HOSTNAME.Text = info[1]
v.PlayerGui.TransitSystem.TrainingGUI.TrainingGUI.TIME.Text = info[2]
v.PlayerGui.TransitSystem.TrainingGUI.TrainingGUI.ExtraInformation.Text = info[3]
end
end)
Am I missing something?