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.
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 })
Closed as Not Constructive by minikitkat
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?