Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- create a custom message in the chat window
- local msg = {
- Text = "This is the text of your custom message";
- Color = Color3.new(0,1,1); -- custom message color
- Font = "SourceSans"; -- custom message font
- FontSize = "Size24"; -- custom message size
- }
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", msg)
- -- send a custom notification to the player
- local notify = {
- Title = "Notification Title";
- Text = "This is a test notification"
- Image = "" -- an optional ROBLOX decal image
- Duration = 5; -- the visibility duration of the notification
- }
- game:GetService("StarterGui"):SetCore("SendNotification", notify)
- -- mute the player by removing their bottom chat bar GUI
- game:GetService("StarterGui"):SetCore("ChatBarDisabled")
- -- change the size of the chat window
- game:GetService("StarterGui"):SetCore("ChatWindowSize", UDim2.new(.3,0,.3,0))
- -- change the position of the chat window
- game:GetService("StarterGui"):SetCore("ChatWindowPosition", UDim2.new(.5,0,.5,0))
- -- disable notifications for playerpoints
- game:GetService("StarterGui"):SetCore("PointsNotificationsActive", false)
- -- disable notifications for badges
- game:GetService("StarterGui"):SetCore("BadgesNotificationsActive", false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement