Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

it's not changing the value?

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.

1 answer

wow im stupid, it was because i tried to print it after the wrong end.

This discussion is preserved as it was. New answers, comments, and votes are closed.