Cloned model not appearing or moving

local reward = game.Workspace.Materials[droppedMaterial]
print(reward)
local droppedReward = reward:Clone()
droppedReward.Archivable = true
print(droppedReward)
--droppedReward:SetPrimaryPartCFrame(CFrame.new(0, 50, 0))
print(item.Position)
droppedReward:MoveTo(item.Position)

Hi! Title pretty much sums it up, im trying to clone a model and then move the cloned model to another part’s position.

In the code, reward prints what im trying to clone, droppedReward prints the cloned instance, and item.Position is the position of the part that im moving the cloned model to. I’m confused because droppedReward prints (the instance) however the instance is never cloned.

I saw a post on here that mentioned doing this droppedReward.Archivable = true, however that did nothing. Model:Clone() not returning cloned instance

you still have to parent the cloned model to workspace

I fixed some parts of your code, here it is

local reward = workspace:WaitForChild'Materials':WaitForChild'droppedMaterial'
print(reward)
local droppedReward = reward:Clone()
droppedReward.Archivable = true
print(droppedReward)
--droppedReward:SetPrimaryPartCFrame(CFrame.new(0, 50, 0))
print(item.Position)
droppedReward:MoveTo(item.Position)
droppedReward.Parent = workspace.Materials

You can’t print Instances, instead do

print(reward.Name)
--and
print(droppedReward.Name)

EDIT: You CAN print Instances, but it only prints their names XD I think they’re the same though
Also, what is item?

You can print instances, try it yourself. That is how i test if Instances exists

1 Like

@NeoGaming_RBLX i believe you have studio open. When printing instances using the command bar, go into the output and click the printed thing, it will select the instance itself

1 Like