I have a script that is supposed to enable and disable a PointLight, however, it doesn’t seem to work with what I’ve tried.
local triggerF = game.Workspace.triggerFlicker
local lightEnabled = game.Workspace.FlickerLight.Part.PointLight.Enabled
function onPartTouched(triggerF)
lightEnabled = false
wait(1)
lightEnabled = true
end
Any help is appreciated! 
you’re localizing the enabled value
local triggerF = game.Workspace.triggerFlicker
local pointLight = game.Workspace.FlickerLight.Part.PointLight
function onPartTouched(triggerF)
pointLight.Enabled = false
wait(1)
pointLight.Enabled = true
end
That’s what I was looking for!
All I needed was to add the last line. Thanks!
local Light = game.Workspace.triggerFlicker
local PART = PartPath
function onPartTouched(on)
if on == true then
Light.Enabled = true
elseif on == false then
Light.Enabled = false
end
end
end
PART.Touched:Connect(function(Target)
if Target.Parent:FindFirstChild("Humanoid") then
onPartTouched(true)
wait(1)
onPartTouched(false)
end
end)
You should mark his as solution so others can’t get confused like me, Lol 