i made a remote function which is supposed to clone an instance and return it - so i can clone instances from a local script, but it returns nil?
local remote = game.ReplicatedStorage.Remotes.CloneInstance
remote.OnServerInvoke = function(plr,instance)
local clone = instance:Clone()
return clone
end
when the instance is sent through the remote to the client, the server is actually sending a reference to it so the client can use that reference and set the clientside version of it onto a variable
but in this case, since you didn’t parent the instance, it hasn’t replicated and there isn’t a clientside version