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

Could I get some help with this TV script? I'm trying to make multiple TVs turn on at once.

Asked by 3 years ago

This is the script I'm using:

    local Children = workspace:GetChildren()
    for i = 1, #Children do
        local TVNum = Children[i]
        if TVNum.Name == "TV" then
        local Screen = TVNum.Screen
        for i = 1, #Screen do
            local ScreenNum = Screen[i]
            ScreenNum.BrickColor = BrickColor.new("Institutional white")
            end
        end
    end

So first it's going to find the TVs from the workspace, and find the Screens from within the TVs and change the BrickColor to Institutional White, the error is on line 6

0
well you forgot to put the ":GetChildren" on the for i loops, so the correct input is for i = 1, #Screen:GetChildren do BigsChungus 0 — 3y
0
oh chemistk1 7 — 3y
0
It doesn't seem to fix anything chemistk1 7 — 3y

Answer this question