bin = script.Parent owner = hit.OwnerName function onButton1Down(mouse) local hit = mouse.Target if hit == nil then return end if hit.ClassName == "Part" and owner.Value == script.Parent.Parent.Parent.Name then hit.ClassName.Locked = false else hit.ClassName.Locked = true end end
I have a hopperbin at starterpack this drags a part, and the part have stringvalue name OwnerName with value of Player1. what i wanted is if the player tries to drag this part and the ownername value is equal to player then the part locked is false. I tried everything playing with properties but i can't get it..