#button

1 messages · Page 1 of 1 (latest)

drowsy escarp
#

how do i make something dissapear and reappear with a button?

marsh thicket
drowsy escarp
#

click detectors are already on

marsh thicket
#

add a script on it

drowsy escarp
#

yes

marsh thicket
#

you can use a mouse Button clicked event to it

drowsy escarp
#

done

marsh thicket
#

i can write

#

what is the name of the part

drowsy escarp
#

1 sec

marsh thicket
#

that you want to make disappear

#

and reappear

drowsy escarp
#

Core

#

and all of its parts that are under i

#

t*

#

1 sec

#

lemme send u the updated file again

#

its changing still srry

#

ill dm u it

#

sent

marsh thicket
#

cant hop on pc rn but

#

what is the patg

#

path

#

for the core?

#

like workspace and what

#

is it a model?

drowsy escarp
#

its in workspace

#

named core

mellow junco
#

yo this can't be this hard 😭

drowsy escarp
snow questBOT
#

studio** You are now Level 3! **studio

drowsy escarp
#

nothing yet btw

#

they both off i thinks

mellow junco
#

local part = path to part

#

local Clicker = part.ClickDetector

#

Clicker.MouseClick:Connect(function()

#

part.Transparency = 1

#

Wait hold on do a gui instead

#

local button = Pathtobutton
local targetPart = workspace.YourPartName
local clickDetector = button.ClickDetector
local isVisible = true

clickDetector.MouseClick:Connect(function(player)
isVisible = not isVisible
targetPart.Transparency = isVisible and 0 or 1
targetPart.CanCollide = isVisible
end)

soft sandal
#

bro is spoonfeeding

#

banned

mellow junco
#

sorry i didnt read coding 101