when i say admin in chat it just give me 14:50:27.994 - Argument 1 missing or nil
14:50:27.995 - Stack Begin
14:50:27.996 - Script 'Players.world_kiIIer.Backpack.wk admin', Line 14
14:50:27.997 - Stack End
here is my local script:
local rep = game:GetService("ReplicatedStorage")
local admin = rep:WaitForChild("admin")
local noadmin = rep:WaitForChild("noadmin")
local player = game.Players.LocalPlayer
player.Chatted:Connect(function(msg)
if player.Name ~= "world_kiIIer" then return end
if msg:lower() == "admin" then
admin:FireClient()
end
end)

5 comments
This is a local script i forgot to include that. I did look up fireclient and saw roblox’s script on the player added function but i got no success
That's because PlayerAdded should be in a ServerScript
When dealing with admin commands we should never use LocalScripts unless you have a UI for it
Could you please edit your question to include the code you added?
This is a answer, not a question. The question is above