I'm trying to make a script where the player says :open to open the door, but I'm getting the error "h6rmless is not a valid member of Players."
Here is the script:
local Admins = {"h6rmless"}
local Prefix = ":"
for i,v in pairs(Admins) do
game.Players(Admins[i]).Chatted:connect(function(msg)
if msg:lower() == Prefix.. "open" then
game.Workspace.Door.CanCollide = false
end
end)
end

2 comments
im gusseing the problem is coming from line 05, and its probarly not working since "h6rmless" isnt a child of Players yet, youre searching for a player named "h6rmless" and i guess he doesnt exist
You're calling Players as if it were a function, use [Admins[i]] for whenever you need to search for a specific part. This isn't good practice to set a .Chatted event for a player that may or may not be in the game. Instead, set a .Chatted event for every player that joins the game, or, set a .Chatted event for every admin that joins the game.