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

how would I make a tool which makes the transparency of a part 1 and can collide false?

Asked by 6 years ago

How would I make a tool for starterpack which makes the transparency of a part 1 and can collide false. Like a shovel tool.

Thank you

0
Make an activated function, and nest a Touched function inside it. See if it touched a part, and if so, then part.Transparency(dont know if that is the real property but you get the idea) = 1 WorkAtChickenPlace 19 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

Put this in a local script on the tool

    script.Parent.Activated:connect(function()


    script.Parent.Touched:connect(function(hit)

    hit.Transparency = 1



    end)


    end)

Not 100% sure this will work, but it should get you started.

0
and for can collide to be false do i add extra line hit.CanCollide = false aspiringstar346 8 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

If You Get Your Tool And Modify The Script To Say Something Like This:

game.workspace.Part
.OnMouseClick:connect
(function() game.workspace.part.Transparency = 1

If there is anything wrong Don't Be Afraid To Message Me on Twitter @jamiethegreatQ7

0
UM DO I ADD THE SCRIPT in the part of the tool or in the tool aspiringstar346 8 — 6y
0
Part. JamiethegreatQ777 16 — 6y
0
ok aspiringstar346 8 — 6y
0
i meant the gear soz. JamiethegreatQ777 16 — 6y

Answer this question