Owner-only object put into a certain folder

let me test this out rq and ill lyk

If it didn’t work sorry. I’m sorry that it didn’t work I tried what I could I’m not the best scripter in the world. Plus, I never made this type of system either.

1 Like

still not working :confused: i cant seem to find any issues with the code but its still just not moving it

Hmmm, give me a few minutes to think about the code.

its alr man thanks for trying im going to see what i can do to fix it

One other question. what is ObjectName for anyways?

1 Like

an object in replicated storage
wait this might be the problem…
should it be model if its a model?

Wait are you trying to move it into replicatedStorage. Or are you trying to take it into Workspace?

1 Like

i have a character named “silver” and i want to make it move from replicatedstorage to replicatedstorage.characters

I see what your doing now I think.

1 Like

alr i think the “objectname” is a mistake
i thought it was that bc i didnt know how to make a model move from one place to another

Lemme try this give me a few mins to see if I can figure it out.

1 Like

Here’s your script. @RozuraX.

local RS = game:GetService(“ReplicatedStorage”)

game.Players.PlayerAdded:Connect(function()
for i,v in pairs(game.Players:GetChildren()) do
if v.Name == “Rozurax” then
if v:FindFirstChild(“Character”) then
local objectName = “OwnerSilver”
local object = game.RS:WaitForChild(objectName)
if object then
object.Parent = RS.Characters
print(“Moved into the folder.”)
else
print(“Not moved.”)
end
local clone = object:Clone()
clone.Parent = game.ReplicatedStorage.Characters
end
end
end
end)

1 Like

I have not tested it yet. So, I have no clue if it works or not.

1 Like

still no… what is the point of “if v:FindFirstChild(“Character”) then” bc i have nothing called “character”

You were trying to find the character of the player weren’t you?

1 Like

theres a folder called “characters” which the “characters” turn your player into something else, like a character selection thing