tab = {script.Parent.ScreenGui.one, script.Parent.ScreenGui.two}
function hook()
workspace.remote.OnClientEvent:connect(function(num)
for i,v in ipairs(tab) do
if v.Value.Value == num then
script.Value.Value = v.Name
break
end
print(script.Value.Value)
end
end)
end
hook()
When I look at the output, nothing has printed, and when I look at the value of script.Value, it is empty. And yes, the name of v is a thing, because I've printed it before, and I know that in this case, it'll be "one". Anyone know why it's not changing the value?
Note: script.Value is a stringvalue.
