local part = workspace.Part local button = workspace.button local clickDetector = button.ClickDetector function onClicked() part.Transparency = 1 part.CanCollide = false end clickDetector.MouseClick(onClicked) :)
if you have a text label that wont disapear put this script: local part = workspace.Part local button = workspace.button local clickDetector = button.ClickDetector function onClicked() part.Transparency = 1 part.CanCollide = false part.SurfaceGui.TextLabel.Visible = false end clickDetector.MouseClick:Connect(onClicked) then your text label will not be visible
I want a mesh/part to appear after i press a button do u know how to make it? also first i want it to have collisions disabled so u don't walk on an invisible part
First you must specify the model as you would with any object in the workspace. If you wanted to destroy a model use something like this: local model = workspace.model --Specifies the model model:Destroy() --Destroys the model
Thanks for your share! I add Screen GUI in the Appear Part. When I touch the first part the second part disappear as you show us. but I can click the Screen GUI and it Appears. Can you make a code to disable or enabled Screen GUI when we touch the first part. NOTE: I put the Screen GUI in the second part that disappears. Hope you can make a video about this! Thanks anyway! 👍👌
@@chezertonchez6985 thanks for your video ☺️ i find the code to touch the part to disable the touch Enable or Disable script ..... anyway....big thanks 👍💝😊
Yes, there is a way to do that! What you do is put in the wait function which is "wait(Seconds)". All it does it does is stop whatever the script is doing for the amount of seconds you put into the function. Replace whatever is in the script with this code: local part = workspace.Part local button = workspace.button local clickDetector = button.ClickDetector function onClicked() wait(10) part.Transparency = 1 part.CanCollide = false end clickDetector.MouseClick(onClicked)
make a part add a proximity prompt then add a normal script to the prompt then put script.Parent.Triggered:Connect(function(plr) game.Workspace.PARTNAMEHERE.Transparency = 1 game.Workspace.PARTNAMEHERE.CanCollide = false end)
you can make a script so it puts it into server storage then deletes it into workspace then make it so it can take it out of server storage back into workspace (as a loop)
local part = workspace.Part
local button = workspace.button
local clickDetector = button.ClickDetector
function onClicked()
part.Transparency = 1
part.CanCollide = false
end
clickDetector.MouseClick(onClicked)
:)
Thx Too Much
Thanks soo much i really couldnt be bothered
Thank u
tysm
Thanks for writing the script and thanks to Chezerton Chez for making this video i support
Me who learns on the internet in 7 minutes how to code something
School: 3 hours take it or leave it
Haha, very true!
@@chezertonchez6985 it did work so thx
can you make it so a gui can toggle a part's transparency?
can u show me how i just completely destroy/delete the part as a script and in a button gui?
hey Chezerton, i want to do this but it doesnt seem to work. do you have a new version of it>
is there a way to make something dissapear and then another thing appear with one click?
Is there a way that i can make a GUI textbutton destroy a part with a 5 second countdown if so please tell me i need help anything would be useful :D
Does anyone know how to make a button (like a text or image button) that makes a part disappear upon being pressed?
Can you make a video on doing this with proximity Prompt
how do i make that on a morph? like with a button on the screen instead of a block
5:57
Can you tell me what that MouseClick part says? I can't quite see it well and I don't know if I am doing it right.
On line 10 it says clickDetector.MouseClick:Connect(onClicked)
Hope that answers your question :)
@@chezertonchez6985 Thanks bro!
How do i make a trigger that when i stand on it makes the block dissappear?
how do you make it to where it appears again after a short amount of time
it works with a mesh model?
if you have a text label that wont disapear put this script:
local part = workspace.Part
local button = workspace.button
local clickDetector = button.ClickDetector
function onClicked()
part.Transparency = 1
part.CanCollide = false
part.SurfaceGui.TextLabel.Visible = false
end
clickDetector.MouseClick:Connect(onClicked)
then your text label will not be visible
how do i make it so a model deletes in stead of disaper
Very good tutorial, but how do I do it but with images?
other than that very good
I want a mesh/part to appear after i press a button do u know how to make it? also first i want it to have collisions disabled so u don't walk on an invisible part
In the script turn "Can collide" to "True"
^^
@@Flammper i already learned enough scripting i can now make it so don't worry
i just realized how much I've learned in just 3 months
@@epixerty nice!
thanks Broo
How do I make it delete a part?
thanks it worked. *very cool*
how do i make it apply to a model to save time for when i'm trying to make it destroy a whole set of parts?
First you must specify the model as you would with any object in the workspace. If you wanted to destroy a model use something like this:
local model = workspace.model --Specifies the model
model:Destroy() --Destroys the model
@@chezertonchez6985 how would i go about making it wait and then destroy the model?
also on touch with another block, so when you walk through the trigger it destroys the model after a few seconds*
is there a way to make a part spawn with a button?
yes there is!
why the youtubers never leave the script in the descrtion
how do i make it so it re- appears so that other people cant just run threw without pressing anything?
Make it a local script so it only disappears for the player who pressed the button
Thanks for your share!
I add Screen GUI in the Appear Part. When I touch the first part the second part disappear as you show us. but I can click the Screen GUI and it Appears. Can you make a code to disable or enabled Screen GUI when we touch the first part. NOTE: I put the Screen GUI in the second part that disappears. Hope you can make a video about this! Thanks anyway! 👍👌
ua-cam.com/video/3XNLm23zjK8/v-deo.html - Hope this helps
@@chezertonchez6985 thanks for your video ☺️
i find the code to touch the part to disable the touch
Enable or Disable script .....
anyway....big thanks 👍💝😊
Is there a script where it will take like 10 seconds then it will dissapear? Im trying to make a fnaf 6 game in roblox! Its ok if not
Yes, there is a way to do that! What you do is put in the wait function which is "wait(Seconds)". All it does it does is stop whatever the script is doing for the amount of seconds you put into the function.
Replace whatever is in the script with this code:
local part = workspace.Part
local button = workspace.button
local clickDetector = button.ClickDetector
function onClicked()
wait(10)
part.Transparency = 1
part.CanCollide = false
end
clickDetector.MouseClick(onClicked)
@@chezertonchez6985 Thank you so much!!! Im subbing!
@@chezertonchez6985 For some reason it doesnt work, i dont know what is wrong
so what would the script be for making it visible and can collide?
yes
change number 1 to 0 and false to true in the script
Does this work if you group it into a model?
yes
u just need to put name of model beside of part
how to you make it where you can press E and it disappears?
You can use a proximity prompt, there are other comments on this so I will make a video about it
@@chezertonchez6985 Ok cool
how to make it reappear?
Can we also just straight up use the destroy() built in function?
i think so
edit: nvm I fixed it
The Script Didn't Work
can you make it with more then 1 block
just make multible parts then make it a union
can someone tell me the script beacause i cant see it
how do you make it reappear after 3 seconds?
u use wait i think
U gonna upload on how to reappear it?
just set the transparency to 1 and can collide to true instead of the other way around
Follow this tutorial to make a part appear and disappear with just one click:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
@@flycatcher219 but how do you do it after it dissapeared
how do you make so instead of using a click it uses proximity prompt
There are other comments about this topic so I will make a video on it shortly, thanks for your comment
@@chezertonchez6985 yup
make a part add a proximity prompt then add a normal script to the prompt then put script.Parent.Triggered:Connect(function(plr)
game.Workspace.PARTNAMEHERE.Transparency = 1
game.Workspace.PARTNAMEHERE.CanCollide = false
end)
@@Firefly-oi4mw bro you saved my life
@@mauscreck7734 its alr
I want to do this but instead of a click button, a button that you walk on
script.Parent.Touched:Connect(function()
game.Workspace.THEPARTNAMEHERE.Transparency = 1
end)
its not working????
It doesn't work?
the thing is i wanna know how to make somethin appear but theres no tutorials
for that lol
With this tutorial u can make parts appear and disappear:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
9 months later- no work :C
How do you make it appear again?
You can make it appear and disappear by following this tutorial:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
how to bring it back
Follow this tutorial, you can make a part appear and disappear in just one click:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
How do i make so it comeback?
you can make a script so it puts it into server storage then deletes it into workspace then make it so it can take it out of server storage back into workspace (as a loop)
How do you make a model disappear?
Did you find how to?
type in the model name then put :Delete()
can you do it so when you click the button it appears? Btw great video! :D
thats pretty easy, Just change part.Transparency = 1 to part.Transparency = 0
Eat everything!
it didn't work
it doesn't work tho
please write code in coments
idk but it doesnt work
Didn’t work. It’s useless learning to script. But the vid is amazing!
Outdated and doesn't work in 2022.
bruh its not working :(
How do I make it reappear?
I'll make a video on it tonight.
@@chezertonchez6985 Yea you did
@@chezertonchez6985 Hows it doing with the video 5 months later?
You can make it appear and reappear with this tutorial:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
amazing it never works for me
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
Me too each tut i follow it fails😊
Doesn't work.
reappear?
Follow this tutorial:
ua-cam.com/video/zPdZKQdDnWA/v-deo.html
hi
btw this is too old and no longer works, sorry!
didnt work
Can you do this but you need to step on the trigger instead of clicking it? Pls help me yall. 😭
script.Parent.Touched:Connect(function()
game.Workspace.PARTNAMEHERE.Transparency = 1
end)