You need to read the script I provided. The whole event ends after 7.2 seconds of the tool being activated. I don’t know how to make it so if the tool is unequipped mid-way, it would not give the player a point.
Oh, sorry for the misunderstanding. I would probably have a variable used to check that the player is holding the tool and then check that when you give them the Note. Like this:
local ToolEquipped = false
script.Parent.Equipped:Connect(function()
ToolEquipped = true
end)
script.Parent.Unequipped:Connect(function()
ToolEquipped = false
end)
local newSound = Instance.new("Sound")
local debounce = false
script.Parent.Activated:Connect(function()
if debounce == false then
debounce = true
local SoundService = game:GetService("SoundService")
newSound.SoundId = "rbxassetid://9117286784"
SoundService:PlayLocalSound(newSound)
wait(7.2)
newSound:Destroy()
if ToolEquipped then
game.Players.LocalPlayer.leaderstats.Notes.Value = game.Players.LocalPlayer.leaderstats.Notes.Value + 1
end
debounce = false
end
end)
This way, the Note will not be rewarded if the tool has been unequipped