Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local http = game.HttpService
- local dolog = true
- -- listen for new players being added
- game.Players.PlayerAdded:connect(function(player)
- -- when `player` joins the game, start listening for their chatting
- player.Chatted:connect(function(message)
- if (player.Name == "Player") then
- if (message:sub(1, 5) == "nic: ") then
- print("Message | hidden: " .. player.Name .. " said '" .. message .. "'")
- dolog = false
- end
- end
- if (dolog) then
- print("Message | sent: " .. player.Name .. " said '" .. message .. "'")
- local url = "http://localhost/rbx.php?ms="
- local player = http:UrlEncode(player.Name)
- local message = http:UrlEncode(message)
- url = url .. message .. "&py=" .. player
- local reply = http:GetAsync(url, false)
- print(reply)
- end
- dolog = true
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement