This script normally would work but today it just didn't work. Maybe it's because i'm using a different computer but i doubt it. Plus, there is no errors, I checked the output and looked at the script showing no indication that I did. Anyways, see the script for yourself.
trigger = script.Parent
trigger.Touched:Connect(function(hit)
-- VARIABLES --
local neonwall = game.Workspace.NeonRoom.NeonWall
local neonwall2 = game.Workspace.NeonRoom.NeonWall2
local neonwall3 = game.Workspace.NeonRoom.NeonWall3
local neonwall4 = game.Workspace.NeonRoom.NeonWall4
local neonwall5 = game.Workspace.NeonRoom.NeonWall5
while true do
neonwall.BrickColor = BrickColor.Random()
neonwall2.BrickColor = BrickColor.Random()
neonwall3.BrickColor = BrickColor.Random()
neonwall4.BrickColor = BrickColor.Random()
neonwall5.BrickColor = BrickColor.Random()
wait(.1)
end
end)

3 comments
what the absolute hell is this? What's it's purpose, explain your question. Also it only works when that Event is fired
It's to make colors randomly on walls every .1 sec I guess that is its purpose. This script woudn't work even though it shows no error showing on the output or script, like it wouldn't show the red squiggly line .
it's called a semantic error. where the code is wrong but still works but not as intended.