Proximity prompt not activating

In my game there is a proximity prompt thats supposed to give the player a flashlight tool when they progress through a trapdoor to another level. But the wierd thing about this that i cant seem to fix is that under certian circumstances is just wont work

Script for giving flashlight

local Tools = {"Flashlight"}
local Storage = game:GetService("ServerStorage")


local Part = script.Parent
local prompt = Part:WaitForChild("pickup")

prompt.Triggered:Connect(function(Player)
	print("checking for player")
	if Player and Player.Character then
		print("player found")
		local Backpack = Player:WaitForChild("Backpack")
		print("checking for tool")
		if not Backpack:FindFirstChild("Flashlight") or Player.Character:FindFirstChild("Flashlight") then
			print("tool not found in inventory")
			for i = 1, #Tools do
				local Tool = Storage:FindFirstChild(Tools[i])
				if Tool then
					print("giving tool")
					Tool:clone().Parent = Backpack
				end
			end
		end
	end
end)

Any help is appreciated, thanks!

2 questions;

Is it triggering to begin with

Is it finding the tool

local Storage = game:GetService("ServerStorage")

local Part = script.Parent
local Prompt = Part.pickup

Prompt.Triggered:Connect(function(Player)
	local Character = Player.Character
	local Backpack = Player.Backpack
	local CharacterFlashlight = Character:FindFirstChild("Flashlight")
	local BackpackFlashlight = Backpack:FindFirstChild("Flashlight")
	if CharacterFlashlight or BackpackFlashlight then
		return
	end
	
	local Flashlight = Storage:FindFirstChild("Flashlight")
	if Flashlight then
		local LightClone = Flashlight:Clone()
		LightClone.Parent = Backpack
	end
end)

While writing a response with some information i forgot to include, i decided to test something.

when the player gets teleported to the next section I was setting the Vector3 position of the HumanoidRootPart insted of using

char:SetPrimaryPartCFrame(CFrame.new(881, 9.075, -810))

So I went into the script and changed it and it started working

This is completely my fault, sorry for the inconvenience

Thanks anyways!