Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Whats that notification that pops up in the bottem right hand corner of the screen?

I am just wondering, I noticed in Jailbreak if someone starts a robbery or pickpockets you, you will get a notification in the bottom right hand corner, I just want to know what that is called and if its a Service what's the name of the service. Give me the BARE MINUNIUM code. I want to know, so I could make like a notify command for my admin.

If that notification was just a gui, with the Tween Service that is fine but if there is a way to do it, please tell me.

1 answer

✓ Accepted answer

I took this straight from the wiki, http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore. But here's the script anyway, just an example.

local function callback(text)
	if text == "Yes" then
		print("They want extra points!")
	elseif text == "No" then
		print("They don't care...")
	end
end
 
local bindableFunction = Instance.new("BindableFunction")
bindableFunction.OnInvoke = callback
 
game.StarterGui:SetCore("SendNotification", {
	Title = "Welcome to my game!"; -- Required. Has to be a string!
	Text = "Do you want extra points?"; -- Required. Has to be a string!
	Icon = ""; -- Optional, defaults to "" (no icon)
	Duration = 5; -- Optional, defaults to 5 seconds
	Callback = bindableFunction; -- Optional, gets invoked with the text of the button the user pressed
	Button1 = "Yes"; -- Optional, makes a button appear with the given text that, when clicked, fires the Callback if it's given
	Button2 = "No"; -- Optional, makes another button appear with the given text that, when clicked, fires the Callback if it's given
})

This discussion is preserved as it was. New answers, comments, and votes are closed.