#Chatted Function not Triggering

18 messages · Page 1 of 1 (latest)

naive heron
#

Anyone

naive heron
#

Any help is appreciated

still arrow
#
local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(message)
        -- Handle chat commands here
    end)
end)
#

the code you provided doesn’t include any event handlers for the Chatted event

naive heron
still arrow
#

I looked

#

at module

#

and didnt see other one

#

now I go sleep

#

cant help

naive heron
#

mkay

#

I even tried manually adding the prefix to every command

command == "!addstaff" then```

instead of 
```lua
command = commandPrefix .. " addstaff"```

neither work
naive heron
#

Someone?

naive heron
#

Anyone

naive heron
#

anyone able to help me

naive heron
#

Someone...

naive heron
#

Anyone