01 | local debounce = true |
02 |
03 | script.Parent.MouseClick:Connect( function (plr) |
04 | if plr.Name = = "roblox" or "ASMXGaming" or "lukedm" then |
05 | if debounce = = true then |
06 | debounce = false |
07 | game.Workspace.Blackout:Play() |
08 | wait( 6 ) |
09 | game.Workspace.Dark.Value = true |
10 | wait ( 30 ) |
11 | game.Workspace.Dark.Value = false |
12 | debounce = true |
13 | end |
14 | end |
15 | 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?
01 | local debounce = true |
02 |
03 | script.Parent.MouseClick:Connect( function (plr) |
04 | if plr.Name = = "roblox" or plr.Name = = "ASMXGaming" or plr.Name = = "lukedm" then |
05 | if debounce = = true then |
06 | debounce = false |
07 | game.Workspace.Blackout:Play() |
08 | wait( 6 ) |
09 | game.Workspace.Dark.Value = true |
10 | wait ( 30 ) |
11 | game.Workspace.Dark.Value = false |
12 | debounce = true |
13 | end |
14 | end |
15 | 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.
1 | if plr.Name = = "roblox" or plr.Name = = "ASMXGaming" or plr.Name = = "lukedm" then |