Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why will the part not clone?

Asked by 4 years ago
game.Players.PlayerAdded:Connect(function(plr)
    game.Workspace.part:Clone()
    local char = game.Workspace:WaitForChild(plr.Name)
    local Weld = Instance.new("Weld")
    Weld.Part0 = char["Right Arm"]
    Weld.Part1 = game.Workspace.part 
    Weld.Parent = game.Workspace.part
end)

it won't clone.

1 answer

Log in to vote
2
Answered by 4 years ago

so put the part in server storage and change the code to this

game.Players.PlayerAdded:Connect(function(plr)
    local clonepart = game.ServerStorage.Part:Clone()
    clonepart.Parent = game.Workspace
    local char = game.Workspace:WaitForChild(plr.Name)
    local Weld = Instance.new("Weld")
    Weld.Part0 = char.RightHand
    Weld.Part1 = clonepart
    Weld.Parent = clonepart
end)
Ad

Answer this question