#Why my script does not work for several partsIt only works for one part
44 messages · Page 1 of 1 (latest)
Hey
I will run some testing on it and try help you
while task.wait() do
if game.Lighting.ClockTime >= 7 and game.Lighting.ClockTime <= 18 then
game.Workspace.light.PointLight.Enabled = false
else
game.Workspace.light.PointLight.Enabled = true
end
end```
alr give me a minute
thank you bro
but my light is a part, pointlight is a light
What do you want it to do exactly?
When its getting darker, enable a torch type of thing?
@ornate canyon
Can you send me a screenshot
I want to light up several trees at night
This script works but only if it is a tree
of the parts you're on about
can i sterem for you?
ah i cant
why not?
what is the problem
.
Illusion
** You are now Level 12! **
help me I can't get it working
The script only works for one part, not for all
I'll quickly explain
His script works, but only for one part, he hasnt used :GetChildren() nor grouped the parts together.
Have fun
@ornate canyon can you vc ?
sure
join general 2
shit was confusing me
i think i know where the problem is