I am making a roblox VR Game and I am trying to make a grabbing mechanism but its not working. Can someone please help me make this script work? This script is supposed to be in the part that you can pick up by the way.
local Part = script.Parent local LeftHandPickUp = workspace.Importantthings.LeftHandHolding local RightHandPickUp = workspace.Importantthings.RightHandHolding local RightHand = workspace.Importantthings.RightHand local LeftHand = workspace.Importantthings.LeftHand function LeftHold() Instance.new(Part,"Weld",LeftHand) end function RightHold() Instance.new(Part,"Weld",RightHand) end repeat if LeftHandPickUp.Value == true then LeftHold() end if RightHandPickUp.Value == true then RightHold() end until Part.Parent == workspace.Camera