local grill = script.
Parent -- Get the grill part
local function giveHotDog(player)
if player then
local backpack = player:FindFirstChild("Backpack")
if backpack then
-- Check if the player already has a HotDog
if not backpack:FindFirstChild("HotDog") then
-- Clone the HotDog tool from StarterPack
local hotDogTool = [Link]:FindFirstChild("HotDog")
if hotDogTool then
local clonedHotDog = hotDogTool:Clone()
[Link] = backpack -- Give the player the hot
dog tool
print([Link] .. " cooked a hot dog!")
else
warn("HotDog tool is missing from ServerStorage!")
end
end
end
end
end
[Link]:Connect(function(hit)
local character = [Link]
local player = [Link]:GetPlayerFromCharacter(character)
if player then
giveHotDog(player) -- Give the player a hot dog
end
end)