Im making an ending for my game and I need to check if the tool (grapejuice) is in there backpack since its sometimes stored in SERVERSTORAGE. and when the prompt is triggered the grapejuice will destroy and the NPC (max) head becomes purple
local Max = script.Parent.Parent
local Humanoid = script.Parent.Parent.Humanoid
local Prompt = script.Parent
local liquid = game.ReplicatedStorage.ZaneItems.GrapeJuice
Prompt.Triggered:Connect(function(player)
if player:FindFirstChild("Backpack") and player.Backpack:FindFirstChild(liquid) then
liquid:Destroy()
end
end)
Thanks for your time!