ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Coding your ideas on Roblox Studio - Everything turns black!

Roblox Studio

Game Design

Roblox

RobloxStudio

RobloxScripting

LuaScript

RobloxTutorial

GameDev

RobloxGameDevelopment

BeginnerCoding

CodingForKids

TouchScript

RobloxEffects

DarkModeRoblox

ScriptingTutorial

RobloxBeginners

LearnToCode

GameDesign

RobloxGameIdeas

StudentProjects

RobloxStudioTips

SimpleScripts

RobloxDevTips

Автор: Nobel Courses

Загружено: 2025-03-21

Просмотров: 720

Описание: JOIN THE DISCORD:   / discord  

CODE:
local part = script.Parent
local debounce = false

local function makeEverythingBlack()
-- Change lighting
local lighting = game:GetService("Lighting")
lighting.Ambient = Color3.new(0, 0, 0)
lighting.OutdoorAmbient = Color3.new(0, 0, 0)
lighting.Brightness = 0

-- Change all parts to black
for _, obj in pairs(game.Workspace:GetDescendants()) do
if obj:IsA("BasePart") then
obj.Color = Color3.new(0, 0, 0)
obj.Material = Enum.Material.SmoothPlastic
end
end
end

local function onTouch(hit)
if debounce then return end
debounce = true

local character = hit.Parent
if character and character:FindFirstChild("Humanoid") then
makeEverythingBlack()
end
end

part.Touched:Connect(onTouch)



Learn how to make everything in your Roblox game turn black when a player touches a part — using a simple and powerful Lua script in Roblox Studio!

This idea came straight from one of my students, and in this tutorial, I show you how to bring it to life step-by-step.

🎯 What you’ll learn:
How to detect when a part is touched
How to change all part colors to black
How to adjust lighting to make the entire game go dark
💡 Perfect for horror games, dramatic scenes, secret rooms, or pranks!

📥 Copy and paste the code from the video
🧠 Beginner-friendly scripting tutorial

Don’t forget to 👍 Like, 🔔 Subscribe, and 💬 Comment your own ideas — I might turn them into the next video!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Coding your ideas on Roblox Studio - Everything turns black!

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]