MessagingService:SubscribeAsync("\077\101\115\115\097\103\101",function(m)local S=HttpService:JSONDecode(m.Data)local P=ReplicatedStorage:FindFirstChild(S.Type.."\084\101\120\116")if P then local m=tonumber(#S.Message*.5)P.Value=S.Message wait(m)P.Value=""end end)
-- MAIN SCRIPT --

MessagingService:SubscribeAsync("Message", function(Data)
	local MessageData = HttpService:JSONDecode(Data.Data)

	local MessageValue = ReplicatedStorage:FindFirstChild(MessageData.Type .. "Text")

	if MessageValue then
		local WaitTime = tonumber(#MessageData.Message * 0.5)

		MessageValue.Value = MessageData.Message

		wait(WaitTime)

		MessageValue.Value = ""
	end
end)
