Тёмный

How to make a part disappear when touched | Roblox Studio 

Vertical
Подписаться 67
Просмотров 12 тыс.
50% 1

In this video , I'll show you how to make a part disappear when touched in Roblox Studio.

Опубликовано:

 

7 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@accela4146
@accela4146 2 года назад
local platform = script.Parent local function disappear() platform.BrickColor = BrickColor.Red() wait(1) platform:Destroy() end platform.Touched:Connect(disappear)
@ipry847
@ipry847 Год назад
TYSM
@Skellpawn
@Skellpawn Год назад
the script doesnt work
@_imyuvi
@_imyuvi Год назад
@@Skellpawn Make sure to anchor the part.
@Mimexers
@Mimexers 8 месяцев назад
Tysm that really helped! you are very generous.
@user-rg3sq8pc5g
@user-rg3sq8pc5g 7 месяцев назад
I can't copy your script in my phone
@CraizyMotion
@CraizyMotion Год назад
Thank you I needed this for a game and it’s very helpful
@Curcustangtang
@Curcustangtang Год назад
OMG THX THIS REALLY HELPS IMA SUB AND LIKE NOW
@emmanuelosagie1456
@emmanuelosagie1456 Месяц назад
Thanks i needed this for a part in my horror game :) im subing and liking
@Curcustangtang
@Curcustangtang Год назад
Bro he deserves more likes and subscribers
@IM_SORRY.NO-100
@IM_SORRY.NO-100 9 месяцев назад
here's a way to type the script if you don't want the wait time: script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then script.Parent.Transparency = 1 script.Parent.CanCollide = false end end)
@Im-Nitro
@Im-Nitro 6 месяцев назад
tysm
@TROBLOSOWWY
@TROBLOSOWWY 29 дней назад
ty
@AbstractBug4426
@AbstractBug4426 26 дней назад
Heres a script to make it disapear when touched and make it comeback! script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then script.Parent.Transparency = 1 script.Parent.CanCollide = false task.wait(1) script.Parent.Transparency = 0 script.Parent.CanCollide = true end end)
@bhadsxht
@bhadsxht Год назад
can you make it reappear when you touch it again?
@Lukiepookielemon
@Lukiepookielemon Год назад
TYSM
@FireFTI
@FireFTI Год назад
how can i make it so that when 1 part is touched, a different part dissapears?
@rctw_
@rctw_ 3 месяца назад
Can you do the script but for a model with unions and parts
@Yuux..
@Yuux.. 11 месяцев назад
How can i add a sound when touch?
@alupigus4022
@alupigus4022 7 месяцев назад
how do I make a part disapear when i take out an item?
@LakerTheRealBossMan
@LakerTheRealBossMan 4 дня назад
This is better: -- Script Name: DeleteOnTouch
-- This script deletes the part when it is touched

local part = script.Parent

-- Ensure the script is attached to a Part instance
if part:IsA("Part") then
 part.Touched:Connect(function(hit)
 -- Check if the hit object is a valid instance
 if hit and hit.Parent then
 part:Destroy()
 end
 end)
end
@kingtteo
@kingtteo Год назад
local Part = script.Parent local function destroy() wait(1) Part:Destroy() end Part.Touched:Connect(destroy)
@TROBLOSOWWY
@TROBLOSOWWY 29 дней назад
ty
@MogaKlng
@MogaKlng 9 месяцев назад
how do i make it come ack after a bit
@foxyonpaws1
@foxyonpaws1 9 месяцев назад
bro works better than chatgpt
@stellakrysta
@stellakrysta 2 месяца назад
umma use this to make a Christmas update in my game
@Jackieslayer19
@Jackieslayer19 Год назад
How Do You Make So It Comes Back?
@coolchicken425
@coolchicken425 3 месяца назад
idk im looking too!
@Doruk_Gaming
@Doruk_Gaming 5 месяцев назад
Just a question, how do I make it that the part only disappears for the person that touched it? I tried using a local script but it didnt work. Pls help me.
@SKYHIGHFLY-
@SKYHIGHFLY- 5 месяцев назад
JUSTPUT IT IN A SCRIPT LOL
@PlaygroundExecutions-bh5fm
@PlaygroundExecutions-bh5fm Месяц назад
@@SKYHIGHFLY- what??
@Wyatt07
@Wyatt07 Месяц назад
Hoq to make it reappear
@Mir4h.._..Offici4l
@Mir4h.._..Offici4l 6 месяцев назад
It doesn’t work though
@KendynMills
@KendynMills Год назад
--Copy and Paste this instead of typing in the whole script lol local Part = script.Parent local function destroy() wait(1) Part:Destroy() end Part.Touched:Connect(destroy)
@marshyfoxyanddino8902
@marshyfoxyanddino8902 Год назад
Thanks!
@user-lp6uo5uv7z
@user-lp6uo5uv7z 11 часов назад
script did not work
@user-zm3dp4ip8t
@user-zm3dp4ip8t Год назад
It dont work. Its just dissapears even if i dont touching it
@PixleStudios22
@PixleStudios22 Год назад
Its because the script dose not notice if you are a humanoid or not, i would give you the script but i don't know how to make the script.
@user-zm3dp4ip8t
@user-zm3dp4ip8t Год назад
@@PixleStudios22 same here
@djweyhdgh
@djweyhdgh Год назад
@@user-zm3dp4ip8t part.Touched:Connect(function(hit) h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then ..... Code basically is just checking to see if the thing that hit it was a humanoid, and if it is a humanoid then it fires the code underneath lol.
@LOP941
@LOP941 Год назад
it doesent work
@riptechnobladewewillmissyo8381
@riptechnobladewewillmissyo8381 4 месяца назад
Again Outdated 5th time
Далее
Making My Roblox Game VIRAL in 24 HOURS
9:24
Просмотров 26 тыс.
How to make a simple cutscene in Roblox Studio
9:10
Просмотров 102 тыс.
Moon Animator Tutorial-(Full explained)
9:15
Просмотров 72 тыс.
Training AI Bots to Fight (they started dancing)
15:06
Просмотров 189 тыс.
New to Studio? Get These FREE Plugins!
9:40
Просмотров 350 тыс.
the 4 steps people use to make amazing particles
22:49
Просмотров 191 тыс.
I Made a Roblox PVP Game in 1 Week
7:35
Просмотров 144 тыс.