I have a script that gives the player a barbell to preform a deadlift. Most of the script works well, but I cant find a way to get the grip right so the player is holding the barbell the correct way. When testing the script I realized the model is flipped over and the player’s right hand is using the left grip and the left arm isn’t even holding the right grip, does anyone know how to fix this?
I’ve tried changing the orientation of the model, but that just breaks the model all together
local Storage = game:GetService("ServerStorage")
local Weight = Storage.Barbell
local Anim = script:WaitForChild("Animation")
local Promt = script.Parent.ProximityPrompt
local debounce = false
Promt.Triggered:Connect(function(plr)
local hum = plr.Character:WaitForChild("Humanoid")
local loadAnim = hum.Animator:LoadAnimation(Anim)
local root = hum.RootPart
local Platform = script.Parent
local dummy = Platform.Dummy
if debounce == true then return end
debounce = true
root.Position = dummy.HumanoidRootPart.Position
root.Orientation = dummy.HumanoidRootPart.Orientation
print("Play Anim!")
loadAnim:Play()
local cloned = Weight:Clone()
cloned.Parent = plr.Character
local LeftArm = plr.Character:FindFirstChild("Left Arm")
local RightArm = plr.Character:FindFirstChild("Right Arm")
local weld = Instance.new("Weld")
weld.Parent = cloned
weld.Part0 = cloned.Bar
weld.Part1 = LeftArm
weld.C0 = cloned.Bar.Left.CFrame
weld.C1 = LeftArm:FindFirstChild("LeftGripAttachment").CFrame
local weld2 = Instance.new("Weld")
weld2.Parent = cloned
weld2.Part0 = RightArm
weld2.Part1 = cloned.Bar
weld.C0 = cloned.Bar.Right.CFrame
weld.C1 = RightArm:FindFirstChild("RightGripAttachment").CFrame
plr.leaderstats.Strength.Value += 25
debounce = false
end)
The right arm is the arm that isnt even attatched to the body, and the left arm is attached to the right grip for some reason. I’ve tried reversing the attachments, but that also didnt help.