Upscalefanatic3

Chat enabler (Lesson)

Jul 23rd, 2021
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local StarterGui = game:GetService("StarterGui")
  2. local Players = game:GetService("Players")
  3. local player = Players.LocalPlayer
  4. local saymsg = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest")
  5. local getmsg = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("OnMessageDoneFiltering")
  6.  
  7. for _,p in ipairs(Players:GetPlayers()) do
  8. p.Chatted:Connect(function(msg) onChatted(p,msg) end)
  9. end
  10. Players.PlayerAdded:Connect(function(p)
  11. p.Chatted:Connect(function(msg) onChatted(p,msg) end)
  12. end)
  13. StarterGui:SetCore("ChatMakeSystemMessage",privateProperties)
  14. local chatFrame = player.PlayerGui.Chat.Frame
  15. chatFrame.ChatChannelParentFrame.Visible = true
  16. chatFrame.ChatBarParentFrame.Position = chatFrame.ChatChannelParentFrame.Position+UDim2.new(UDim.new(),chatFrame.ChatChannelParentFrame.Size.Y)
RAW Paste Data