Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

Why will the part not clone?

Asked by 2 months 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 2 months 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