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

How to make a part appear when touching a part???

How to make a part appear when touching a part??? Please help

1 answer

✓ Accepted answer

Do you need the whole code? If yes here you go, btw Ill try my best to explain so you can understand the script

here:

local part = game.Workspace.YouPart -- Location of your part that will be visible btw it has to be Transparency 1

script.Parent.Touched:Connect(function(hit) -- Touched event, hit is our parameter
	if hit.Parent:FindFirstChild("Humanoid") then -- checks if its a player
		
		part.Transparency = 0 -- makes it visible
	end
end)

if you need anything or help just ask me, Hopefully it worked! lol

3 comments

0

thanks man

0

Do I insert the script into the part or something? I just started learning

0

you can put it inside ServerScriptService since we define the part in the workspace, sorry for late reply lol

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