I can't clone a model

I don’t know but i can’t clone a model. Here is my code

local Model:Model = game.ReplicatedStorage.Builderman:FindFirstChild(v.Name)
local Copy = Model:Clone()
Copy.Parent = workspace

And the error message is:

Players.efetur06_Developer.PlayerGui.AbilityBar.Frame.Builderman.LocalScript:9: attempt to index nil with 'Clone'

The model simply doesn’t exist. Problem solved. Make sure it exists and v.Name is proper.

No it exists and It is in the replicatedstorage
Ekran görüntüsü 2024-07-04 153551

The v is used in for i,v in pairs thing

Try printing v.Name then. Make sure it’s properly spelled.

1 Like

I printed it and It prints out the right thing

Oh i found why it is not working i had a typo sorry and thanks for giving your time to my problem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.