RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Flashlight to flicker when monster is nearby"
-- local script local part = script.Parent local monster = workspace.Monster local flashlight = part.Flashlight local function flickerLight() local distance = (part.Position - monster.Position).magnitude if distance < 10 then flashlight.Enabled = not flashlight.Enabled wait(0.2) end end while true do flickerLight() wait() end