Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Run 2 functions OnEuipped()?

Tool = script.Parent

function Arms()
Head = script.Parent.Parent.Head
LArm = script.Parent.Parent['Left Arm']
RArm = script.Parent.Parent['Right Arm']

LFake = LArm:clone()
LFake.Parent = Tool
RFake = RArm:clone()
RFake.Parent = Tool
LFake.BrickColor = LArm.BrickColor
RFake.BrickColor = RArm.BrickColor
Weld1 = Instance.new('Weld', RFake)
Weld1.Part0 = RFake
Weld1.Part1 = RArm
Weld2 = Instance.new('Weld', LFake)
Weld2.Part0 = LFake
Weld2.Part1 = LArm
end

function HeadtoArms()
local char = game.Players.LocalPlayer.Character
local weld = Instance.new('Weld', char.Head)
weld.Part0 = char.Head
weld.Part1 = char['Left Arm']
weld.C0 = CFrame.new()
weld.C1 = weld.Part1.CFrame:inverse() * weld.Part0.CFrame

local char = game.Players.LocalPlayer.Character
local weld = Instance.new('Weld',char.Head)
weld.Part0 = char.Head
weld.Part1 = char['Right Arm']
weld.C1 = CFrame.new()
weld.C1 = weld.Part1.CFrame:inverse() * weld.Part0.CFrame
end

script.Parent.Equipped:connect(HeadtoArms)
script.Parent.Equipped:connect(Weld)

1 answer

If that doesn't work, try calling both functions, within the event, as such :

script.Parent.Equipped:connect(function()
	HeadToArms();
	Weld();
end)

1 comment

0

doesnt ork but thnx for trying

This discussion is preserved as it was. New answers, comments, and votes are closed.