Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I cant make this part be able to be picked up. What can I do to fix it?

Asked by 4 years ago

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
0
hmmm lon233bcc 31 — 4y

Answer this question