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

How can I place the cloned arm into the workspace?

Asked by
PhaZeRO 30
8 years ago

Im a beginner scripter so i might not understand everything. i want to make the fake arm is visible when fully zoomed/firstperson. this is in a script btw should i put it in a local script?

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)

        local rightArm = character:WaitForChild("Right Arm")
        local rightArmClone = rightArm:Clone()
        local model = Instance.new("Model", character)

        rightArmClone.Parent = model
        rightArmClone.FormFactor = "Custom"
        rightArmClone.Size = Vector3.new(0.99, 1.99, 0.99)

        local weld = Instance.new("Weld")
        weld.Parent = rightArm
        weld.Part0 = rightArm
        weld.Part1 = rightArmClone
    end)
end)
0
This should probably be in a server script. Are there any other questions? What is currently happening? If you want to move the cloned arm into workspace , set its parent (line`8`) to `workspace` instead of `model`. XAXA 1569 — 8y

1 answer

Log in to vote
0
Answered by
sad_eyez 162
8 years ago

do this:

rightArmClone.Parent = game.Workspace
0
No, not really since he already parented the model to the character he doesn't have to parent the cloned arm to workspace since he parented it to the model. KingLoneCat 2642 — 8y
Ad

Answer this question