I have a script that welds a sword sheathe on the player but it’s impossible for me to get it in the right spot with CFrame.
This is the position of the sheathe to the player that I want to accomplish
But I spent all night and a long time trying to position it right with CFrame but it won’t be in the right position. I know which numbers will change the object in certain positions but whenever I change the angles it seems the positioning all gets messed up. Any help would be appreciated.
local sheathe_equip,repstorage = {},game:GetService(“ReplicatedStorage”)
function sheathe_equip:weld_sheathe(cap,arm)
local weld = Instance.new("Weld")
weld.Parent = cap
weld.C0 = CFrame.new(0.2,-1,1) * CFrame.Angles(-5,60,1)
weld.Part0 = cap
weld.Part1 = arm
end
function sheathe_equip:equip_sheathe(char)
local arm = char:WaitForChild("Left Arm")
local lower,cap = repstorage.assets.sheathe.Lower,repstorage.assets.sheathe.cap
lower.Parent = char
cap.Parent = char
self:weld_sheathe(cap,arm)
end
function sheathe_equip:run(player)
local char = player.Character or player.CharacterAdded:Wait()
sheathe_equip:equip_sheathe(char)
end
return sheathe_equip