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

Creating Fake Arms/Disabling an Animation?

Asked by 9 years ago

I am trying to disable animations on the arms of the character by adding arms and using a motor6d to hold them in place. Then creating another set of arms that are in the same position as the previous fake arms and putting them in a model in camera, hoping to get them to show up whilist the player is in first person. Right now the camLeft (a part) removes itself from the model in camera. I believe its falling and that means the motor6d isn't working. How can I make it hold?

local plr = game.Players.LocalPlayer
local events = game.Events

events.CharacterAdded.OnClientEvent:connect(function(character)
    local plr = game.Players.LocalPlayer
    local pstats = plr:FindFirstChild("PlayerStats")
    local M = Instance.new("Model", game.Workspace)
    M.Parent = game.Workspace.Camera
    M.Name = plr.Name.." Arms"

    local fakeLeft  = script["Left Arm"]:Clone()
    fakeLeft.Name   = "New Left"
    fakeLeft.Parent = character
    character["Left Arm"].Transparency = 1
    local motor1    = Instance.new("Motor6D", character["Torso"])
    motor1.Part0    = character["Torso"]
    motor1.Part1    = fakeLeft
    motor1.C0       = character.Torso["Left Shoulder"].C0
    motor1.Name     = "Fake L Shoulder"


    local firstLeft = fakeLeft:Clone()
    firstLeft.Parent = M
    local w1 = Instance.new("Motor6D", firstLeft)
    w1.Part0 = w1.Parent
    w1.Part1 = character["Torso"]
    w1.C0 = character["Torso"]["Left Shoulder"].C0


    --Welding Right Arm

    --loading player weapon
    local weps = game.ReplicatedStorage.Weapons
    weps:FindFirstChild(pstats.MainWeapon.Value):Clone().Parent = character
end)


Edit: Forgot to add the code xD

Answer this question