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

Dual dagger's weld/script problem?

Asked by 6 years ago

First, i'm braziliam sorry about my bad grammar.

I make a gui thats give me a gear, the gear is a dual dagger welded, the weld works fine if i put it on starter pack, but if i put it on the giver gui the weld dont work and my robloxian holds only one dagger (the other one stay on the ground and dont move), someone can help me fix that?

dual weld script:

game.Players.PlayerAdded:connect(function(plr)
local character = player.CharacterAdded:wait() or workspace[player.Name]

    wait(1)
    player = game.Workspace:FindFirstChild(plr.Name)

end)

function onChanged()
local weld = Instance.new("ManualWeld")
weld.Parent = player("Left Arm")
weld.Part0 = player("Left Arm")
weld.Part1 = script.Parent.Handle2
weld.C1 = CFrame.new(0, -1, 1) * CFrame.Angles(1.6, 0, 0)  
end

script.Parent.AncestryChanged:connect(onChanged)

gui script:

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    local Tool = script.Parent.wooddagger:Clone()
    Tool.Parent = plr.Backpack

    local Tool2 = script.Parent.wooddagger:Clone()
    Tool2.Parent = plr.StarterGear
end)


Answer this question