Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why would my script not work? there is no error on the output or in the script

Asked by
TtuNkK 37
5 years ago
Edited 5 years ago

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)
2
what the absolute hell is this? What's it's purpose, explain your question. Also it only works when that Event is fired User#16405 0 — 5y
0
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 . TtuNkK 37 — 5y
0
it's called a semantic error. where the code is wrong but still works but not as intended. RichMan4b 0 — 5y

Answer this question