Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a part that u can grab, please can u help me?

I need a script for a part that i can grab like in Lumber Tycoon 2

2 comments

0

This is not a request site...

0

Again this is not a request site. If you read the name of the website it says "scriptinghelpers" if you notice the word helpers it means we help you with something that you've started. Not help you start something. Refer to this link: https://scriptinghelpers.org/help/how-post-good-questions-answers If you read before posting this so called "question" it says "Scripting Helpers is not a request s

1 answer

`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) `

This discussion is preserved as it was. New answers, comments, and votes are closed.