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
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
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.
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
UM DO I ADD THE SCRIPT in the part of the tool or in the tool
Part.
ok
i meant the gear soz.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
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