Sorry if i am using the wrong category.
So basically i followed one tutorial on how to animate tools like guns
This one.
And well. When i try it in game its like this.
Now this is the script that welds them togheter.
-- // Services & Variables
local players = game:GetService("Players")
local toolReqWeld = {
"AK-47"
}
-- // Event listeners
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local weld = Instance.new("Motor6D", character["Right Arm"])
weld.Name = "ToolGrip"
weld.Part0 = character["Right Arm"]
character.ChildAdded:Connect(function(child)
if child:IsA("Tool") then
for _, v in ipairs(toolReqWeld) do
if v == child.Name then
weld.Part1 = child.BodyAttach
end
end
end
end)
end)
end)
And thats pretty much it…
Would love any help!