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.

1 comment

0

The replacing the "local script" with an other name, because the keyword "script" refers to the script that youre writing right now