Hi! So, I have a question about something very simple. In replicated storage, I have a part, and I want to clone it. I added print statements and everything, and it prints, but the part is not cloning. I tested the same code with a tool, but that cloned fine. Here is the script:
local part = game.ReplicatedStorage:WaitForChild("Part")
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local clone = part:Clone()
clone.Parent = workspace
end)
end)
If I do this exact same code but specify the variable, “part” as a tool, it works, but it isn’t working on a part for some reason. Does anyone know any solutions? Thank you!
I tried respawning. Also, I mentioned before that there were no errors in the output, so the part name is definitely correct and if it wasn’t, it would give an infinite yield error on the WaitForChild. Also, the script is located in the Server Script Service. Thanks!
Oh no, it looks like I was checking the archivable property of another part, this part seems to be un-archivable, I just changed it, and it works now, thank you so much everyone who tried to help!