Hi! So, I have some remote functions that go from client to server and back to the client (at least thats what im trying to do) but for some reason it cannot return
so Im trying to mess with the values of the group of parts in a for i, v loop like this:
remoteFunc.OnServerInvoke = function()
local parts = parts:GetChildren()
local parts2 = parts2:GetChildren()
for i, v in pairs(parts) do
-- mess with them
end
for i, v in pairs(parts2) do
-- mess with them again
end
return parts,parts2
end
So it did not work for some reason. Do i put the return calls in the loops themselves?

2 comments
did it fire?
Well i tried to put it in a loop but it didnt work out that well, and the server sees the parts being scripted so i guess it did not return but if you are talking about the function then it did