Okay so I have an issue with my script, my script is supposed to weld the player HRP to the VR player arm but one small issue when I do that the VR player arm gets stuck into the HRP and the VR player can’t move it anymore.
My code :
local remote = script.Parent
local ragdollM = require(game.ReplicatedStorage.Modules.RagdollScript)
remote.OnServerEvent:Connect(function(plr,Arm,Item,status)
if status == "Take" then
Arm.Transparency = .65
local weld = Item:WaitForChild("VRWeld")
weld.Enabled = true
weld.Part1 = Arm
ragdollM.Ragdoll(Item.Parent, plr)
print("taking")
elseif status == "Remove" then
Arm.Transparency = 0
local weld = Item:WaitForChild("VRWeld")
weld.Part1 = nil
local BV = Instance.new("BodyVelocity")
BV.Parent = Item
BV.MaxForce = Vector3.new(10000000,10000000,10000000)
BV.Velocity = Vector3.new(0,50,0)
ragdollM.Stand(Item.Parent, plr)
end
end)