--[[
	
hs = script.HearScript:clone()
hs.Parent = char
wait(0.1)
hs.Disabled = false
--]]



function Chat(msg, player)
	if player.Character:findFirstChild("Torso") and (player.Character.Torso.Position - char.Torso.Position).magnitude < 100 then
		tag = Instance.new("StringValue")
		tag.Name = "Message"
		tag.Value = ""..player.Name..": "..msg..""
		tag.Parent = play.PlayerGui.FujiHud.Hear
		print("added to hear")
	end
end

	z = game.Players:GetPlayers() 
for i= 1, #z do 
	z[i].Chatted:connect(function(msg)
		print(z[i], msg) 
		Chat(msg, z[i])
	end)
end 

script.Parent.Hear.ChildAdded:connect(function(child)
	
if child.Name == "Message" then
hear = script.Parent.Hear
if hear:findFirstChild("E") then