I need a script for a part that i can grab like in Lumber Tycoon 2
`function onButton1Down(mouse) local hit = mouse.Target if(hit == nil) then return end if(hit:isA("Part")) then if(hit.Locked == false) then -- hit.BrickColor = BrickColor.new("Bright red") hit.Position = mouse.Hit.p + Vector3.new(0, part.Size.y/2, 0) end end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected) `
Closed as Not Constructive by BlueTaslem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?