RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a magnitude script thats make the lights flicker when the monster is near of lights"
-- server script local lightPart = script.Parent local monster = game.Workspace.Monster local function flickerLights(otherPart) local distance = (monster.HumanoidRootPart.Position - lightPart.Position).magnitude if distance <= 10 then lightPart.PointLight.Brightness = math.random(1, 5) end end lightPart.Touched:Connect(flickerLights)