Advertisement
yonidrori

Untitled

Oct 9th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. -- create a custom message in the chat window
  2. local msg = {
  3. Text = "This is the text of your custom message";
  4. Color = Color3.new(0,1,1); -- custom message color
  5. Font = "SourceSans"; -- custom message font
  6. FontSize = "Size24"; -- custom message size
  7. }
  8.  
  9. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", msg)
  10.  
  11. -- send a custom notification to the player
  12. local notify = {
  13. Title = "Notification Title";
  14. Text = "This is a test notification"
  15. Image = "" -- an optional ROBLOX decal image
  16. Duration = 5; -- the visibility duration of the notification
  17. }
  18.  
  19. game:GetService("StarterGui"):SetCore("SendNotification", notify)
  20.  
  21. -- mute the player by removing their bottom chat bar GUI
  22. game:GetService("StarterGui"):SetCore("ChatBarDisabled")
  23.  
  24. -- change the size of the chat window
  25. game:GetService("StarterGui"):SetCore("ChatWindowSize", UDim2.new(.3,0,.3,0))
  26.  
  27. -- change the position of the chat window
  28. game:GetService("StarterGui"):SetCore("ChatWindowPosition", UDim2.new(.5,0,.5,0))
  29.  
  30. -- disable notifications for playerpoints
  31. game:GetService("StarterGui"):SetCore("PointsNotificationsActive", false)
  32.  
  33. -- disable notifications for badges
  34. game:GetService("StarterGui"):SetCore("BadgesNotificationsActive", false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement