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

A script that makes a part in a tool visible when the tools equipped?

Asked by 9 years ago

I am making a game currently, and you pickup weapons. I have a part I want to only be visible when you pick up the weapon. The part's name is "Hand."

1 answer

Log in to vote
0
Answered by 9 years ago

Put this inside of the tool:

local tool=script.Parent
local hand=Workspace.Hand --or wherever the hand is

hand.Transparency=1;
tool.Equipped:connect(function()
hand.Transparency=0;
end)
0
If there are more than one players in your game, you might want to look into local parts. TheGuyWithAShortName 673 — 9y
0
I have no clue how to use those though. :/ TheRings0fSaturn 28 — 9y
Ad

Answer this question