4zx16

Enable Bubble Chat

Jul 18th, 2021 (edited)
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. --[[ -- !MUST BE IN REPLICATEDFIRST!
  2.  Made by 4z#6666, Enable Bubble Chat
  3. ]] -- MODIFY THE SETTINGS IF NEEDED
  4.  
  5. local Settings = {
  6.     ["Enabled"] = true, -- ENABLE/DISABLE BUBBLE CHAT
  7.     ["Credits"] = true, -- ENABLE/DISABLE CREDITS
  8.    
  9.     ["Disabled"] = false, -- ENABLE/DISABLE BUBBLE CHAT
  10.     ["Game Creator"] = game.Players.LocalPlayer.Name -- PERSON USING IT
  11. }
  12.  
  13. local function Set_ChatService_Properties()
  14.     game:GetService("Chat"):RegisterChatCallback(Enum.ChatCallbackType.OnCreatingChatWindow, function()
  15.         return {BubbleChatEnabled = true}
  16.     end)
  17. end
  18. if Settings.Disabled == true and Settings.Enabled == true then
  19.     -- SEND AN ERROR FOR CURRENT SETTINGS!
  20.     error("(ERROR): (#1): Disabled was set to true")
  21.  
  22.     -- IF DISABLED IS TRUE AND BUBBLE CHAT ISN'T DISABLED
  23. elseif Settings.Disabled == false and Settings.Enabled == true and Settings.Credits == false then
  24.     Set_ChatService_Properties() -- ENABLE BUBBLE CHAT
  25. end
  26. if Settings.Disabled == false and Settings.Enabled == true and Settings.Credits == true then
  27.     print("(🦋): Created by 4z#6666") -- CREATOR OF SCRIPT
  28.     print("(💀): Used by ".. Settings["Game Creator"]) -- USED BY PERSON/GAME CREATOR
  29.     Set_ChatService_Properties() -- ENABLE BUBBLE CHAT
  30. end
  31. if Settings.Disabled == false and Settings.Enabled == false then
  32.     -- SEND AN ERROR FOR CURRENT SETTINGS!
  33.     error("(ERROR): (#2): Bubble Chat isn't disabled nor is it enabled")
  34. end
Advertisement
Add Comment
Please, Sign In to add comment