How to move a part to Workspace from Replicated Storage and keep its rotation?

I’m moving things from Replicated Storage to workspace and I noticed it doesn’t keep the orientation, and I have to do a lot of manual testing to try to orient it the right way. How do I keep the orientation the way it is in Replicated Storage or the way I set it when I moved it there?

After you move it to the workspace then set the orientation. It will happen so fast you will not even notice.

I’m not sure how to set the orientation

``
local part = script.Parent
part.Parent = workspace
part.Orientation = Vector3.new(10, 10, 10)

as far as i’m aware, Lighting or ServerStorage is more recommended for storing models/parts and clone them into the workspace

Depends if you want to reuse them … but yes.

No.

  • Read this post, you might learn something out of it
1 Like

I understand this. And a standard way is always good. But, I’m just answering his question simply.
He is looking for … Vector3.new(?, ?, ?)

Vector3.new(10,10,10) sounds like a random orientation which I don’t want. I’m ultimately trying to just put two parts infront of the player that were rotated a specific way, and parenting from ReplicatedStorage to workspace with a method like:

part.CFrame = torso.CFrame * CFrame.new(0, 0, -5)

Ends up changing it’s orientation

I answered your answer :slight_smile:

i dont really understand, @Zlrenn, Are you doing this via a script or manually(wth) Just saw your answer aha

Try putting it in server storage and make sure its anchored and also is it supposed to be connected to the player?

No it’s not supposed to be connected. It also has a body velocity so anchoring doesn’t seem optimal.

I’m just looking for a way to orient this properly via scripting and not trying to work around it by changing properties. It would make good practice and learning.

local object = game.ServerStorage.OBJECTNAME:Clone()

local offset = Vector3.new(0,-1.6,-5) -- tweak it if needed

object.CFrame = player.Character.Torso.CFrame * CFrame.new(offset)

object.Parent = game.Workspace

Its the same script but once again switching services to export it would i believe fix it, i have a script similar where when a command is triggered (kohl custom commands)
like :ball it spawns a ball with a velocity too (not anchored) and even tho i know not alot would care about the orientation since it is a ball there is a texture on it and it does not seem to change orientation since the logo on the texture always face my torso when i spawn it

This doesn’t work.
Also my game’s scripts all use rep storage. I get it may help with security but I can’t deal with fixing everything right now as it would just take too long, even with searching thru all scripts.