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

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

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

1 comment

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

2 answers

✓ Accepted answer

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.

1 comment

0

and for can collide to be false do i add extra line hit.CanCollide = false

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

4 comments

0

UM DO I ADD THE SCRIPT in the part of the tool or in the tool

0

Part.

0

ok

0

i meant the gear soz.

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