GUI Text Label not updating

For some reason, my GUI wont update. I am trying to update the label to have the new text after data from the player is loaded so the player knows what skills they have available. I have cut out a bunch of stuff that doesn’t relate at all
This is the local script

local event = script.update
event.OnClientEvent(function(name)
if name ~= nil then
  print(name)
  script.Parent.TextLabel.Text = name
end
end)

This is the server script

local name = "None"
if foundSkill ~= nil then
  name = foundSkill.Name
end
update.Fire(player,name)

The GUI label still has the text none although the print is outputting something different

1 Like

I realise what my problem was now, I was setting the text label back to None at the end of my local script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.