local debounce = true
script.Parent.MouseClick:Connect(function(plr)
if plr.Name == "roblox" or "ASMXGaming" or "lukedm" then
if debounce == true then
debounce = false
game.Workspace.Blackout:Play()
wait(6)
game.Workspace.Dark.Value = true
wait (30)
game.Workspace.Dark.Value = false
debounce = true
end
end
end)
so my username is bt6k, and it is not on the list, yet it is still doing it..
Any solutions? Am I doing the plr variable wrong?

1 comment
Yes, if it is mouseclick it would be mouse, not player. I believe the solution would require linking script.Parent until you reach the player. Ex. script > Button > Frame > Gui > PlayerGui Folder > Player