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

Can somebody tell me whats wrong with my welding?

Asked by
neoG457 315 Moderation Voter
9 years ago
local Player = game.Players.LocalPlayer

function Weldnow()
    local w1 = Instance.new("Weld")
    w1.Parent = script.Parent.Handle -- This is the original Handle.
    w1.Part0 = w1.Parent
    w1.Part1 = script.Parent.Link1 -- Change PARTNAME to your second part's name.
    w1.C1 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)

    local w2 = Instance.new("Weld")
    w2.Parent = script.Parent.Handle
    w2.Part0 = w1.Parent
    w2.Part1 = script.Parent.Link2 -- Change this to the third part's name.
    w2.C1 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)


    local w3 = Instance.new("Weld")
    w3.Parent = script.Parent.Handle
    w3.Part0 = w1.Parent
    w3.Part1 = script.Parent.Link3 -- Change this to the third part's name.
    w3.C1 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)

local x = script.Parent.Handle 

x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, -1, 0)   

    local w4 = Instance.new("Weld")

    w4.Part0 = script.Parent.Handle
    w4.Part1 = Player.Character.Torso
    w4.Parent = script.Parent.Handle
    w4.C1 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)





end
script.Parent.Equipped:connect(Weldnow)
script.Parent.Unequipped:connect(Weldnow)

The weapon should be welded to my torso however it appears where it was originally made and when I unanchor the parts that make the weapon, it disapears and only the handle can be seen in my hand. Please help.

You can come here to see what I mean: http://www.roblox.com/games/226666043/Kagune-Making

Answer this question