RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Lights to flicker when nextbot is near like evade game with magnitude"
-- server script local light = script.Parent local magnitude = 10 local canFlicker = true function flicker(otherPart) if canFlicker then local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then canFlicker = false light.Intensity = light.Intensity + magnitude wait(0.2) light.Intensity = light.Intensity - magnitude wait(0.2) light.Intensity = light.Intensity + magnitude wait(0.2) light.Intensity = light.Intensity - magnitude wait(0.2) light.Intensity = light.Intensity + magnitude wait(0.2) light.Intensity = light.Intensity - magnitude wait(1) canFlicker = true end end end light.Touched:Connect(flicker)