Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to see if a roblox notification if part pressed?

Asked by
5y5sy 0
3 years ago

Part Script (Local):

local script = game.StarterPlayer.StarterPlayerScripts.LocalScript

function onClicked()

script.Disabled = false

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

Local Script (Notify Script):

game.StarterGui:SetCore("SendNotification", {
    Title = "Coming Soon!";
    Text = "You can't collect me yet!";
    Icon = "http://www.roblox.com/asset/?id=4949301498";
    Duration = 2;
})
script.Disabled = true

Notify Script is in StarterPlayerScripts.

Also it doesn't work and does not give any errors.

0
The replacing the "local script" with an other name, because the keyword "script" refers to the script that youre writing right now WoTrox 345 — 3y

Answer this question