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
1game.Players.PlayerAdded:Connect(function(plr)
2    game.Workspace.part:Clone()
3    local char = game.Workspace:WaitForChild(plr.Name)
4    local Weld = Instance.new("Weld")
5    Weld.Part0 = char["Right Arm"]
6    Weld.Part1 = game.Workspace.part
7    Weld.Parent = game.Workspace.part
8end)

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

1game.Players.PlayerAdded:Connect(function(plr)
2    local clonepart = game.ServerStorage.Part:Clone()
3    clonepart.Parent = game.Workspace
4    local char = game.Workspace:WaitForChild(plr.Name)
5    local Weld = Instance.new("Weld")
6    Weld.Part0 = char.RightHand
7    Weld.Part1 = clonepart
8    Weld.Parent = clonepart
9end)
Ad

Answer this question