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

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

Asked by 7 years ago

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

0
This is not a request site... pegasuswa 6 — 7y
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 PvPNinjaDragon 35 — 7y

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?

1 answer

Log in to vote
0
Answered by 7 years ago
`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) `
Ad