Туториал как сделать свет с кнопкой включения/выключения света в Roblox Studio

Аватар автора
Cocox games
Server script: local score = 1 local light = game.Workspace.Light.Light script.Parent.ClickDetector.MouseClick:Connect(function() score += 1 if score == 3 then score = 1 end if score == 1 then light.SpotLight.Enabled = false light.Material = Enum.Material.Plastic end if score == 2 then light.SpotLight.Enabled = true light.Material = Enum.Material.Neon end end)

0/0


0/0

0/0

0/0