I want to make it so where if someone says a players name with "RUN NAME " before it it will print something for now.
For Example if someone says “RUN NAME coolboy24” then it will just simply print something for now
Player.Chatted:Connect(function(ChatMessage)
if Active == false then return end
if ChatMessage then
if ChatMessage == "RUN NAME "..game.Players:FindFirstChild(ChatMessage) then
print("Worked")
end
end
end)```
my code so far, obviously with the whole ChatMessage "RUN NAME coolkid24" is not a player
Player.Chatted:Connect(function(ChatMessage)
if Active == false then return end
if ChatMessage then
if ChatMessage == "RUN NAME "..game.Players:FindFirstChild(string.split(ChatMessage, " ")[3]) then
print("Worked")
end
end
end)
I tried this but it came up with this error
16:49:53.712 Players.d_rewops.PlayerGui.ScreenGui.Client Radio:76: attempt to concatenate string with Instance - Client - Client Radio:76