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

How do I get rid of the fake arms in this script?

Asked by 9 years ago

I'm using turbofusions gun script but I need to replace the fake arm with the real arm. I have got the snippet of code that creates the arm: it is v 0.02

--------------------[ ARM CREATION FUNCTION ]-----------------------------------------

function CreateArms()
    local Arms = {}
    for i = 0, 1 do
        local ArmModel = Instance.new("Model")
        ArmModel.Name = "ArmModel"

        local Arm = Instance.new("Part")
        Arm.BrickColor = (S.FakeArmRealBodyColor and (i == 0 and LArm.BrickColor or RArm.BrickColor) or S.FakeArmColor)
        Arm.Transparency = S.FakeArmTransparency
        Arm.Name = "Arm"
        Arm.CanCollide = false
        Arm.Size = VEC3(1, 2, 1)
        Arm.Parent = ArmModel
        local ArmMesh = Instance.new("SpecialMesh")
        ArmMesh.MeshId = "rbxasset://fonts//rightarm.mesh"
        ArmMesh.MeshType = Enum.MeshType.FileMesh
        ArmMesh.Scale = VEC3(0.65, 1, 0.65)
        ArmMesh.Parent = Arm

        local Sleeve1 = Instance.new("Part")
        Sleeve1.BrickColor = BrickColor.new("Sand green")
        Sleeve1.Name = "Sleeve1"
        Sleeve1.CanCollide = false
        Sleeve1.Size = VEC3(1, 2, 1)
        Sleeve1.Parent = ArmModel
        local Sleeve1Mesh = Instance.new("BlockMesh")
        Sleeve1Mesh.Offset = VEC3(0, 0.66, 0)
        Sleeve1Mesh.Scale = VEC3(0.656, 0.35, 0.656)
        Sleeve1Mesh.Parent = Sleeve1
        local Sleeve1Weld = Instance.new("Weld")
        Sleeve1Weld.Part0 = Arm
        Sleeve1Weld.Part1 = Sleeve1
        Sleeve1Weld.Parent = Arm

        local Sleeve2 = Instance.new("Part")
        Sleeve2.BrickColor = BrickColor.new("Sand green")
        Sleeve2.Name = "Sleeve2"
        Sleeve2.CanCollide = false
        Sleeve2.Size = VEC3(1, 2, 1)
        Sleeve2.Parent = ArmModel
        local Sleeve2Mesh = Instance.new("BlockMesh")
        Sleeve2Mesh.Offset = VEC3(0, 0.46, 0)
        Sleeve2Mesh.Scale = VEC3(0.75, 0.1, 0.75)
        Sleeve2Mesh.Parent = Sleeve2
        local Sleeve2Weld = Instance.new("Weld")
        Sleeve2Weld.Part0 = Arm
        Sleeve2Weld.Part1 = Sleeve2
        Sleeve2Weld.Parent = Arm

        local Glove1 = Instance.new("Part")
        Glove1.BrickColor = BrickColor.new("Black")
        Glove1.Name = "Glove1"
        Glove1.CanCollide = false
        Glove1.Size = VEC3(1, 2, 1)
        Glove1.Parent = ArmModel
        local Glove1Mesh = Instance.new("BlockMesh")
        Glove1Mesh.Offset = VEC3(0, -0.4, 0)
        Glove1Mesh.Scale = VEC3(0.657, 0.205, 0.657)
        Glove1Mesh.Parent = Glove1
        local Glove1Weld = Instance.new("Weld")
        Glove1Weld.Part0 = Arm
        Glove1Weld.Part1 = Glove1
        Glove1Weld.Parent = Arm

        local Glove2 = Instance.new("Part")
        Glove2.BrickColor = BrickColor.new("Black")
        Glove2.Name = "Glove2"
        Glove2.CanCollide = false
        Glove2.Size = VEC3(1, 2, 1)
        Glove2.Parent = ArmModel
        local Glove2Mesh = Instance.new("BlockMesh")
        Glove2Mesh.Offset = VEC3(0, -0.335, 0)
        Glove2Mesh.Scale = VEC3(0.69, 0.105, 0.69)
        Glove2Mesh.Parent = Glove2
        local Glove2Weld = Instance.new("Weld")
        Glove2Weld.Part0 = Arm
        Glove2Weld.Part1 = Glove2
        Glove2Weld.Parent = Arm

        local Glove3 = Instance.new("Part")
        Glove3.BrickColor = BrickColor.new("Black")
        Glove3.Name = "Glove3"
        Glove3.CanCollide = false
        Glove3.Size = VEC3(1, 2, 1)
        Glove3.Parent = ArmModel
        local Glove3Mesh = Instance.new("BlockMesh")
        Glove3Mesh.Offset = VEC3(0.2 * ((i * 2) - 1), -0.8, 0)
        Glove3Mesh.Scale = VEC3(0.257, 0.205, 0.657)
        Glove3Mesh.Parent = Glove3
        local Glove3Weld = Instance.new("Weld")
        Glove3Weld.Part0 = Arm
        Glove3Weld.Part1 = Glove3
        Glove3Weld.Parent = Arm

        table.insert(Arms, {Model = ArmModel, ArmPart = Arm})
    end
    return Arms
end
            if LWeld2:FindFirstChild("TweenCode") then LWeld2.TweenCode:Destroy() end
            if RWeld2:FindFirstChild("TweenCode") then RWeld2.TweenCode:Destroy() end
            if S.AimAnimation then
                local X = 0
                while true do
                    local NewX = X + 1.5 / S.AimSpeed
                    X = (NewX > 90 and 90 or NewX)
                    if Aimed then break end
                    if (not Selected) then break end
                    local Alpha = -COS(RAD(X)) + 1
                    Camera.FieldOfView = NumLerp(CurrentFOV, 70, Alpha)
                    if X == 90 then break end
                    RS:wait()
                end
            else
                Camera.FieldOfView = 70
            end
        end)
    end
end

        return FinalHitObj, FinalHitPos
    elseif HitObj or (Dist <= 999) then
        return HitObj, HitPos
    end
end

Thanks if you are gonna help.

0
Which gun kit are you using 0.01, 0.02, 0.03? ISellCows 2 — 9y
0
v0.0.2 GammaShock 32 — 9y
0
bump GammaShock 32 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

I tried answering but ScriptingHelpers told me to say below 10,000 characters ;-;, Here's a link to the model(thank's ROBLOX for not limiting me to characters c;). It might be 0.03, sorry if it is I couldn't find any 0.02 model's.

Link

0
thanks GammaShock 32 — 9y
Ad
Log in to vote
0
Answered by 8 years ago

Hey I figured this out it's pretty simple. [img]https://i.gyazo.com/3cc3a2b4ecd2746d2726f8d051a0ec7f.png[/img] << select lines here through [img]https://i.gyazo.com/6abc38b7251de68a0b16825f2ae93107.png[/img] here, then delete those [img]https://i.gyazo.com/f80c7d948cb8062ac41d7d2cd13f3bf9.png[/img] change that vec3 to (1,1,1 ) and boom you've got normal arms.

0
I made this a while ago GammaShock 32 — 8y

Answer this question