So I've made this script and it works how I planned (only if used with one part) but I've decided to add more lights. I don't want to have this script into every part and have them named differently. I tried to do it myself and this is what I came up with but doesn't work. Can you guys make it so that this script goes to a model (StageILights) then selects all the parts inside of it and enables the PointLights?
StageILights (model) LigtherSII (Parts)
h = workspace.LightsOn
function touch(hit)
if hit then
h:FindFirstChild("Humanoid")
workspace.StageILights:GetChildren("LighterSII").PointLight = true
end
end
script.Parent.Touched:Connect(touch)

1 comment
Thank you!