View difference between Paste ID: Uy89DhAu and uDgJBvVH
SHOW: | | - or go back to the newest paste.
1
if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then
2
	local pl = game:GetService'Players'
3
	local plgc = pl:GetChildren()
4
	
5
	function newmessage(plyr)
6
		plyr.Chatted:Connect(function(msg)
7-
			print("[ Message ] "..plyr.Name..": "..msg)
7+
8
9
10
			print(plyr.Name..": "..msg)
11
		end)
12
	end
13
14-
	pl.PlayerAdded:Connect(newmessage)
14+
15
		newmessage(v)
16
	end
17
	pl.PlayerAdded:Connect(function(per)
18
		newmessage(per)
19
	end)
20
else
21
	print'Um no. Not work here sorry bud.'
22
end