Hey! I want to make the part attatched to the basepart to move with the basepart when an animation plays instead of staying in the same position I want it to move with the character
- What is the issue?
What I want to achieve(https://gyazo.com/8b5366d97b96379b8d924f3e7ca950cd)
What I currently have(https://gyazo.com/a1d1c2e4ece97da3323e374c344ffce5) As you can see the weapon on the players back will not flip with the character
code that handles the Weapon on the back
function ToolHandler.BackBling(Weapon, HumanoidRoot, player, Equipped)
print(Weapon.Name)
local isBackBling = Instance.new("StringValue")
local WeaponInReplicatedStorage = ReplicatedStorage.Weapons:FindFirstChild(Weapon.Name):Clone()
WeaponInReplicatedStorage.Parent = player.Character.HumanoidRootPart
WeaponInReplicatedStorage.CFrame = HumanoidRoot.CFrame
isBackBling.Name = "isBackBling"
isBackBling.Parent = WeaponInReplicatedStorage
local BackBlingWeld = Instance.new("Weld")
BackBlingWeld.Part0 = HumanoidRoot
BackBlingWeld.Part1 = WeaponInReplicatedStorage
BackBlingWeld.Parent = WeaponInReplicatedStorage
if Weapon.Name == "Heavy Buster" then
BackBlingWeld.C1 = CFrame.new(0, 0, -.6) * CFrame.Angles(0, 0, math.rad(-120))
end
end