So I have been trying to do chat commands for the admins in my game. I have made a print command which will print what ever you put in the brackets. Now I made that as a test and I actually want to make a require command which will fire a remote with the require in the remote. This is the print script :
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message ~= "print" then
print(message,"")
end
end)
end)
It works flawlessly and can print any message that contains print but this require script:
remote = game.Workspace.RemoteEvent
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message ~= "require" then
remote:FireServer(message,"")
end
end)
end)
Doesnt work and gives me this errorFireServer can only be called from the client
Any suggestions?

1 comment
You're doing it on server