Hi, so I'm trying to get the .Text value of a player's gui, but when I try to print it it gives an old value. (Every correct answer changes the .Text of a TextLabel as to form a new question)
Everytime I do this it gives me the print of "0" which is what the TextLabel.Text was originally set to before changing it.
local webhookevent = game.ReplicatedStorage.WebhookEvent
webhookevent.OnServerEvent:Connect(function(Player)
local gui = Player:WaitForChild('PlayerGui')
local box = gui.ScreenGui.QuestionBox1.Text
print(box)
end)

1 comment
Make the remote event fire a client event do Remote.OnClientEvent:Connect(function() etc