RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Lights to flicker when nextbot is near of player"
-- local script local part = script.Parent local player = game.Players.LocalPlayer local nextbot = game.Workspace.Nextbot local function flickerLights(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA('Humanoid') if humanoid and humanoid == player.Character.Humanoid then part.Light.Enabled = false wait(0.5) part.Light.Enabled = true wait(0.5) part.Light.Enabled = false wait(0.5) part.Light.Enabled = true end end nextbot.Touched:Connect(flickerLights)