I have a specific tool that is removed from a players inventory when it goes in a certain area how do I make it so it lights on fire this is my script
local door = script.Parent
local function remove(otherPart)
local humanoid = otherPart.Parent:FindFirstChild('Humanoid')
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if humanoid and player then
local inHand = otherPart.Parent:FindFirstChildWhichIsA('Tool')
local inBackpack = player.Backpack:FindFirstChildWhichIsA('Tool')
if inHand then
if inHand.Name == "Tool" then
inHand:Destroy()
end
end
end
end
door.Touched:Connect(remove)

1 comment
Working on a script for you right now!