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
01`function onButton1Down(mouse)
02    local hit = mouse.Target
03 
04    if(hit == nil) then
05    return end
06 
07    if(hit:isA("Part")) then
08      if(hit.Locked == false) then
09        -- hit.BrickColor = BrickColor.new("Bright red")
10        hit.Position = mouse.Hit.p + Vector3.new(0, part.Size.y/2, 0)
11        end
12    end
13end
14 
15function onSelected(mouse)
16    mouse.Icon = "rbxasset://textures\\GunCursor.png"
17    mouse.Button1Down:connect(function() onButton1Down(mouse) end)
18end
19 
20bin.Selected:connect(onSelected) `
Ad