Ad
Log in to vote
0

Object not cloning, what have I done wrong?

Asked by 15 days ago

My code is not cloning my item so, I am unable to do anything until I find the cause of this. Any help would be appreciated.

function TestService:Spawn(Player, Weapon)
    if Weapon ~= Items.IDArray[Weapon] then
        game.ReplicatedStorage.SuccessMessage:FireClient(Player, "? Successfully found "..Weapon.." with ID "..Items.IDArray[Weapon].ID)

        -- Welding
        local Weapon = game.Workspace[Weapon]
        local WeldC0 = Instance.new("Weld", Weapon.Model.Handle)
        local WeldC1 = Instance.new("Weld")
        WeldC0.Name = "WeldC0" 
        WeldC1.Name = "WeldC1"
    else
        game.ReplicatedStorage.ErrorMessage:FireClient(Player, "? Sorry, I couldn't find "..Weapon.." in my Array!")
    end
end

I am unable to provide an error message as nothing is outputted and no errors occur. It just doesn't clone.

0
The code does have a clone statement also. Sorry, I forgot to add that in. iiMxtt_Destinyii 58 — 15d
0
It's at link 6 game.Workspace[Weapon]:Clone() iiMxtt_Destinyii 58 — 15d

1 answer

Log in to vote
0
Answered by 14 days ago
Edited 14 days ago

I know you wont care at this point but its at line 6 u wanna clone it using :Clone()

Ad

Answer this question