I have a problem with my script

Hi have make a script that require function it’s work perfectly with other spell but idk why it’s don’t work with a specific spell and it’s dosen’t give me any error i try to put print but it’s still don’t work, if u have any help for why it’s dosen’t work pls respond to me

We cant help without knowing the scripts

elseif action == "TelekinesisEnd" then
			print("ad")
			teleEnabled = false
			if targetedModel and targetedModel:FindFirstChild("BodyPosition") then
				targetedModel.BodyPosition:Destroy()
			end
			game.ReplicatedStorage.SetNetworkOwner:FireServer(targetedModel, false)
			game.ReplicatedStorage.Telekinesis:FireServer(targetedModel.Parent, false)
			targetedModel = nil
		end
UIS.InputEnded:Connect(function(input, isTyping)
	if isTyping then return end
	if input.KeyCode == Enum.KeyCode.T then
		ButtonHandler("TelekinesisEnd", input.UserInputState.Name)
		print("2")
	end
end)