1 | game.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.Part 0 = char [ "Right Arm" ] |
6 | Weld.Part 1 = game.Workspace.part |
7 | Weld.Parent = game.Workspace.part |
8 | end ) |
it won't clone.
so put the part in server storage and change the code to this
1 | game.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.Part 0 = char.RightHand |
7 | Weld.Part 1 = clonepart |
8 | Weld.Parent = clonepart |
9 | end ) |