How to assign parent within Clone Function?

I want to clone an object and assign its parent within that function.


clone = game.ReplicatedStorage.Object:Clone()
clone.Parent = workspace

What I want:


As you can see in the “what I want” example, I am giving its parent, but I am not doing it right and I don’t know if it’s possible. This would just be a good way to shorten my script and make things more simple.

game.ReplicatedStorage.Object:Clone().Parent = workspace
1 Like

The way you have it now is fine & considered the standard.

Wow, it was that simple. I didn’t know that you can do stuff after you call a function.