Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I return server objects with a RemoteFunction while filtering is enabled?

Asked by 9 years ago

So I have filtering enabled in my game (as the title implies), and I'm not able to return an object that I've modified back to the client without it giving me a nil value. I'll provide you with some sample code..

Server:

script.LoadChar.OnServerInvoke = (function(player,char)
local c=char:Clone();
return c;
end)

Client:

local char=Workspace.Main.LoadChar:InvokeServer(Game.ReplicatedStorage.Dummy)

Yes, there is a model in ReplicatedStorage named 'Dummy'.

Answer this question