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?
local debounce = true script.Parent.MouseClick:Connect(function(plr) if plr.Name == "roblox" or plr.Name =="ASMXGaming" or plr.Name =="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)
pretty sure u still have to do plr.Name == every or cause now u just checking if its a string i guess im not sure myself sorry
You have to define the variable each time.
Line 4 should look like this.
if plr.Name == "roblox" or plr.Name == "ASMXGaming" or plr.Name == "lukedm" then